From Francois-Xavier Le Bail: decode DCHP option 249 (Microsoft's
authorguy <guy>
Tue, 21 Aug 2007 22:02:08 +0000 (22:02 +0000)
committerguy <guy>
Tue, 21 Aug 2007 22:02:08 +0000 (22:02 +0000)
Classless Static Route option) the same way as option 121 (RFC 3442's
Classless Static Route option).

bootp.h
print-bootp.c

diff --git a/bootp.h b/bootp.h
index dfda3f430eea7b8133dd4d8fc0035aeca5747459..86ccfd3355786dc0316ed8879c256ba3929a5bdb 100644 (file)
--- a/bootp.h
+++ b/bootp.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/bootp.h,v 1.15.4.2 2007-07-24 17:29:43 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/bootp.h,v 1.15.4.3 2007-08-21 22:02:08 guy Exp $ (LBL) */
 /*
  * Bootstrap Protocol (BOOTP).  RFC951 and RFC1048.
  *
@@ -163,6 +163,7 @@ struct bootp {
 #define        TAG_IP4_SUBNET_SELECT   ((u_int8_t) 118)
 /* RFC 3442 */
 #define TAG_CLASSLESS_STATIC_RT        ((u_int8_t) 121)
+#define TAG_CLASSLESS_STA_RT_MS        ((u_int8_t) 249)
 /* ftp://ftp.isi.edu/.../assignments/bootp-dhcp-extensions */
 #define        TAG_USER_CLASS          ((u_int8_t)  77)
 #define        TAG_SLP_NAMING_AUTH     ((u_int8_t)  80)
index 9a9d760cc77012ceb70a9ce2fd61b3d389be1ede..06a143170a50c4b2392c4a8e84c4ff6470630326 100644 (file)
@@ -22,7 +22,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.78.2.8 2007-07-24 17:29:43 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.78.2.9 2007-08-21 22:02:08 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -280,6 +280,7 @@ static struct tok tag2str[] = {
        { TAG_IP4_SUBNET_SELECT, "iSUBNET" },
 /* RFC 3442 */
        { TAG_CLASSLESS_STATIC_RT, "$Classless-Static-Route" },
+       { TAG_CLASSLESS_STA_RT_MS, "$Classless-Static-Route-Microsoft" },
 /* http://www.iana.org/assignments/bootp-dhcp-extensions/index.htm */
        { TAG_USER_CLASS,       "aCLASS" },
        { TAG_SLP_NAMING_AUTH,  "aSLP-NA" },
@@ -699,6 +700,7 @@ rfc1048_print(register const u_char *bp)
                            break;
 
                        case TAG_CLASSLESS_STATIC_RT:
+                       case TAG_CLASSLESS_STA_RT_MS:
                        {       
                                u_int mask_width, significant_octets, i;