projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[tools] gmp: update to 5.0.4
[openwrt.git]
/
package
/
wprobe
/
src
/
kernel
/
wprobe-core.c
diff --git
a/package/wprobe/src/kernel/wprobe-core.c
b/package/wprobe/src/kernel/wprobe-core.c
index
68d0717
..
6ec847a
100644
(file)
--- a/
package/wprobe/src/kernel/wprobe-core.c
+++ b/
package/wprobe/src/kernel/wprobe-core.c
@@
-24,6
+24,9
@@
#else
#include <linux/list.h>
#endif
#else
#include <linux/list.h>
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
+#include <linux/prefetch.h>
+#endif
#include <linux/skbuff.h>
#include <linux/wprobe.h>
#include <linux/math64.h>
#include <linux/skbuff.h>
#include <linux/wprobe.h>
#include <linux/math64.h>
@@
-243,8
+246,13
@@
wprobe_add_frame(struct wprobe_iface *dev, const struct wprobe_wlan_hdr *hdr, vo
def = j;
continue;
}
def = j;
continue;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
+ if (sk_run_filter(skb, fi->filter) == 0)
+ continue;
+#else
if (sk_run_filter(skb, fi->filter, fi->hdr.n_items) == 0)
continue;
if (sk_run_filter(skb, fi->filter, fi->hdr.n_items) == 0)
continue;
+#endif
found = true;
break;
found = true;
break;
This page took
0.025832 seconds
and
4
git commands to generate.