Source
343
343
return 1;
344
344
}
345
345
346
346
#if IS_ENABLED(CONFIG_IPV6)
347
347
/* modelled after ip6_finish_output2 */
348
348
static int vrf_finish_output6(struct net *net, struct sock *sk,
349
349
struct sk_buff *skb)
350
350
{
351
351
struct dst_entry *dst = skb_dst(skb);
352
352
struct net_device *dev = dst->dev;
353
+
const struct in6_addr *nexthop;
353
354
struct neighbour *neigh;
354
-
struct in6_addr *nexthop;
355
355
int ret;
356
356
357
357
nf_reset(skb);
358
358
359
359
skb->protocol = htons(ETH_P_IPV6);
360
360
skb->dev = dev;
361
361
362
362
rcu_read_lock_bh();
363
363
nexthop = rt6_nexthop((struct rt6_info *)dst, &ipv6_hdr(skb)->daddr);
364
364
neigh = __ipv6_neigh_lookup_noref(dst->dev, nexthop);