mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
dd68ad2235
commit
5811662b15
32 changed files with 171 additions and 316 deletions
|
|
@ -47,12 +47,12 @@ static void rxrpc_assess_MTU_size(struct rxrpc_peer *peer)
|
|||
case AF_INET:
|
||||
fl.oif = 0;
|
||||
fl.proto = IPPROTO_UDP,
|
||||
fl.nl_u.ip4_u.saddr = 0;
|
||||
fl.nl_u.ip4_u.daddr = peer->srx.transport.sin.sin_addr.s_addr;
|
||||
fl.nl_u.ip4_u.tos = 0;
|
||||
fl.fl4_dst = peer->srx.transport.sin.sin_addr.s_addr;
|
||||
fl.fl4_src = 0;
|
||||
fl.fl4_tos = 0;
|
||||
/* assume AFS.CM talking to AFS.FS */
|
||||
fl.uli_u.ports.sport = htons(7001);
|
||||
fl.uli_u.ports.dport = htons(7000);
|
||||
fl.fl_ip_sport = htons(7001);
|
||||
fl.fl_ip_dport = htons(7000);
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
|
|
|
|||
Loading…
Reference in a new issue