Page MenuHomeFreeBSD

ifnet: Remove if_getamcount()
ClosedPublic

Authored by markj on Sep 3 2024, 5:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 8 2026, 5:03 PM
Unknown Object (File)
May 8 2026, 3:22 AM
Unknown Object (File)
May 8 2026, 3:22 AM
Unknown Object (File)
May 7 2026, 11:03 PM
Unknown Object (File)
May 6 2026, 9:29 AM
Unknown Object (File)
May 3 2026, 5:56 PM
Unknown Object (File)
Apr 27 2026, 5:12 AM
Unknown Object (File)
Apr 21 2026, 5:16 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