Skip to content

Commit 49895c1

Browse files
committed
From Francois-Xavier Le Bail: decode DCHP option 249 (Microsoft's
Classless Static Route option) the same way as option 121 (RFC 3442's Classless Static Route option).
1 parent b38e765 commit 49895c1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bootp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @(#) $Header: /tcpdump/master/tcpdump/bootp.h,v 1.15.4.2 2007-07-24 17:29:43 guy Exp $ (LBL) */
1+
/* @(#) $Header: /tcpdump/master/tcpdump/bootp.h,v 1.15.4.3 2007-08-21 22:02:08 guy Exp $ (LBL) */
22
/*
33
* Bootstrap Protocol (BOOTP). RFC951 and RFC1048.
44
*
@@ -163,6 +163,7 @@ struct bootp {
163163
#define TAG_IP4_SUBNET_SELECT ((u_int8_t) 118)
164164
/* RFC 3442 */
165165
#define TAG_CLASSLESS_STATIC_RT ((u_int8_t) 121)
166+
#define TAG_CLASSLESS_STA_RT_MS ((u_int8_t) 249)
166167
/* ftp://ftp.isi.edu/.../assignments/bootp-dhcp-extensions */
167168
#define TAG_USER_CLASS ((u_int8_t) 77)
168169
#define TAG_SLP_NAMING_AUTH ((u_int8_t) 80)

print-bootp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
#ifndef lint
2424
static const char rcsid[] _U_ =
25-
"@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.78.2.8 2007-07-24 17:29:43 guy Exp $ (LBL)";
25+
"@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.78.2.9 2007-08-21 22:02:08 guy Exp $ (LBL)";
2626
#endif
2727

2828
#ifdef HAVE_CONFIG_H
@@ -280,6 +280,7 @@ static struct tok tag2str[] = {
280280
{ TAG_IP4_SUBNET_SELECT, "iSUBNET" },
281281
/* RFC 3442 */
282282
{ TAG_CLASSLESS_STATIC_RT, "$Classless-Static-Route" },
283+
{ TAG_CLASSLESS_STA_RT_MS, "$Classless-Static-Route-Microsoft" },
283284
/* http://www.iana.org/assignments/bootp-dhcp-extensions/index.htm */
284285
{ TAG_USER_CLASS, "aCLASS" },
285286
{ TAG_SLP_NAMING_AUTH, "aSLP-NA" },
@@ -699,6 +700,7 @@ rfc1048_print(register const u_char *bp)
699700
break;
700701

701702
case TAG_CLASSLESS_STATIC_RT:
703+
case TAG_CLASSLESS_STA_RT_MS:
702704
{
703705
u_int mask_width, significant_octets, i;
704706

0 commit comments

Comments
 (0)