Messages in this thread | | | Date | Fri, 4 Jun 2004 16:05:22 -0400 | From | Bart Trojanowski <> | Subject | Re: modifying struct sk_buff |
| |
* Sharma Sushant <sushant@cs.unm.edu> [040604 14:48]: > > uint32_t skBufId; /* by sushant */ > > char cb[48]; > > skBufId is the variable i added and I want to assign unique value > to this id whenever alloc_skb is called. > Do you think it will be fine to modify alloc_skb(..) > and just assigning a unique value to this new variable which I added > or will there be some side effects of this.
Looks like you can start using skBufId anytime after memset(skb, ...) call. I didn't look at the version of the sources you are using. In 2.4.7-rc2 it looks fine.
-Bart
-- WebSig: http://www.jukie.net/~bart/sig/ [unhandled content-type:application/pgp-signature] | |