Page MenuHomeFreeBSD

ifnet: Remove if_getamcount()
ClosedPublic

Authored by markj on Sep 3 2024, 5:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 8, 11:19 PM
Unknown Object (File)
Thu, Jan 1, 9:13 AM
Unknown Object (File)
Wed, Dec 24, 8:17 AM
Unknown Object (File)
Dec 17 2025, 10:47 PM
Unknown Object (File)
Dec 2 2025, 3:02 AM
Unknown Object (File)
Nov 25 2025, 11:46 AM
Unknown Object (File)
Nov 22 2025, 10:03 AM
Unknown Object (File)
Nov 20 2025, 10:13 PM

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