3 bridge \- IPv4 Ethernet bridge
6 .B bind -a #B\fIb\fP /net
8 .B /net/bridge\fIb\fP/ctl
9 .B /net/bridge\fIb\fP/cache
10 .B /net/bridge\fIb\fP/log
11 .B /net/bridge\fIb\fP/stats
12 .BI /net/bridge\fIb\fP/ n
13 .BI /net/bridge\fIb\fP/ n /ctl
14 .BI /net/bridge\fIb\fP/ n /local
15 .BI /net/bridge\fIb\fP/ n /status
20 device bridges IPv4 packets amongst Ethernet interfaces.
23 in the bind is optional and selects a particular bridge
34 files, and numbered subdirectories for each physical interface.
38 file reserves an interface.
39 The file descriptor returned from the
41 will point to the control file,
43 of the newly allocated interface.
46 returns a text string representing the number of the interface.
49 alters aspects of the interface.
56 .BI "bind ether " "name ownhash path"
57 Treat the device mounted at
61 as an Ethernet medium carrying IPv4 and ARP packets
62 and associate it with this bridge (forward its packets to the
63 other interfaces associated with this bridge).
67 .BI "bind tunnel " "name ownhash path path2
68 Treat the device mounted at
70 as a network tunnel carrying IPv4 and ARP packets,
73 as an Ethernet medium carrying IPv4 and ARP packets
74 and associate them with this bridge
75 (forward its packets to the
76 other interfaces associated with this bridge).
79 interface and write them to the
82 Such tunnels have an MTU of 1400 bytes.
84 .BI "unbind " "type address [ownhash]"
85 Disassociate the interface associated with
95 Clear the cache of (destination MAC address, port) tuples.
97 .BI "delay " "delay0 delayn"
104 is the constant microsecond delay per packet
107 is the microsecond delay per byte.
112 The only known option is
114 which limits the TCP Maximum Segment Size of
115 TCPv4 packets passing through to 1300 bytes.
123 returns statistics about the bridge.
127 file returns data from the bridge's log
128 and will block at end of file awaiting new data.
132 file prints the cache of (destination MAC address, port) tuples,
135 the destination MAC (e.g., Ethernet) address in hex,
137 count of packets from this address,
138 count of packets to this address,
139 expiry time in seconds since the epoch,
142 for expired entries or
146 In a connection subdirectory,
153 returns a one-line status summary.
155 Set up a network bridge between two Ethernets
163 echo 'bind ether outer 0 /net/ether0' >/net/bridge0/ctl
164 echo 'bind ether inner 0 /net/ether1' >/net/bridge0/ctl
169 .B /sys/src/9/port/devbridge.c
171 Doesn't understand IPv6.