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
F172521640: D29594.id86863.diff
Sat, Sep 19, 12:42 AM
F172521032: D29594.id87218.diff
Sat, Sep 19, 12:36 AM
F172520907: D29594.id86864.diff
Sat, Sep 19, 12:35 AM
F172519733: D29594.diff
Sat, Sep 19, 12:22 AM
F172489964: D29594.id.diff
Fri, Sep 18, 8:02 PM
Unknown Object (File)
Thu, Sep 17, 7:50 PM
Unknown Object (File)
Thu, Sep 17, 1:19 PM
Unknown Object (File)
Fri, Sep 11, 5:34 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38339
Build 35228: arc lint + arc unit