lkml.org 
[lkml]   [1999]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPart 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__ */
\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.042 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site