shithub: riscv

Download patch

ref: a74c7ca5ea3290dd55c6f2a03aa7c3bcd22d3f61
parent: c76cc12a1799ce214b07882eb6f4ab0906c0151b
author: cinap_lenrek <[email protected]>
date: Sun May 12 09:50:52 EDT 2024

ipconfig(8): document loopback and null media

--- a/sys/man/8/ipconfig
+++ b/sys/man/8/ipconfig
@@ -83,6 +83,7 @@
 .BR gbe ,
 .BR ppp ,
 .BR pkt ,
+.BR null ,
 or
 .BR loopback .
 The
@@ -396,6 +397,23 @@
 .EX
 ip/ipconfig -6 
 ip/ipconfig ra6 recvra 1
+.EE
+.PP
+Configure
+.B loopback
+interface for localhost addresses.
+.IP
+.EX
+ip/ipconfig loopback /dev/null 127.1 /128
+ip/ipconfig loopback /net/null ::1 /128
+.EE
+.PP
+Configure
+.B null
+interface for discarding packets.
+.IP
+.EX
+ip/ipconfig null /dev/mordor 8.8.8.8 /128
 .EE
 .SH FILES
 .B /sys/log/ipconfig