diff options
author | Brian Haley <brian.haley@hp.com> | 2009-10-05 04:24:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-07 04:10:45 -0400 |
commit | 51953d5bc43e468f24cc573a45cde1d32af129b8 (patch) | |
tree | e275eb5019dc07bdea3ac61b6198c5c410c49e41 /net/ipv6/udp.c | |
parent | d73d3a8cb4723e161589864741d8528d70b350eb (diff) |
Use sk_mark for IPv6 routing lookups
Atis Elsts wrote:
> Not sure if there is need to fill the mark from skb in tunnel xmit functions. In any case, it's not done for GRE or IPIP tunnels at the moment.
Ok, I'll just drop that part, I'm not sure what should be done in this case.
> Also, in this patch you are doing that for SIT (v6-in-v4) tunnels only, and not doing it for v4-in-v6 or v6-in-v6 tunnels. Any reason for that?
I just sent that patch out too quickly, here's a better one with the updates.
Add support for IPv6 route lookups using sk_mark.
Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 3a60f12b34ed..3842c557d6fa 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -879,6 +879,8 @@ do_udp_sendmsg: | |||
879 | if (!fl.oif) | 879 | if (!fl.oif) |
880 | fl.oif = np->sticky_pktinfo.ipi6_ifindex; | 880 | fl.oif = np->sticky_pktinfo.ipi6_ifindex; |
881 | 881 | ||
882 | fl.mark = sk->sk_mark; | ||
883 | |||
882 | if (msg->msg_controllen) { | 884 | if (msg->msg_controllen) { |
883 | opt = &opt_space; | 885 | opt = &opt_space; |
884 | memset(opt, 0, sizeof(struct ipv6_txoptions)); | 886 | memset(opt, 0, sizeof(struct ipv6_txoptions)); |