]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: pass up EMSGSIZE msg for UDP socket in Ipv6
authorWei Wang <weiwan@google.com>
Wed, 17 Feb 2016 21:58:22 +0000 (13:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2016 20:46:24 +0000 (15:46 -0500)
commit9722c1500d29f6612f9fe798f327e04f0705ca01
treee4db7477d4deaf5a5b922ddeb89f6327fe7d8483
parentb9934fffbdc1351e72f602f50cd0f5e4248dfcfb
ipv6: pass up EMSGSIZE msg for UDP socket in Ipv6

In ipv4,  when  the machine receives a ICMP_FRAG_NEEDED message,  the
connected UDP socket will get EMSGSIZE message on its next read from the
socket.
However, this is not the case for ipv6.
This fix modifies the udp err handler in Ipv6 for ICMP6_PKT_TOOBIG to
make it similar to ipv4 behavior. That is when the machine gets an
ICMP6_PKT_TOOBIG message, the connected UDP socket will get EMSGSIZE
message on its next read from the socket.

Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c