xfrm: introduce helper for safe determination of mtu
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 13 Aug 2013 02:35:58 +0000 (04:35 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 14 Aug 2013 11:09:07 +0000 (13:09 +0200)
skb->sk socket can be of AF_INET or AF_INET6 address family. Thus we
always have to make sure we a referring to the correct interpretation
of skb->sk.

We only depend on header defines to query the mtu, so we don't introduce
a new dependency to ipv6 by this change.

Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>

No differences found