diff options
author | phk <phk@FreeBSD.org> | 2002-09-27 18:57:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-27 18:57:47 +0000 |
commit | d61cac74b0dc667b645880b386219cacfb3c53f6 (patch) | |
tree | 2e0b7f0095d2053a63219572fbeafde682841ff6 /sbin/ifconfig/ifconfig.8 | |
parent | 834ddd1bcc092e4a26f16724892636b249316d70 (diff) | |
download | FreeBSD-src-d61cac74b0dc667b645880b386219cacfb3c53f6.zip FreeBSD-src-d61cac74b0dc667b645880b386219cacfb3c53f6.tar.gz |
Add the "Monitor" interface flag.
Setting this flag on an ethernet interface blocks transmission of packets
and discards incoming packets after BPF processing.
This is useful if you want to monitor network trafic but not interact
with the network in question.
Sponsored by: http://www.babeltech.dk
Diffstat (limited to 'sbin/ifconfig/ifconfig.8')
-rw-r--r-- | sbin/ifconfig/ifconfig.8 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index 39761fb..57468e9 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -504,6 +504,17 @@ for more information. .It Fl link Op Cm 0 No - Cm 2 .Sm on Disable special processing at the link level with the specified interface. +.It Cm monitor +.Sm on +Put the interface in monitor mode. +No packets are transmitted and received packets are discarded after +.Xr bpf 4 +processing. +.Sm off +.It Fl monitor +.Sm on +Take the interface out of monitor mode. +.Sm off .It Cm up Mark an interface .Dq up . |