Permalink
Browse files

enabling full headers when filtering is enabled in pfcount

  • Loading branch information...
cardigliano committed Nov 28, 2018
1 parent e1b19e4 commit 5f6aec28f361764339d67061e508ed52ecf6a787
Showing with 1 addition and 3 deletions.
  1. +0 −3 kernel/pf_ring.c
  2. +1 −0 userland/examples/pfcount.c
@@ -1944,9 +1944,6 @@ static int parse_raw_pkt(u_char *data, u_int data_len,
memcpy(&hdr->extended_hdr.parsed_pkt.smac, eh->h_source, sizeof(eh->h_source));
hdr->extended_hdr.parsed_pkt.eth_type = ntohs(eh->h_proto);
hdr->extended_hdr.parsed_pkt.offset.eth_offset = 0;
hdr->extended_hdr.parsed_pkt.offset.vlan_offset = 0;
hdr->extended_hdr.parsed_pkt.vlan_id = 0; /* Any VLAN */
if(hdr->extended_hdr.parsed_pkt.eth_type == ETH_P_8021Q /* 802.1q (VLAN) */) {
struct eth_vlan_hdr *vh;
@@ -1044,6 +1044,7 @@ int main(int argc, char* argv[]) {
add_drop_rule = 2;
break;
}
use_extended_pkt_header = 1;
break;
case 'x':
load_strings(optarg);

0 comments on commit 5f6aec2

Please sign in to comment.