ip6_route.h (96dc809514fb2328605198a0602b67554d8cce7b) ip6_route.h (550bab42f83308c9d6ab04a980cc4333cef1c8fa)
1#ifndef _NET_IP6_ROUTE_H
2#define _NET_IP6_ROUTE_H
3
4struct route_info {
5 __u8 type;
6 __u8 length;
7 __u8 prefix_len;
8#if defined(__BIG_ENDIAN_BITFIELD)

--- 180 unchanged lines hidden (view full) ---

189static inline int ip6_skb_dst_mtu(struct sk_buff *skb)
190{
191 struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL;
192
193 return (np && np->pmtudisc == IPV6_PMTUDISC_PROBE) ?
194 skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb));
195}
196
1#ifndef _NET_IP6_ROUTE_H
2#define _NET_IP6_ROUTE_H
3
4struct route_info {
5 __u8 type;
6 __u8 length;
7 __u8 prefix_len;
8#if defined(__BIG_ENDIAN_BITFIELD)

--- 180 unchanged lines hidden (view full) ---

189static inline int ip6_skb_dst_mtu(struct sk_buff *skb)
190{
191 struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL;
192
193 return (np && np->pmtudisc == IPV6_PMTUDISC_PROBE) ?
194 skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb));
195}
196
197static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt, struct in6_addr *dest)
197static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt)
198{
198{
199 if (rt->rt6i_flags & RTF_GATEWAY || !ipv6_addr_any(&rt->rt6i_gateway))
200 return &rt->rt6i_gateway;
201 return dest;
199 return &rt->rt6i_gateway;
202}
203
204#endif
200}
201
202#endif