aboutsummaryrefslogtreecommitdiff
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorHannes Frederic Sowa <[email protected]>2014-02-26 01:20:41 +0100
committerDavid S. Miller <[email protected]>2014-02-26 15:51:00 -0500
commit69647ce46a236a355a7a3096d793819a9bd7c1d3 (patch)
tree880944e2f3c20030f6e49ad9c9e590157ef738c8 /lib/net_utils.c
parenta960ff81f0cd6390940faa75a078ac76acec7940 (diff)
ipv4: use ip_skb_dst_mtu to determine mtu in ip_fragment
ip_skb_dst_mtu mostly falls back to ip_dst_mtu_maybe_forward if no socket is attached to the skb (in case of forwarding) or determines the mtu like we do in ip_finish_output, which actually checks if we should branch to ip_fragment. Thus use the same function to determine the mtu here, too. This is important for the introduction of IP_PMTUDISC_OMIT, where we want the packets getting cut in pieces of the size of the outgoing interface mtu. IPv6 already does this correctly. Signed-off-by: Hannes Frederic Sowa <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions