]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Always use inp fib in the inp_lookup_mcast_ifp().
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Mon, 5 Apr 2021 19:58:57 +0000 (19:58 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Sat, 10 Apr 2021 13:47:49 +0000 (13:47 +0000)
commitc3a456defaf28df8d6f47704d606248f6c22146c
tree7b1496ecd488cb3420c7e1e345a7bf80c37bee1b
parent15ca66220874c177602c13a114b2f3d17773b788
Always use inp fib in the inp_lookup_mcast_ifp().

inp_lookup_mcast_ifp() is static and is only used in the inp_join_group().
The latter function is also static, and is only used in the inp_setmoptions(),
 which relies on inp being non-NULL.

As a result, in the current code, inp_lookup_mcast_ifp() is always called
 with non-NULL inp. Eliminate unused RT_DEFAULT_FIB condition and always
 use inp fib instead.

Differential Revision: https://reviews.freebsd.org/D29594
Reviewed by: kp
MFC after: 2 weeks
sys/netinet/in_mcast.c