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)
Wed, Jul 1, 11:11 AM
Unknown Object (File)
Tue, Jun 30, 6:57 PM
Unknown Object (File)
Tue, Jun 30, 9:12 AM
Unknown Object (File)
Sun, Jun 28, 11:52 PM
Unknown Object (File)
Sat, Jun 27, 11:13 PM
Unknown Object (File)
Thu, Jun 25, 11:26 PM
Unknown Object (File)
Wed, Jun 24, 4:33 PM
Unknown Object (File)
Mon, Jun 22, 12:15 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