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, Aug 13, 6:18 PM
Unknown Object (File)
Wed, Aug 12, 5:43 PM
Unknown Object (File)
Wed, Aug 12, 5:21 PM
Unknown Object (File)
Mon, Aug 10, 12:37 PM
Unknown Object (File)
Mon, Aug 10, 6:56 AM
Unknown Object (File)
Sat, Aug 8, 7:12 PM
Unknown Object (File)
Sat, Aug 8, 5:39 PM
Unknown Object (File)
Sat, Aug 8, 12:04 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