Problem solved
Indeed, the pointer to pointer was the problem.
However, who is implementing with netfilter.h needs to be careful about that. From kernel 2.6.20 (I guess) it is a pointer only to skb sk_buff structure. But, from 2.6.19 version and lesser ones it is a double pointer (**skb).
User Profile
Collapse
-
-
-
Try someting like this:
if (strcasecmp(lin e, "Importance : High") == 0) {
}Leave a comment:
-
Actually, it seems to be an "light problem"...
All you need to do is write an "while" or a "for" loop.
The loop should go from 0 (zero) to the ALPH_PHONE_SIZE-1.
Probably you will read the phone from the user and store the information in a array char (or string).
Then, inside the loop you should access each position of this array/string and compute the information.
If you use a "while"...Leave a comment:
-
invalid pointer initialization
Hello all,
I'm facing some problems to compile a new module for Linux Ubuntu 8.04, kernel version 2.6. Above are two pieces of code related to the problem.
linux/netfilter.h
...Code://begin netfilter ... typedef unsigned int nf_hookfn(unsigned int hooknum, struct sk_buff *skb, const struct net_devide *in, const struct net_device *out, int (*okfn)(struct sk_buff *)); ... struct nf_hook_ops
No activity results to display
Show More
Leave a comment: