Page MenuHomeFreeBSD

ifnet: Remove if_getamcount()
ClosedPublic

Authored by markj on Sep 3 2024, 5:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 14, 1:48 PM
Unknown Object (File)
Tue, Apr 14, 1:15 PM
Unknown Object (File)
Tue, Apr 14, 12:29 AM
Unknown Object (File)
Mon, Apr 13, 3:13 PM
Unknown Object (File)
Mon, Apr 13, 7:27 AM
Unknown Object (File)
Sat, Apr 11, 1:33 PM
Unknown Object (File)
Mar 12 2026, 8:23 AM
Unknown Object (File)
Mar 7 2026, 3:52 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