]> git.baikalelectronics.ru Git - kernel.git/commit
udp6: respect IPV6_DONTFRAG sockopt in case there are pending frames
authorJiri Pirko <jiri@resnulli.us>
Sat, 19 Oct 2013 10:29:15 +0000 (12:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2013 23:20:52 +0000 (19:20 -0400)
commit81bb3718f1a43b50d3ef24012e8ee69977a45a03
treed92b582ce75873973b4fed7d4b2c1dd5fdf18b82
parent2f63111798d8e181b395bcef45d70eef39615bbf
udp6: respect IPV6_DONTFRAG sockopt in case there are pending frames

if up->pending != 0 dontfrag is left with default value -1. That
causes that application that do:
sendto len>mtu flag MSG_MORE
sendto len>mtu flag 0
will receive EMSGSIZE errno as the result of the second sendto.

This patch fixes it by respecting IPV6_DONTFRAG socket option.

introduced by:
commit 7e5ed33083fff61512c8d8f10d76896749dc2dce "IPv6: Complete IPV6_DONTFRAG support"

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c