mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 10:33:28 +08:00
34ec5e5f3f
rfc1048_print() used to print DHCP options in a few different formats depending on the context (see GH issue #866): * at the top of an RFC 1048 block: * known options: [string] name and [decimal] tag * unknown options: tag twice * inside a Parameter Request (55) block: * known options: name * unknown options: tag Change it to use the "Name (tag)" format (as in TCP, BGP, etc) in all contexts. Update output for 8 tests.
37 lines
1.9 KiB
Plaintext
37 lines
1.9 KiB
Plaintext
1 12:28:41.189402 IP (tos 0x0, ttl 255, id 9459, offset 0, flags [none], proto UDP (17), length 422)
|
|
62.12.173.121.67 > 62.12.173.114.67: [udp sum ok] BOOTP/DHCP, Request from b8:27:eb:b8:53:c8, length 394, hops 1, xid 0x68c4847, Flags [none] (0x0000)
|
|
Client-IP 62.12.173.123
|
|
Gateway-IP 62.12.173.121
|
|
Client-Ethernet-Address b8:27:eb:b8:53:c8
|
|
Vendor-rfc1048 Extensions
|
|
Magic Cookie 0x63825363
|
|
DHCP-Message (53), length 1: Request
|
|
Client-ID (61), length 7: ether b8:27:eb:b8:53:c8
|
|
MSZ (57), length 2: 1472
|
|
MUD-URL (161), length 54: "https://mudctl.example.com/.well-known/mud/v1/rasbp101"
|
|
Vendor-Class (60), length 45: "dhcpcd-6.11.5:Linux-4.1.18-v7+:armv7l:BCM2709"
|
|
Hostname (12), length 11: "raspberrypi"
|
|
Unknown (145), length 1: 1
|
|
Parameter-Request (55), length 16:
|
|
Subnet-Mask (1), Classless-Static-Route (121), Static-Route (33), Default-Gateway (3)
|
|
Domain-Name-Server (6), Hostname (12), Domain-Name (15), BR (28)
|
|
NTP (42), Lease-Time (51), Server-ID (54), RN (58)
|
|
RB (59), POSIX-TZ (100), TZ-Name (101), Unknown (119)
|
|
2 12:28:41.318491 IP (tos 0x0, ttl 64, id 10305, offset 0, flags [DF], proto UDP (17), length 338)
|
|
62.12.173.114.67 > 62.12.173.121.67: [udp sum ok] BOOTP/DHCP, Reply, length 310, hops 1, xid 0x68c4847, Flags [none] (0x0000)
|
|
Client-IP 62.12.173.123
|
|
Your-IP 62.12.173.123
|
|
Server-IP 62.12.173.114
|
|
Gateway-IP 62.12.173.121
|
|
Client-Ethernet-Address b8:27:eb:b8:53:c8
|
|
Vendor-rfc1048 Extensions
|
|
Magic Cookie 0x63825363
|
|
DHCP-Message (53), length 1: ACK
|
|
Server-ID (54), length 4: 62.12.173.114
|
|
Lease-Time (51), length 4: 600
|
|
Subnet-Mask (1), length 4: 255.255.255.248
|
|
Default-Gateway (3), length 4: 62.12.173.121
|
|
Domain-Name-Server (6), length 4: 62.12.173.114
|
|
Domain-Name (15), length 19: "ofcourseimright.com"
|
|
TZ-Name (101), length 13: "Europe/Berlin"
|