projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
when regenerating an ipkg package, make sure the entire ipkg build dir is cleaned...
[openwrt-10.03/.git]
/
package
/
libpcap
/
patches
/
106-protocol_api.patch
diff --git
a/package/libpcap/patches/106-protocol_api.patch
b/package/libpcap/patches/106-protocol_api.patch
index 09e3e880ac64530ece8d7dbf2cf0e160b12ae9ac..dc5e45a2466ccf56df068ffa80ce13a88a364c25 100644
(file)
--- 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));
* 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));
if (sock_fd == -1) {
(void)snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
"socket: %s", pcap_strerror(errno));