User Profile

Collapse

Profile Sidebar

Collapse
ricardopf
ricardopf
Last Activity: Mar 24 '09, 01:19 PM
Joined: Mar 17 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ricardopf
    replied to invalid pointer initialization
    in C
    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).
    See more | Go to post
    Last edited by ricardopf; Mar 17 '09, 05:41 PM. Reason: Problem solved

    Leave a comment:


  • ricardopf
    replied to invalid pointer initialization
    in C
    That's right... it is **
    See more | Go to post

    Leave a comment:


  • ricardopf
    replied to Crash on string compare
    in C
    Try someting like this:

    if (strcasecmp(lin e, "Importance : High") == 0) {
    }
    See more | Go to post

    Leave a comment:


  • ricardopf
    replied to Translating alphabetic number in C
    in C
    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"...
    See more | Go to post

    Leave a comment:


  • ricardopf
    started a topic invalid pointer initialization
    in C

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...