]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-bootp.c
Add support for the Marvell Extended Distributed Switch Architecture header
[tcpdump] / print-bootp.c
index 27438fabe3cc538191e66968f0d1061a43a057b1..07c518e8a09b00b22284e4c81df031a85fc73e0e 100644 (file)
@@ -21,7 +21,6 @@
  * Format and print bootp packets.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -851,7 +850,7 @@ rfc1048_print(netdissect_options *ndo,
 
                        case TAG_CLIENT_ID:
                            {
-                               int type;
+                               int type;
 
                                /* this option should be at least 1 byte long */
                                if (len < 1) {
@@ -907,7 +906,8 @@ rfc1048_print(netdissect_options *ndo,
                                        case AGENT_SUBOPTION_CIRCUIT_ID: /* fall through */
                                        case AGENT_SUBOPTION_REMOTE_ID:
                                        case AGENT_SUBOPTION_SUBSCRIBER_ID:
-                                               fn_printn(ndo, bp, suboptlen, NULL);
+                                               if (fn_printn(ndo, bp, suboptlen, ndo->ndo_snapend))
+                                                       goto trunc;
                                                break;
 
                                        default: