aboutsummaryrefslogtreecommitdiffstats
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
commit2b7559c6127d030a39d09395fed456bdba87f7f9 (patch)
tree56798a366de37d0ba2389063fb0521baa0f9b932
parentbd03626da34d2b948adcedf2d6baf1787f7879d5 (diff)
downloadupstream-2b7559c6127d030a39d09395fed456bdba87f7f9.tar.gz
upstream-2b7559c6127d030a39d09395fed456bdba87f7f9.tar.bz2
upstream-2b7559c6127d030a39d09395fed456bdba87f7f9.zip
[package] libpcap: fix typo in protocol api patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15802 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 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));