From 48c78307213c0f8401ad255c66091bf81b2abdd0 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 8 Feb 2016 11:00:24 +0100 Subject: [PATCH] Fix filter specification --- ethsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethsock.c b/ethsock.c index caadf4c..de8f683 100644 --- a/ethsock.c +++ b/ethsock.c @@ -296,7 +296,7 @@ struct ethsock *ethsock_create(const char *intf, uint16_t protocol) } #endif - snprintf(buf, sizeof(buf), "ether proto %04x", protocol); + snprintf(buf, sizeof(buf), "ether proto 0x%04x", protocol); err = pcap_compile(sock->pcap, &fp, buf, 0, 0); if (err) { pcap_perror(sock->pcap, "pcap_compile"); -- 2.25.1