1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-02-17 18:04:42 +02:00

[package] libpcap: fix typo in protocol api patch

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15802 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2009-05-12 14:47:19 +00:00
parent 3da5c74ed8
commit 42f55dc34b

View File

@ -24,7 +24,7 @@
* we also have PF_PACKET support.) * we also have PF_PACKET support.)
*/ */
- sock_fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); - 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) { if (sock_fd == -1) {
(void)snprintf(p->errbuf, PCAP_ERRBUF_SIZE, (void)snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
"socket: %s", pcap_strerror(errno)); "socket: %s", pcap_strerror(errno));