inet: Create and use rt{,6}_get_peer_create().
There's a lot of places that open-code rt{,6}_get_peer() only because
they want to set 'create' to one. So add an rt{,6}_get_peer_create()
for their sake.
There were also a few spots open-coding plain rt{,6}_get_peer() and
those are transformed here as well.
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip6_route.h 13 additions, 4 deletionsinclude/net/ip6_route.h
- include/net/route.h 12 additions, 2 deletionsinclude/net/route.h
- net/ipv4/icmp.c 2 additions, 3 deletionsnet/ipv4/icmp.c
- net/ipv4/route.c 9 additions, 26 deletionsnet/ipv4/route.c
- net/ipv4/tcp_ipv4.c 1 addition, 3 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv6/icmp.c 3 additions, 3 deletionsnet/ipv6/icmp.c
- net/ipv6/ip6_output.c 4 additions, 7 deletionsnet/ipv6/ip6_output.c
- net/ipv6/ndisc.c 3 additions, 3 deletionsnet/ipv6/ndisc.c
- net/ipv6/route.c 1 addition, 4 deletionsnet/ipv6/route.c
- net/ipv6/tcp_ipv6.c 1 addition, 3 deletionsnet/ipv6/tcp_ipv6.c
Loading
Please register or sign in to comment