netdev
[Top] [All Lists]

Re: Difference between skb_put() and skb_push()

To: netdev@xxxxxxxxxxx
Subject: Re: Difference between skb_put() and skb_push()
From: Akshay Kawale <linux781@xxxxxxxxx>
Date: Sat, 2 Apr 2005 13:44:07 -0500
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=aKGmZ4hpLJ7N6OferqIHuGfei+vozd7D7DoJc0CZObBsEX+Mu5qTTB2axEchIpMcZemzRqQPeQ3kqgriTNrooAzSnyHNVIfRqNKlktYZmVTUwbwciM5zfsmetes3V//dC4xOy547FvLkVteeFFTwsAJCOhvnu2XlwfTox/mL+Kw=
In-reply-to: <72252ed05033021463a1f45b6@xxxxxxxxxxxxxx>
References: <72252ed05033021463a1f45b6@xxxxxxxxxxxxxx>
Reply-to: Akshay Kawale <linux781@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Difference between skb_put() and skb_push(), Akshay Kawale <=