tcpdump mailing list archives

print-bootp.c: enhancement to decode DHCP option 121


From: Francois-Xavier Le Bail <fx.lebail () yahoo com>
Date: Mon, 23 Jul 2007 08:48:08 -0700 (PDT)

The following patch decode DHCP option 121.

Example output:

16:48:02.007714 IP (tos 0x10, ttl 64, id 0, offset 0,
flags [none], proto UDP (17), length 369)
    192.168.3.1.67 > 192.168.3.19.68: BOOTP/DHCP,
Reply, length 341, xid 0x528b1c37, secs 1, Flags
[none]
          Your-IP 192.168.3.19
          Server-IP 192.168.3.1
          Client-Ethernet-Address 00:12:79:56:ec:40
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: ACK
            Server-ID Option 54, length 4: 192.168.3.1
            Lease-Time Option 51, length 4: 3600
            Subnet-Mask Option 1, length 4:
255.255.255.0
            Classless-Static-Route Option 121, length
59:
(default:192.168.3.1),(10.0.0.0/8:192.168.3.2),(11.128.0.0/9:192.168.3.3),(172.16.0.0/16:192.168.3.4),(172.17.128.0/17:192.168.3.5),(192.168.1.0/24:192.168.3.6),(192.168.2.128/25:192.168.3.7),(192.168.254.254/32:192.168.3.8)



      ____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 

Attachment: print-bootp.c_opt121_patch.gz
Description: 4152536349-print-bootp.c_opt121_patch.gz

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Current thread: