ref: 0c7888c9bad7cdb738e9377476ea5f0df58ce2e8
parent: 40afddb71da82ba9bde364ae0e632bf5d9b703d3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jun 1 09:05:03 EDT 2025
ip(3), ether(3): move the netif ctl's to ether(3) This is really confusing when having ctl messages for netif/ethernet interleaved with ipifc ctl messages. So move the table into ether(3) and add also some usefull references.
--- a/sys/man/3/ether
+++ b/sys/man/3/ether
@@ -56,6 +56,42 @@
The Ethernet address of the interface is inserted into
the packet header as the source address.
.PP
+The following control messages are supported:
+.TP
+.B bridge
+Enable bridging (see
+.IR bridge (3)).
+.TP
+.B promiscuous
+Set the interface into promiscuous mode,
+which makes it accept all incoming packets,
+whether addressed to it or not.
+.TP
+.BI "connect " type
+marks the Ethernet packet
+.I type
+as being in use, if not already in use
+on this interface.
+A
+.I type
+of -1 means `all' but appears to be a no-op.
+.TP
+.BI addmulti\ Media-addr
+Treat the multicast
+.I Media-addr
+on this interface as a local address.
+.TP
+.BI delmulti\ Media-addr
+Delete the multicast address
+.I Media-addr
+from this interface.
+.TP
+.B scanbs
+Make the wireless interface scan for base stations.
+.TP
+.B headersonly
+Set the interface to pass only packet headers, not data too.
+.PP
A connection is assigned to a packet type by opening its
.B ctl
file and
@@ -138,5 +174,12 @@
.B data
file loops it back as if it was received
on the physical interface.
+.SH "SEE ALSO"
+.IR ip (3),
+.IR bridge (3),
+.IR plan9.ini (8),
+.IR ethermultilink (8)
.SH SOURCE
.B /sys/src/9/port/devether.c
+.br
+.B /sys/src/9/port/netif.c
--- a/sys/man/3/ip
+++ b/sys/man/3/ip
@@ -243,48 +243,7 @@
.TP
.BI reassemble\ n
Reassemble IP fragments before forwarding to this interface
-.
-.\" remainder from netif.c (thus called from devether.c),
-.\" except add6 and ra6 from ipifc.c
-.
.TP
-.B bridge
-Enable bridging (see
-.IR bridge (3)).
-.TP
-.B promiscuous
-Set the interface into promiscuous mode,
-which makes it accept all incoming packets,
-whether addressed to it or not.
-.TP
-.BI "connect " type
-marks the Ethernet packet
-.I type
-as being in use, if not already in use
-on this interface.
-A
-.I type
-of -1 means `all' but appears to be a no-op.
-.TP
-.BI addmulti\ Media-addr
-Treat the multicast
-.I Media-addr
-on this interface as a local address.
-.TP
-.BI delmulti\ Media-addr
-Delete the multicast address
-.I Media-addr
-from this interface.
-.TP
-.B scanbs
-Make the wireless interface scan for base stations.
-.TP
-.B headersonly
-Set the interface to pass only packet headers, not data too.
-.
-.\" remainder from ipifc.c; tedious, so put them last
-.
-.TP
.BI "add6 " "v6addr pfx-len [onlink auto validlt preflt]"
Add the local IPv6 address
.I v6addr
@@ -1390,8 +1349,6 @@
.SH "SEE ALSO"
.IR dial (2),
.IR ip (2),
-.IR bridge (3),
-.\" .IR ike (4),
.IR ndb (6),
.IR listen (8)
.br
--
⑨