The BSDI_CONTRIB file that BSDI ships with the contributed source
says:
This software package is maintained by both BSDI and the
software contributor. Please send any bug reports to both
[EMAIL PROTECTED] and [EMAIL PROTECTED][EMAIL PROTECTED] as
appropriate.
so here goes.
tcpdump displays DHCP lease times or option T51 (and all other numeric
4-byte values) wrong. For example, the following:
20:40:51.198833 calcite.bootps > andesite.bootpc: xid:0xc41d7d1c C:andesite Y:andesite
S:calcite vend-rfc1048 T53:5 T54:54377664 T51:1476526080 SM:255.255.255.0
DN:"rhyolite.com" DG:siderite NS:calcite
should be
20:40:51.198833 calcite.bootps > andesite.bootpc: xid:0xc41d7d1c C:andesite Y:andesite
S:calcite vend-rfc1048 T53:5 T54:54377664 T51:600 SM:255.255.255.0 DN:"rhyolite.com"
DG:siderite NS:calcite
The DHCP lease time is among the values you're most likely to use
tcpdump to check, so this bug matters
I think the following change is sufficient:
***************
*** 281,287 ****
if (c == 'i')
printf("%s", ipaddr_string(&ul));
else
! printf("%u", ul);
bp += sizeof(ul);
size -= sizeof(ul);
first = 0;
--- 279,285 ----
if (c == 'i')
printf("%s", ipaddr_string(&ul));
else
! printf("%u", ntohl(ul));
bp += sizeof(ul);
size -= sizeof(ul);
first = 0;
Vernon Schryver [EMAIL PROTECTED]
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe