From a05ee98d49977ec112a64daf48cb7b83da21de0e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 13 Jul 2013 17:46:37 +0200 Subject: pcap_io: Remove unused parameter sll from pcap_pkthdr_to_tpacket_hdr() The sll parameter is not used anywhere in the function, so remove it. Signed-off-by: Tobias Klauser --- netsniff-ng.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'netsniff-ng.c') diff --git a/netsniff-ng.c b/netsniff-ng.c index 7b08ed0..0d9046c 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -279,7 +279,7 @@ static void pcap_to_xmit(struct ctx *ctx) !bpf_run_filter(&bpf_ops, out, pcap_get_length(&phdr, ctx->magic))); - pcap_pkthdr_to_tpacket_hdr(&phdr, ctx->magic, &hdr->tp_h, &hdr->s_ll); + pcap_pkthdr_to_tpacket_hdr(&phdr, ctx->magic, &hdr->tp_h); ctx->tx_bytes += hdr->tp_h.tp_len;; ctx->tx_packets++; @@ -540,7 +540,6 @@ static void read_pcap(struct ctx *ctx) struct sock_fprog bpf_ops; struct frame_map fm; struct timeval start, end, diff; - struct sockaddr_ll sll; bug_on(!__pcap_io); @@ -615,7 +614,7 @@ static void read_pcap(struct ctx *ctx) !bpf_run_filter(&bpf_ops, out, pcap_get_length(&phdr, ctx->magic))); - pcap_pkthdr_to_tpacket_hdr(&phdr, ctx->magic, &fm.tp_h, &sll); + pcap_pkthdr_to_tpacket_hdr(&phdr, ctx->magic, &fm.tp_h); ctx->tx_bytes += fm.tp_h.tp_len; ctx->tx_packets++; -- cgit v1.2.3-54-g00ecf