Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63cbd2fd authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

[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: default avatarWei Yongjun <weiyj@soft.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3a01c1ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;