diff options
author | Wei Yongjun | 2006-05-10 00:18:50 +0200 |
---|---|---|
committer | David S. Miller | 2006-05-10 00:18:50 +0200 |
commit | 63cbd2fda38f3d1f107c4fd6261e5660be3eccf9 (patch) | |
tree | 67af128970e072a754949317cb4cc0a51cc404c5 | |
parent | [NET]: Add missing operstates documentation. (diff) | |
download | kernel-qcow2-linux-63cbd2fda38f3d1f107c4fd6261e5660be3eccf9.tar.gz kernel-qcow2-linux-63cbd2fda38f3d1f107c4fd6261e5660be3eccf9.tar.xz kernel-qcow2-linux-63cbd2fda38f3d1f107c4fd6261e5660be3eccf9.zip |
[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 <weiyj@soft.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/ip_options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c index 9bebad07bf2e..cbcae6544622 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; |