ipv4: Make rt->fl.iif tests lest obscure.
When we test rt->fl.iif against zero, we're seeing if it's
an output or an input route.
Make that explicit with some helper functions.
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/dn_route.h 10 additions, 0 deletionsinclude/net/dn_route.h
- include/net/route.h 10 additions, 0 deletionsinclude/net/route.h
- net/decnet/dn_route.c 2 additions, 2 deletionsnet/decnet/dn_route.c
- net/ipv4/icmp.c 2 additions, 2 deletionsnet/ipv4/icmp.c
- net/ipv4/igmp.c 1 addition, 1 deletionnet/ipv4/igmp.c
- net/ipv4/ip_gre.c 1 addition, 1 deletionnet/ipv4/ip_gre.c
- net/ipv4/ipmr.c 1 addition, 1 deletionnet/ipv4/ipmr.c
- net/ipv4/route.c 10 additions, 10 deletionsnet/ipv4/route.c
- net/netfilter/ipvs/ip_vs_xmit.c 5 additions, 3 deletionsnet/netfilter/ipvs/ip_vs_xmit.c
Loading
Please register or sign in to comment