| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | Problem accessing IP header fields. |
| From: | Akshay Kawale <linux781@xxxxxxxxx> |
| Date: | Sat, 2 Apr 2005 05:31:35 -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:mime-version:content-type:content-transfer-encoding; b=m8KmkOw5qebPHfeH+i3pMbrY/IbFik0mgjgGVabMStvpnnuBglcvbkF810DYXX7mhlZyBICiTYXcoExX3TB/uLXNrMC9g5TzzrVn9jW1V0kD9Z8MyHmIMWY30VUCqz/HWq37msrhni/axG7jZg18xPMzdOqKIHcs/U7DZb8EZL0= |
| 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> |
|---|---|---|
| ||
| Previous by Date: | Fw: [Bugme-new] [Bug 4434] New: Tulip based NIC card causes hard lock up of PC, Andrew Morton |
|---|---|
| Next by Date: | Get rid of rt_check_expire and rt_garbage_collect, Herbert Xu |
| Previous by Thread: | Fw: [Bugme-new] [Bug 4434] New: Tulip based NIC card causes hard lock up of PC, Andrew Morton |
| Next by Thread: | [PATCH] Generic HDLC update, Krzysztof Halasa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |