aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 03:00:33 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:54 -0500
commit9cce96df5b76691712dba22e83ff5efe900361e1 (patch)
treeeecf99e64c6866af944e1e1644d87737392b2da2 /net/ipv4/udp.c
parentf42454d632753d71ea1a2df09be7bbda32b6372d (diff)
net: Put fl4_* macros to struct flowi4 and use them again.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 91cba3ca37c4..588f47af5faf 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -778,7 +778,7 @@ static int udp_push_pending_frames(struct sock *sk)
778 if (!skb) 778 if (!skb)
779 goto out; 779 goto out;
780 780
781 err = udp_send_skb(skb, fl4->daddr, fl4->uli.ports.dport); 781 err = udp_send_skb(skb, fl4->daddr, fl4->fl4_dport);
782 782
783out: 783out:
784 up->len = 0; 784 up->len = 0;
@@ -918,8 +918,8 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
918 .flowi4_proto = sk->sk_protocol, 918 .flowi4_proto = sk->sk_protocol,
919 .flowi4_flags = (inet_sk_flowi_flags(sk) | 919 .flowi4_flags = (inet_sk_flowi_flags(sk) |
920 FLOWI_FLAG_CAN_SLEEP), 920 FLOWI_FLAG_CAN_SLEEP),
921 .uli.ports.sport = inet->inet_sport, 921 .fl4_sport = inet->inet_sport,
922 .uli.ports.dport = dport, 922 .fl4_dport = dport,
923 }; 923 };
924 struct net *net = sock_net(sk); 924 struct net *net = sock_net(sk);
925 925
@@ -976,8 +976,8 @@ back_from_confirm:
976 fl4 = &inet->cork.fl.u.ip4; 976 fl4 = &inet->cork.fl.u.ip4;
977 fl4->daddr = daddr; 977 fl4->daddr = daddr;
978 fl4->saddr = saddr; 978 fl4->saddr = saddr;
979 fl4->uli.ports.dport = dport; 979 fl4->fl4_dport = dport;
980 fl4->uli.ports.sport = inet->inet_sport; 980 fl4->fl4_sport = inet->inet_sport;
981 up->pending = AF_INET; 981 up->pending = AF_INET;
982 982
983do_append_data: 983do_append_data: