summaryrefslogtreecommitdiff
path: root/package/libpcap/patches
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-05-12 14:47:19 +0000
committerNicolas Thill <nico@openwrt.org>2009-05-12 14:47:19 +0000
commit94c1598c3e70e397884bbaa611964fabbcd607a6 (patch)
tree366eae11f7d991029727c1bdc665bd5df6010814 /package/libpcap/patches
parente5a836693e66a0edd0f35cf6a110b06142f3515b (diff)
downloadmtk-20170518-94c1598c3e70e397884bbaa611964fabbcd607a6.zip
mtk-20170518-94c1598c3e70e397884bbaa611964fabbcd607a6.tar.gz
mtk-20170518-94c1598c3e70e397884bbaa611964fabbcd607a6.tar.bz2
libpcap: fix typo in protocol api patch
SVN-Revision: 15802
Diffstat (limited to 'package/libpcap/patches')
-rw-r--r--package/libpcap/patches/106-protocol_api.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/libpcap/patches/106-protocol_api.patch b/package/libpcap/patches/106-protocol_api.patch
index 09e3e88..dc5e45a 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));