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

(cherry picked from commit 408c909dc64f77d2696d6fec77a2e0b00255cf96)

Details

Provenance
markjAuthored on Sep 4 2024, 1:07 PM
Reviewer
zlei
Differential Revision
D46523: ifnet: Remove if_getamcount()
Parents
rG59f3eb3b71d5: netinet: Explicitly disallow connections to the unspecified address
Branches
Unknown
Tags
Unknown