Page MenuHomeFreeBSD

ifnet: Remove if_getamcount()
ClosedPublic

Authored by markj on Sep 3 2024, 5:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 7, 12:36 AM
Unknown Object (File)
Wed, Sep 2, 3:06 PM
Unknown Object (File)
Wed, Sep 2, 2:58 PM
Unknown Object (File)
Wed, Sep 2, 2:58 PM
Unknown Object (File)
Mon, Aug 24, 7:22 AM
Unknown Object (File)
Sun, Aug 23, 5:44 PM
Unknown Object (File)
Sun, Aug 23, 9:21 AM
Unknown Object (File)
Fri, Aug 21, 6:42 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