Convert the 2nd rttimer callback from struct rttimer to u_int rtableid.
authorclaudio <claudio@openbsd.org>
Sat, 30 Apr 2022 07:20:35 +0000 (07:20 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 30 Apr 2022 07:20:35 +0000 (07:20 +0000)
commit80eefb13a29c30eeeba8c65975046a50822289a6
tree495b4509701246f557cc06758caa613434c8e75c
parent61184c00e08f630a64303944f376feb9e540531a
Convert the 2nd rttimer callback from struct rttimer to u_int rtableid.
The callback only needs to know the rtableid all the other info from
struct rtableid is not needed.
Also change the default rttimer callback to only delete routes that are
RTF_HOST and RTF_DYNAMIC. This way 2 of the ICMP handlers can use NULL
as the callback.
OK bluhm@
sys/net/route.c
sys/net/route.h
sys/netinet/ip_icmp.c
sys/netinet/ip_mroute.c
sys/netinet6/icmp6.c
sys/netinet6/ip6_mroute.c