diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6_output.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 7c76e3d18215..1c6f0fc43690 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -1087,9 +1087,11 @@ static inline int ip6_ufo_append_data(struct sock *sk, | |||
1087 | if (!err) { | 1087 | if (!err) { |
1088 | struct frag_hdr fhdr; | 1088 | struct frag_hdr fhdr; |
1089 | 1089 | ||
1090 | /* specify the length of each IP datagram fragment*/ | 1090 | /* Specify the length of each IPv6 datagram fragment. |
1091 | skb_shinfo(skb)->gso_size = mtu - fragheaderlen - | 1091 | * It has to be a multiple of 8. |
1092 | sizeof(struct frag_hdr); | 1092 | */ |
1093 | skb_shinfo(skb)->gso_size = (mtu - fragheaderlen - | ||
1094 | sizeof(struct frag_hdr)) & ~7; | ||
1093 | skb_shinfo(skb)->gso_type = SKB_GSO_UDP; | 1095 | skb_shinfo(skb)->gso_type = SKB_GSO_UDP; |
1094 | ipv6_select_ident(skb, &fhdr); | 1096 | ipv6_select_ident(skb, &fhdr); |
1095 | skb_shinfo(skb)->ip6_frag_id = fhdr.identification; | 1097 | skb_shinfo(skb)->ip6_frag_id = fhdr.identification; |