From: Wei Yongjun Date: Tue, 9 May 2006 22:18:50 +0000 (-0700) Subject: [IPV4]: ip_options_fragment() has no effect on fragmentation X-Git-Tag: v2.6.17-rc4~3^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63cbd2fda38f3d1f107c4fd6261e5660be3eccf9;p=platform%2Fkernel%2Flinux-3.10.git [IPV4]: ip_options_fragment() has no effect on fragmentation 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c index 9bebad0..cbcae65 100644 --- a/net/ipv4/ip_options.c +++ b/net/ipv4/ip_options.c @@ -209,7 +209,7 @@ int ip_options_echo(struct ip_options * dopt, struct sk_buff * skb) 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;