]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pktap.c
Add CAP_FCNTL and use cap_fcntls_limit().
[tcpdump] / print-pktap.c
index 1b5e3c917dfca17be20b0e83510f0da9bfc0ad2d..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;