From d1eef162252faf60b2acb19a1df70c1a5e13ecd2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 14 Aug 2014 18:27:25 +0200 Subject: 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 --- netsniff-ng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf