Page MenuHomeFreeBSD

ifconfig: 802.11: factor out keyix printing
ClosedPublic

Authored by bz on May 27 2025, 8:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 7:29 PM
Unknown Object (File)
Thu, Aug 13, 10:28 AM
Unknown Object (File)
Thu, Aug 13, 9:43 AM
Unknown Object (File)
Wed, Aug 12, 9:12 AM
Unknown Object (File)
Wed, Aug 12, 9:04 AM
Unknown Object (File)
Wed, Aug 12, 5:07 AM
Unknown Object (File)
Tue, Aug 11, 1:19 PM
Unknown Object (File)
Sat, Aug 8, 4:10 PM
Subscribers

Details

Summary

The node unicast key (PTK) uses a key index of (-1) and printing
a 64k number does not look great. Factor out printing the key
number into a buffer and use 'ucast' for the node unicast key.
Hope is that this will be useful for the future as well when we
will have more/different keys possibly.

Looks like (with -vk):

AES-CCM 2:128-bit <xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> rsc 0 tsc 0 rx
AES-CCM 3:128-bit <xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> rsc 0 tsc 0 rx
AES-GCM ucast:128-bit <xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> rsc 0 tsc 0 tx+rx

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 64476
Build 61360: arc lint + arc unit

Event Timeline

bz requested review of this revision.May 27 2025, 8:02 PM

technically (cry) ucast will eventually be keyix 0 and keyix 1, but not the WEP/global slots. Aiee. :-)

-adrian

technically (cry) ucast will eventually be keyix 0 and keyix 1, but not the WEP/global slots. Aiee. :-)

I don't want to confuse people with ext key support just yet.

I just needed to print the current state somehow as it helps for debugging.
We can name it differently if you want...

This revision is now accepted and ready to land.Jun 7 2025, 2:43 PM
This revision was automatically updated to reflect the committed changes.