Re: modifying struct sk_buff

From: Bart Trojanowski
Date: Fri Jun 04 2004 - 15:08:19 EST


* Sharma Sushant <sushant@xxxxxxxxxx> [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/

Attachment: signature.asc
Description: Digital signature