]> Git Repo - linux.git/commit - net/ipv6/ip6_output.c
ipv6: set skb->protocol on tcp, raw and ip6_append_data genereated skbs
authorHannes Frederic Sowa <[email protected]>
Mon, 26 Aug 2013 10:31:23 +0000 (12:31 +0200)
committerSteffen Klassert <[email protected]>
Mon, 26 Aug 2013 10:46:24 +0000 (12:46 +0200)
commit9c9c9ad5fae7e9ef56a38acb508a01919b225e9a
tree55be017c3c5f7dd19e8f5735188e1ca43bb6122b
parent5a25cf1e310888eb333f9e034be84a8117111d30
ipv6: set skb->protocol on tcp, raw and ip6_append_data genereated skbs

Currently we don't initialize skb->protocol when transmitting data via
tcp, raw(with and without inclhdr) or udp+ufo or appending data directly
to the socket transmit queue (via ip6_append_data). This needs to be
done so that we can get the correct mtu in the xfrm layer.

Setting of skb->protocol happens only in functions where we also have
a transmitting socket and a new skb, so we don't overwrite old values.

Cc: Steffen Klassert <[email protected]>
Cc: Eric Dumazet <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: Hannes Frederic Sowa <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
net/ipv6/ip6_output.c
net/ipv6/raw.c
This page took 0.050744 seconds and 4 git commands to generate.