OpenBSD/src KlLoLJu — sys/netinet ip_carp.c ip_input.c, sys/netinet6 ip6_input.c icmp6.c
All places that call carp_lsdrop() use the interface pointer already. It does not make sense to call if_get() again, just pass ifp as parameter. Move the IFT_CARP check into the function instead of doing it everywhere. Replace the inverted match variable logic with simple returns. OK mpi@ friehm@
Version | Delta | File | |
---|---|---|---|
1.332 | +10 | -17 | sys/netinet/ip_carp.c |
1.337 | +6 | -6 | sys/netinet/ip_input.c |
1.175 | +4 | -7 | sys/netinet/ip_icmp.c |
1.215 | +4 | -5 | sys/netinet6/ip6_input.c |
1.223 | +3 | -4 | sys/netinet6/icmp6.c |
1.47 | +3 | -3 | sys/netinet/ip_carp.h |
+30 | -42 | 6 files |