]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: consistent reporting of pmtu data in case of corking
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Thu, 19 Dec 2013 01:13:36 +0000 (02:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Dec 2013 23:52:09 +0000 (18:52 -0500)
commit8589964d54143ecb727ac08df660e3bf9aeea384
treeb8d3a7b9c7424ff210dbaeeb2964fb8fa88e267d
parent85af90538ed4ebce2f4ef3d18aeca5ef8c71ff84
ipv4: consistent reporting of pmtu data in case of corking

We report different pmtu values back on the first write and on further
writes on an corked socket.

Also don't include the dst.header_len (respectively exthdrlen) as this
should already be dealt with by the interface mtu of the outgoing
(virtual) interface and policy of that interface should dictate if
fragmentation should happen.

Instead reduce the pmtu data by IP options as we do for IPv6. Make the
same changes for ip_append_data, where we did not care about options or
dst.header_len at all.

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c