Page MenuHomeFreeBSD

ifnet: Remove if_getamcount()
ClosedPublic

Authored by markj on Sep 3 2024, 5:00 PM.
Tags
None
Referenced Files
F174392536: D46523.id142857.diff
Fri, Oct 2, 9:19 PM
F174371841: D46523.id142822.diff
Fri, Oct 2, 6:28 PM
F174371827: D46523.id142822.diff
Fri, Oct 2, 6:28 PM
Unknown Object (File)
Wed, Sep 30, 8:20 PM
Unknown Object (File)
Tue, Sep 22, 8:12 AM
Unknown Object (File)
Fri, Sep 18, 12:44 PM
Unknown Object (File)
Fri, Sep 11, 6:45 PM
Unknown Object (File)
Mon, Sep 7, 12:36 AM

Details

Summary

All uses of this function were incorrect. if_amcount is a reference
count which tracks the number of times the network stack internally set
IFF_ALLMULTI. (if_pcount is the corresponding counter for IFF_PROMISC.)

Remove if_getamcount() and fix up callers to get the number of assigned
multicast addresses instead, since that's what they actually want.

Sponsored by: Klara, Inc.

Diff Detail

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