aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 01:12:47 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:48 -0500
commit9d6ec938019c6b16cb9ec96598ebe8f20de435fe (patch)
tree9b850eb7fd48a6e5ffc15f47afd2e3edc93f5290 /net/ipv4/udp.c
parent68a5e3dd0a0056d8b349f9eea3756adda53ec17a (diff)
ipv4: Use flowi4 in public route lookup interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 116e4a8bfb73..25c080798bd0 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -908,22 +908,22 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
908 rt = (struct rtable *)sk_dst_check(sk, 0); 908 rt = (struct rtable *)sk_dst_check(sk, 0);
909 909
910 if (rt == NULL) { 910 if (rt == NULL) {
911 struct flowi fl = { 911 struct flowi4 fl4 = {
912 .flowi_oif = ipc.oif, 912 .flowi4_oif = ipc.oif,
913 .flowi_mark = sk->sk_mark, 913 .flowi4_mark = sk->sk_mark,
914 .fl4_dst = faddr, 914 .daddr = faddr,
915 .fl4_src = saddr, 915 .saddr = saddr,
916 .fl4_tos = tos, 916 .flowi4_tos = tos,
917 .flowi_proto = sk->sk_protocol, 917 .flowi4_proto = sk->sk_protocol,
918 .flowi_flags = (inet_sk_flowi_flags(sk) | 918 .flowi4_flags = (inet_sk_flowi_flags(sk) |
919 FLOWI_FLAG_CAN_SLEEP), 919 FLOWI_FLAG_CAN_SLEEP),
920 .fl4_sport = inet->inet_sport, 920 .uli.ports.sport = inet->inet_sport,
921 .fl4_dport = dport, 921 .uli.ports.dport = dport,
922 }; 922 };
923 struct net *net = sock_net(sk); 923 struct net *net = sock_net(sk);
924 924
925 security_sk_classify_flow(sk, &fl); 925 security_sk_classify_flow(sk, flowi4_to_flowi(&fl4));
926 rt = ip_route_output_flow(net, &fl, sk); 926 rt = ip_route_output_flow(net, &fl4, sk);
927 if (IS_ERR(rt)) { 927 if (IS_ERR(rt)) {
928 err = PTR_ERR(rt); 928 err = PTR_ERR(rt);
929 rt = NULL; 929 rt = NULL;