netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem accessing IP header fields.
@ 2005-04-02 10:31 Akshay Kawale
  0 siblings, 0 replies; only message in thread
From: Akshay Kawale @ 2005-04-02 10:31 UTC (permalink / raw)
  To: netdev

Hi,

I am trying to access the tot_len field in the IP Header using a
sk_buff structure inside a Netfilter hook.

I do something like:

(**skb).nh.iph->tot_len += 64

I have tried other variants of the same statement but none of them work.
I want to increment the length by 64 bytes, but it gives me an error
saying that I am trying to access an 'incomplete data type'.

Can anyone shed some light on this problem?
tot_len if of type __u16 (unsigned short int).

Thanks.

- Akshay

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-02 10:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-02 10:31 Problem accessing IP header fields Akshay Kawale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).