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)
Fri, Sep 26, 10:40 AM
Unknown Object (File)
Fri, Sep 19, 6:31 PM
Unknown Object (File)
Sep 14 2025, 12:19 AM
Unknown Object (File)
Sep 9 2025, 5:10 PM
Unknown Object (File)
Sep 2 2025, 7:11 PM
Unknown Object (File)
Sep 2 2025, 6:51 PM
Unknown Object (File)
Sep 2 2025, 4:13 PM
Unknown Object (File)
Sep 2 2025, 3:43 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 Not Applicable
Unit
Tests Not Applicable

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.