From: Nicolas Thill Date: Tue, 12 May 2009 14:47:19 +0000 (+0000) Subject: libpcap: fix typo in protocol api patch X-Git-Tag: reboot~23601 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94c1598c3e70e397884bbaa611964fabbcd607a6;p=oweals%2Fopenwrt.git libpcap: fix typo in protocol api patch SVN-Revision: 15802 --- diff --git a/package/libpcap/patches/106-protocol_api.patch b/package/libpcap/patches/106-protocol_api.patch index 09e3e880ac..dc5e45a246 100644 --- a/package/libpcap/patches/106-protocol_api.patch +++ b/package/libpcap/patches/106-protocol_api.patch @@ -24,7 +24,7 @@ * we also have PF_PACKET support.) */ - sock_fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); -+ sock_fd = socket(PF_PACKET, SOCK_RAW, handle->opt.proto); ++ sock_fd = socket(PF_PACKET, SOCK_RAW, p->opt.proto); if (sock_fd == -1) { (void)snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "socket: %s", pcap_strerror(errno));