]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-rx.c
bgp: Parse BGP extended message support capability
[tcpdump] / print-rx.c
index 3b7a623dde543e0e07a7a334fafedc9d99b9c6ba..a9eccb914eb58b417d8aec5ed39d31f4902241e0 100644 (file)
@@ -40,7 +40,6 @@
 #endif
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include "netdissect-stdinc.h"
 
@@ -790,7 +789,6 @@ rx_cache_find(netdissect_options *ndo, const struct rx_header *rxh,
                }
 
 #define UINT64OUT() { uint64_t _i; \
-                       ND_TCHECK_LEN(bp, sizeof(uint64_t)); \
                        _i = GET_BE_U_8(bp); \
                        bp += sizeof(uint64_t); \
                        ND_PRINT(" %" PRIu64, _i); \
@@ -1142,6 +1140,7 @@ trunc:
  * representing a logical OR of all the ACL permission bits
  */
 
+#define XSTRINGIFY(x) #x
 #define NUMSTRINGIFY(x)        XSTRINGIFY(x)
 
 static void