Skip to content

Commit

Permalink
Deprecate PF_RING_ZC_PKT_FLAGS_FLOW_OFFLOAD_* flags (Accolade)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Nov 20, 2023
1 parent 8477906 commit 49d7b60
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions userland/examples/pfcount.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,10 @@ void print_packet(const struct pfring_pkthdr *h, const u_char *p, u_int8_t dump_
char bigbuf[4096], pbuf[64];;
u_int len;

snprintf(&dump_str[strlen(dump_str)], sizeof(dump_str)-strlen(dump_str), "%s[if_index=%d][hash=%u]%s",
snprintf(&dump_str[strlen(dump_str)], sizeof(dump_str)-strlen(dump_str), "%s[if_index=%d][hash=%u]",
h->extended_hdr.rx_direction ? "[RX]" : "[TX]",
h->extended_hdr.if_index,
h->extended_hdr.pkt_hash,
(h->extended_hdr.flags & PKT_FLAGS_FLOW_OFFLOAD_MARKER) ? "[MARKED]" : "");
h->extended_hdr.pkt_hash);

if (h->extended_hdr.process.pid)
snprintf(&dump_str[strlen(dump_str)], sizeof(dump_str)-strlen(dump_str), "[pid=%u (%s)]",
Expand Down

0 comments on commit 49d7b60

Please sign in to comment.