diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-11-12 13:43:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-17 15:27:45 -0500 |
commit | 5811662b15db018c740c57d037523683fd3e6123 (patch) | |
tree | f820610a6024799a26699f22dc9a4ef5dee07978 /net/rxrpc | |
parent | dd68ad2235b4625e0dc928b2b4c614d265f976d3 (diff) |
net: use the macros defined for the members of flowi
Use the macros defined for the members of flowi to clean the code up.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/ar-peer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/rxrpc/ar-peer.c b/net/rxrpc/ar-peer.c index 9f1729bd60de..a53fb25a64ed 100644 --- a/net/rxrpc/ar-peer.c +++ b/net/rxrpc/ar-peer.c | |||
@@ -47,12 +47,12 @@ static void rxrpc_assess_MTU_size(struct rxrpc_peer *peer) | |||
47 | case AF_INET: | 47 | case AF_INET: |
48 | fl.oif = 0; | 48 | fl.oif = 0; |
49 | fl.proto = IPPROTO_UDP, | 49 | fl.proto = IPPROTO_UDP, |
50 | fl.nl_u.ip4_u.saddr = 0; | 50 | fl.fl4_dst = peer->srx.transport.sin.sin_addr.s_addr; |
51 | fl.nl_u.ip4_u.daddr = peer->srx.transport.sin.sin_addr.s_addr; | 51 | fl.fl4_src = 0; |
52 | fl.nl_u.ip4_u.tos = 0; | 52 | fl.fl4_tos = 0; |
53 | /* assume AFS.CM talking to AFS.FS */ | 53 | /* assume AFS.CM talking to AFS.FS */ |
54 | fl.uli_u.ports.sport = htons(7001); | 54 | fl.fl_ip_sport = htons(7001); |
55 | fl.uli_u.ports.dport = htons(7000); | 55 | fl.fl_ip_dport = htons(7000); |
56 | break; | 56 | break; |
57 | default: | 57 | default: |
58 | BUG(); | 58 | BUG(); |