netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH]ip_options_fragment() has no effect on fragmentation
@ 2006-05-06  0:36 Wei Yongjun
  2006-05-09 22:20 ` David S. Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Yongjun @ 2006-05-06  0:36 UTC (permalink / raw)
  To: David S. Miller; +Cc: weiyj, netdev

I had tested the patch under linux system, maybe this mail is correct.

Fix error point to options in ip_options_fragment(). optptr get a error
pointer to the ipv4 header, correct is pointer to ipv4 options.

Signed-off-by: Wei Yongjun <weiyj@soft.fujitsu.com>

--- a/net/ipv4/ip_options.c	2006-01-27 09:14:33.463612696 +0900
+++ b/net/ipv4/ip_options.c	2006-01-27 09:12:21.857619848 +0900
@@ -207,7 +207,7 @@
 
 void ip_options_fragment(struct sk_buff * skb) 
 {
-	unsigned char * optptr = skb->nh.raw;
+	unsigned char * optptr = skb->nh.raw + sizeof(struct iphdr);
 	struct ip_options * opt = &(IPCB(skb)->opt);
 	int  l = opt->optlen;
 	int  optlen;


On Monday 08 May 2006 01:41, David S. Miller wrote:
> Actually it didn't get applied for some reason.
>
> Please resubmit it properly with a full changelog and
> "Signed-off-by: " lines, and make double sure that your
> email client does not corrupt the patch so that I may
> apply it cleanly.  Test this by sending it to yourself
> and trying to apply the patch.


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <001701c6277a$eaa93950$cfa0220a@WeiYJ>]

end of thread, other threads:[~2006-05-09 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-06  0:36 [PATCH]ip_options_fragment() has no effect on fragmentation Wei Yongjun
2006-05-09 22:20 ` David S. Miller
     [not found] <001701c6277a$eaa93950$cfa0220a@WeiYJ>
     [not found] ` <1138821701.3852.8.camel@L-tech1>
     [not found]   ` <20060202.170840.114568749.davem@davemloft.net>
2006-05-05 17:50     ` weiyj
2006-05-08  5:39       ` David S. Miller
2006-05-08  5:41       ` David S. Miller

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).