ip6_output.c (0c4b51f0054ce85c0ec578ab818f0631834573eb) ip6_output.c (be10de0a322ded7701a4dcce4a0ba83b3bbf42e5)
1/*
2 * IPv6 output functions
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 * Based on linux/net/ipv4/ip_output.c

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

131 return ip6_finish_output2(sk, skb);
132}
133
134int ip6_output(struct sock *sk, struct sk_buff *skb)
135{
136 struct net_device *dev = skb_dst(skb)->dev;
137 struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb));
138 struct net *net = dev_net(dev);
1/*
2 * IPv6 output functions
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 * Based on linux/net/ipv4/ip_output.c

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

131 return ip6_finish_output2(sk, skb);
132}
133
134int ip6_output(struct sock *sk, struct sk_buff *skb)
135{
136 struct net_device *dev = skb_dst(skb)->dev;
137 struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb));
138 struct net *net = dev_net(dev);
139
139 if (unlikely(idev->cnf.disable_ipv6)) {
140 IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
141 kfree_skb(skb);
142 return 0;
143 }
144
145 return NF_HOOK_COND(NFPROTO_IPV6, NF_INET_POST_ROUTING,
146 net, sk, skb, NULL, dev,

--- 1625 unchanged lines hidden ---
140 if (unlikely(idev->cnf.disable_ipv6)) {
141 IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
142 kfree_skb(skb);
143 return 0;
144 }
145
146 return NF_HOOK_COND(NFPROTO_IPV6, NF_INET_POST_ROUTING,
147 net, sk, skb, NULL, dev,

--- 1625 unchanged lines hidden ---