summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netsniff-ng.c5
-rw-r--r--pcap_io.h3
2 files changed, 3 insertions, 5 deletions
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++;
diff --git a/pcap_io.h b/pcap_io.h
index 31685b4..b53dcb2 100644
--- a/pcap_io.h
+++ b/pcap_io.h
@@ -450,8 +450,7 @@ static inline void tpacket3_hdr_to_pcap_pkthdr(struct tpacket3_hdr *thdr,
static inline void pcap_pkthdr_to_tpacket_hdr(pcap_pkthdr_t *phdr,
enum pcap_type type,
- struct tpacket2_hdr *thdr,
- struct sockaddr_ll *sll)
+ struct tpacket2_hdr *thdr)
{
switch (type) {
case DEFAULT:
show_bug.cgi?id=99134 which has a patch for the underlying problem, but it hasn't gotten to me, so I'm applying the workaround. ] Cc: Daniel Vetter <daniel.vetter@intel.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Imre Deak <imre.deak@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/soc/codecs/adau1373.c')