kern/51831: ATM/HARP BPF support
Vincent Jardin
vjardin at wanadoo.fr
Tue May 6 00:30:23 PDT 2003
The following reply was made to PR kern/51831; it has been noted by GNATS.
From: Vincent Jardin <vjardin at wanadoo.fr>
To: freebsd-gnats-submit at FreeBSD.org, vjardin at free.fr
Cc:
Subject: Re: kern/51831: ATM/HARP BPF support
Date: Tue, 6 May 2003 09:25:39 +0200
For example, now you can get the LLC/SNAP header with tcpdump:
su-2.05b# atm add pvc hva1 3 40 AAL5 SNAP IP atm0 1.1.2.3
su-2.05b# atm show ipvcc
Net Intf VPI VCI State Flags IP Address
atm0 1 40 ACTIVE PM 1.1.2.2
atm0 3 40 ACTIVE PLM 1.1.2.3
su-2.05b# atm show vcc
Interface VPI VCI AAL Type Dir State Encaps Owner
hva1 1 40 AAL5 PVC InOut ACTIVE Null IP
hva1 3 40 AAL5 PVC InOut ACTIVE LLC/SNAP IP
su-2.05b# ifconfig atm0
atm0: flags=3D43<UP,BROADCAST,RUNNING> mtu 9180
inet 1.1.1.1 netmask 0xffff0000 broadcast 1.1.255.255
ether 00:19:e1:6a:a3:f2
$ ping 1.1.2.3
su-2.05b# tcpdump -nXi atm0
tcpdump: listening on atm0
09:22:20.540119 1.1.1.1 > 1.1.2.3: icmp: echo request
0x0000 aaaa 0300 0000 0800 4500 0054 05c6 0000 ........E..T....
0x0010 4001 6fde 0101 0101 0101 0203 0800 cc1b @.o.............
0x0020 f702 1500 ac62 b73e c93c 0800 0809 0a0b .....b.>.<......
0x0030 0c0d 0e0f 1011 1213 1415 1617 1819 1a1b ................
0x0040 1c1d 1e1f 2021 2223 2425 2627 2829 2a2b .....!"#$%&'()*+
0x0050 2c2d 2e2f 3031 3233 3435 3637 ,-./01234567
su-2.05b# tcpdump -nvi atm0
tcpdump: listening on atm0
09:22:25.590190 snap 0:0:0:8:0 1.1.1.1 > 1.1.2.3: icmp: echo request (ttl=
64,=20
id 1493, len 84)
More information about the freebsd-bugs
mailing list