diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2014-11-28 11:10:24 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2014-11-28 11:10:24 +0100 |
commit | 93d4e71b8d66370e3c497d58fc8921cb44ab9245 (patch) | |
tree | 9d61331ebd08fb5d0cccc7b74cd931821be20b8d /tests | |
parent | a64be3b7a147ff66b205ccbbc0d639a1b334d6ab (diff) | |
download | tcpdump-93d4e71b8d66370e3c497d58fc8921cb44ab9245.tar.gz |
DHCP: decoder for the User Class option (RFC3004)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TESTLIST | 3 | ||||
-rw-r--r-- | tests/dhcp-rfc3004-v.out | 55 | ||||
-rw-r--r-- | tests/dhcp-rfc3004.pcap | bin | 0 -> 1420 bytes |
3 files changed, 58 insertions, 0 deletions
diff --git a/tests/TESTLIST b/tests/TESTLIST index 094f0f2f..25437068 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -260,3 +260,6 @@ aoe_1-v AoE_Linux.pcap aoe_1-v.out -t -v # Geneve tests geneve-v geneve.pcap geneve-vv.out -t -vv + +# DHCP tests +dhcp-rfc3004 dhcp-rfc3004.pcap dhcp-rfc3004-v.out -t -v diff --git a/tests/dhcp-rfc3004-v.out b/tests/dhcp-rfc3004-v.out new file mode 100644 index 00000000..2032817c --- /dev/null +++ b/tests/dhcp-rfc3004-v.out @@ -0,0 +1,55 @@ +IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328) + 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:0c:29:1f:74:06, length 300, xid 0x6e32864, Flags [none] + Client-Ethernet-Address 00:0c:29:1f:74:06 + Vendor-rfc1048 Extensions + Magic Cookie 0x63825363 + DHCP-Message Option 53, length 1: Discover + Requested-IP Option 50, length 4: 192.168.1.4 + Parameter-Request Option 55, length 7: + Subnet-Mask, BR, Time-Zone, Default-Gateway + Domain-Name, Domain-Name-Server, Hostname + User-Class Option 77, length 37: + instance#1: "subopt1", length 7 + instance#2: "subopt2-123456789", length 17 + instance#3: "subopt3-12", length 10 +IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 308) + 192.168.1.1.67 > 192.168.1.4.68: BOOTP/DHCP, Reply, length 280, xid 0x6e32864, Flags [none] + Your-IP 192.168.1.4 + Client-Ethernet-Address 00:0c:29:1f:74:06 + Vendor-rfc1048 Extensions + Magic Cookie 0x63825363 + DHCP-Message Option 53, length 1: Offer + Server-ID Option 54, length 4: 192.168.1.1 + Lease-Time Option 51, length 4: 86400 + Subnet-Mask Option 1, length 4: 255.255.255.0 + Default-Gateway Option 3, length 4: 192.168.1.1 + Domain-Name-Server Option 6, length 4: 192.168.1.1 + Domain-Name Option 15, length 4: "Home" +IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 332) + 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:0c:29:1f:74:06, length 304, xid 0x6e32864, Flags [none] + Client-Ethernet-Address 00:0c:29:1f:74:06 + Vendor-rfc1048 Extensions + Magic Cookie 0x63825363 + DHCP-Message Option 53, length 1: Request + Server-ID Option 54, length 4: 192.168.1.1 + Requested-IP Option 50, length 4: 192.168.1.4 + Parameter-Request Option 55, length 7: + Subnet-Mask, BR, Time-Zone, Default-Gateway + Domain-Name, Domain-Name-Server, Hostname + User-Class Option 77, length 37: + instance#1: "subopt1", length 7 + instance#2: "subopt2-123456789", length 17 + instance#3: "subopt3-12", length 10 +IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 308) + 192.168.1.1.67 > 192.168.1.4.68: BOOTP/DHCP, Reply, length 280, xid 0x6e32864, Flags [none] + Your-IP 192.168.1.4 + Client-Ethernet-Address 00:0c:29:1f:74:06 + Vendor-rfc1048 Extensions + Magic Cookie 0x63825363 + DHCP-Message Option 53, length 1: ACK + Server-ID Option 54, length 4: 192.168.1.1 + Lease-Time Option 51, length 4: 86400 + Subnet-Mask Option 1, length 4: 255.255.255.0 + Default-Gateway Option 3, length 4: 192.168.1.1 + Domain-Name-Server Option 6, length 4: 192.168.1.1 + Domain-Name Option 15, length 4: "Home" diff --git a/tests/dhcp-rfc3004.pcap b/tests/dhcp-rfc3004.pcap Binary files differnew file mode 100644 index 00000000..11806c31 --- /dev/null +++ b/tests/dhcp-rfc3004.pcap |