diff options
Diffstat (limited to 'include/net/ip6_route.h')
-rw-r--r-- | include/net/ip6_route.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index e06e0ca1e91b..8552f0a2e854 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -175,5 +175,15 @@ static inline int ipv6_unicast_destination(struct sk_buff *skb) | |||
175 | return rt->rt6i_flags & RTF_LOCAL; | 175 | return rt->rt6i_flags & RTF_LOCAL; |
176 | } | 176 | } |
177 | 177 | ||
178 | int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)); | ||
179 | |||
180 | static inline int ip6_skb_dst_mtu(struct sk_buff *skb) | ||
181 | { | ||
182 | struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL; | ||
183 | |||
184 | return (np && np->pmtudisc == IPV6_PMTUDISC_PROBE) ? | ||
185 | skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb)); | ||
186 | } | ||
187 | |||
178 | #endif | 188 | #endif |
179 | #endif | 189 | #endif |