]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pktap.c
Add CAP_FCNTL and use cap_fcntls_limit().
[tcpdump] / print-pktap.c
index 009a663f7d260d4565a055627905a3db0afcfdab..46a187de2f33df4bf4517b484d446318ce38f170 100644 (file)
@@ -19,6 +19,7 @@
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
+#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -66,7 +67,7 @@ typedef struct pktap_header {
 #define PKT_REC_PACKET 1       /* a packet follows the header */
 
 static inline void
-pktap_header_print(struct netdissect_options *ndo, const u_char *bp, u_int length)
+pktap_header_print(netdissect_options *ndo, const u_char *bp, u_int length)
 {
        const pktap_header_t *hdr;
        uint32_t dlt, hdrlen;
@@ -92,7 +93,7 @@ pktap_header_print(struct netdissect_options *ndo, const u_char *bp, u_int lengt
  * is the number of bytes actually captured.
  */
 u_int
-pktap_if_print(struct netdissect_options *ndo,
+pktap_if_print(netdissect_options *ndo,
                const struct pcap_pkthdr *h, const u_char *p)
 {
        uint32_t dlt, hdrlen, rectype;
@@ -137,6 +138,7 @@ pktap_if_print(struct netdissect_options *ndo,
 
        case PKT_REC_NONE:
                ND_PRINT((ndo, "no data"));
+               break;
 
        case PKT_REC_PACKET:
                if ((printer = lookup_printer(dlt)) != NULL) {