Page MenuHomeFreeBSD

ifnet: Remove if_getamcount()
ClosedPublic

Authored by markj on Sep 3 2024, 5:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 24, 8:17 AM
Unknown Object (File)
Wed, Dec 17, 10:47 PM
Unknown Object (File)
Tue, Dec 2, 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
Unknown Object (File)
Nov 18 2025, 7:54 AM
Unknown Object (File)
Nov 5 2025, 10:47 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