summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-09-18 12:35:47 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-09-18 12:35:47 +0000
commit373daa759c0548af932a49d1806eb6c937459e02 (patch)
treec52ccf047226e1333db824906b7372a1403c7eaf /sys/man
parent73c37d2db941b91006fb10b7bc76dfbbe1ad72ba (diff)
snoopy: add "ippkt" protocol to demux ip packet interfaces without media header.
When using a packet interface, such as /net/ipifc/x as the packet-soucre, there is no media header and the ip protocol version has to be determined from the first byte. The ippkt protocol solves this, allowing one to decode both ipv4 and ipv6, such as: snoopy -h ippkt /net/ipifc/2
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/8/snoopy9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/man/8/snoopy b/sys/man/8/snoopy
index 72d2f1023..b83db3af9 100644
--- a/sys/man/8/snoopy
+++ b/sys/man/8/snoopy
@@ -174,6 +174,11 @@ assume the first header per packet to be of the
protocol.
The default is
.LR ether .
+For packet interfaces without a media header, use
+.B ippkt
+as the
+.I first-header
+type to decode ipv4 and ipv6 packets.
.SH EXAMPLES
To display only
.SM BOOTP
@@ -209,7 +214,3 @@ later display those to/from TCP port 80:
Ethernet device
.SH SOURCE
.B /sys/src/cmd/ip/snoopy
-.SH BUGS
-.I Snoopy
-only dumps ethernet packets, because there's
-no device to get IP packets without a media header.