summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-08-14 18:27:25 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-08-14 18:38:27 +0200
commitd1eef162252faf60b2acb19a1df70c1a5e13ecd2 (patch)
tree7fa4ffd076fa2b0fa7d9811523ef3b48fd40ecad /netsniff-ng.c
parent0fab564a98d1a54bc6b6eeac57f41ce182c38018 (diff)
netsniff-ng: Use correct parameters to show_frame_hdr()
Commit edca6174b09 ("dissector: Restore paket type if capturing from nlmon device") changed the signature of show_frame_hdr(). The call to this function was not updated in the !HAVE_TPACKET3 part of netsniff-ng introduced in commit 97e6f994785c ("netsniff-ng: Restore tpacket v2 capturing"), causing a compile error. Fix this by providing the correct parameters to show_frame_hdr() also in this case. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 984f9ca..05d1267 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -981,7 +981,8 @@ static void recv_only_or_dump(struct ctx *ctx)
panic("Write error to pcap!\n");
}
- show_frame_hdr(hdr, ctx->print_mode);
+ show_frame_hdr(packet, hdr->tp_h.tp_snaplen,
+ ctx->link_type, hdr, ctx->print_mode);
dissector_entry_point(packet, hdr->tp_h.tp_snaplen,
ctx->link_type, ctx->print_mode);