Skip to content

Commit

Permalink
fix duplicate line
Browse files Browse the repository at this point in the history
  • Loading branch information
sattler committed Jul 8, 2022
1 parent da0a0ca commit 61ce466
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,13 @@ void handle_packet(uint32_t buflen, const u_char *bytes,
}

fieldset_t *fs = fs_new_fieldset(&zconf.fsconf.defs);
fs_add_ip_fields(fs, ip_hdr);
// IPv6
if (ipv6) {
fs_add_ipv6_fields(fs, ipv6_hdr);
} else {
fs_add_ip_fields(fs, ip_hdr);
}

// HACK:
// probe modules expect the full ethernet frame
// in process_packet. For VPN, we only get back an IP frame.
Expand Down

0 comments on commit 61ce466

Please sign in to comment.