From: Joseph C. Lehner Date: Mon, 8 Feb 2016 10:00:24 +0000 (+0100) Subject: Fix filter specification X-Git-Tag: v0.9~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48c78307213c0f8401ad255c66091bf81b2abdd0;p=oweals%2Fnmrpflash.git Fix filter specification --- 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");