From: Akshay Kawale <linux781@gmail.com>
To: netdev@oss.sgi.com
Subject: Re: Difference between skb_put() and skb_push()
Date: Sat, 2 Apr 2005 13:44:07 -0500 [thread overview]
Message-ID: <72252ed0504021044e69d634@mail.gmail.com> (raw)
In-Reply-To: <72252ed05033021463a1f45b6@mail.gmail.com>
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 parent reply other threads:[~2005-04-02 18:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-31 5:46 Difference between skb_put() and skb_push() Akshay Kawale
2005-03-31 5:54 ` YOSHIFUJI Hideaki / 吉藤英明
2005-04-02 18:44 ` Akshay Kawale [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72252ed0504021044e69d634@mail.gmail.com \
--to=linux781@gmail.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).