HomeFreeBSD

ifnet: Remove if_getamcount()

Description

ifnet: Remove if_getamcount()

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.
Reviewed by: zlei, glebius
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D46523

Details

Provenance
markjAuthored on Wed, Sep 4, 1:07 PM
Reviewer
zlei
Differential Revision
D46523: ifnet: Remove if_getamcount()
Parents
rG41ece3c036bd: capsicum tests: Serialize functional tests
Branches
Unknown
Tags
Unknown