Page MenuHomeFreeBSD

Always use inp fib in the inp_lookup_mcast_ifp().
ClosedPublic

Authored by melifaro on Apr 5 2021, 7:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 5:08 AM
Unknown Object (File)
Tue, Apr 23, 5:40 PM
Unknown Object (File)
Tue, Apr 23, 5:03 PM
Unknown Object (File)
Fri, Apr 19, 1:14 PM
Unknown Object (File)
Mon, Apr 8, 12:07 AM
Unknown Object (File)
Mar 17 2024, 1:06 AM
Unknown Object (File)
Feb 8 2024, 11:43 PM
Unknown Object (File)
Feb 8 2024, 6:35 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable