From: Akshay Kawale <linux781@gmail.com>
To: netdev@oss.sgi.com
Subject: Problem accessing IP header fields.
Date: Sat, 2 Apr 2005 05:31:35 -0500 [thread overview]
Message-ID: <72252ed05040202313a309e77@mail.gmail.com> (raw)
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
reply other threads:[~2005-04-02 10:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=72252ed05040202313a309e77@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.