code: plan9front

Download patch

ref: 81c251f558063c5a3c56674d2710716862ca97e0
parent: 54c94a93f0c9de18f05441eb6ee46d813843c396
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Oct 29 10:16:18 EDT 2023

ether(3): document "bypass" ctl message.

--- a/sys/man/3/ether
+++ b/sys/man/3/ether
@@ -119,5 +119,24 @@
 to the
 .B ctl
 file.
+.PP
+For
+.IR bridge (3)
+and
+.IR ethermultilink (8),
+the physical interface can be bypassed by writing
+.B bypass
+to the
+.B ctl
+file.
+This means that packets transmitted on the interface
+are not physically sent out but looped back to the bypass
+.B data
+file and packets
+received on the physical interface are ignored.
+Writing a packet to the bypass
+.B data
+file loops it back as if it was received
+on the physical interface.
 .SH SOURCE
-.B /sys/src/9/*/devether.c
+.B /sys/src/9/port/devether.c