Messages in this thread Patch in this message | | | Date | Sat, 20 Feb 1999 03:08:09 -0600 (CST) | From | "Andre M. Hedrick" <> | Subject | Part 1 of CONFIG_FILTER (RE: 2.2.2-pre5 compile error) |
| |
This is a typo fix that is needed :: linux/include/linux/filter.h
-extern int sk_run_filter(unsigned char *data, +extern int sk_run_filter(struct sk_buff *skb,
However this is only partial and breakage is still present.
From "linux/include/net/sock.h"
#ifdef CONFIG_FILTER /* Socket Filtering Instructions */ struct sk_filter *filter; #endif /* CONFIG_FILTER */
I believe that "struct sk_filter" is not define or incorrect reference, or I am blind and can't read.........
Lastly function "sk_filter_len(??)" is no where to be found either.
This is my WAG but I'm sure it is wrong..............
extern __inline__ unsigned sk_filter_len(struct sk_filter *fp) { /* return blah_blah->something; */ return fp->len; }
Andre Hedrick The Linux IDE guy -- http://www.dyer.vanderbilt.edu/server/udma/ --- /linux/include/linux/filter.h.orig Sat Feb 20 01:26:52 1999 +++ /linux/include/linux/filter.h Sat Feb 20 01:26:39 1999 @@ -100,7 +100,7 @@ #define BPF_MEMWORDS 16 #ifdef __KERNEL__ -extern int sk_run_filter(unsigned char *data, int len, struct sock_filter *filter, int flen); +extern int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int flen); extern int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); #endif /* __KERNEL__ */
| |