Lines Matching refs:ik
4774 printkey(if_ctx *ctx, const struct ieee80211req_key *ik) in printkey() argument
4777 u_int keylen = ik->ik_keylen; in printkey()
4783 (memcmp(ik->ik_keydata, zerodata, keylen) != 0 || verbose); in printkey()
4786 switch (ik->ik_type) { in printkey()
4789 LINE_CHECK("wepkey %u:%s", ik->ik_keyix+1, in printkey()
4796 LINE_CHECK("TKIP %u:%u-bit", ik->ik_keyix+1, 8*keylen); in printkey()
4799 LINE_CHECK("AES-OCB %u:%u-bit", ik->ik_keyix+1, 8*keylen); in printkey()
4802 LINE_CHECK("AES-CCM %u:%u-bit", ik->ik_keyix+1, 8*keylen); in printkey()
4805 LINE_CHECK("CKIP %u:%u-bit", ik->ik_keyix+1, 8*keylen); in printkey()
4808 LINE_CHECK("NULL %u:%u-bit", ik->ik_keyix+1, 8*keylen); in printkey()
4812 ik->ik_type, ik->ik_keyix+1, 8*keylen); in printkey()
4820 printf("%02x", ik->ik_keydata[i]); in printkey()
4822 if (ik->ik_type != IEEE80211_CIPHER_WEP && in printkey()
4823 (ik->ik_keyrsc != 0 || verbose)) in printkey()
4824 printf(" rsc %ju", (uintmax_t)ik->ik_keyrsc); in printkey()
4825 if (ik->ik_type != IEEE80211_CIPHER_WEP && in printkey()
4826 (ik->ik_keytsc != 0 || verbose)) in printkey()
4827 printf(" tsc %ju", (uintmax_t)ik->ik_keytsc); in printkey()
4828 if (ik->ik_flags != 0 && verbose) { in printkey()
4831 if (ik->ik_flags & IEEE80211_KEY_XMIT) in printkey()
4833 if (ik->ik_flags & IEEE80211_KEY_RECV) in printkey()
4835 if (ik->ik_flags & IEEE80211_KEY_DEFAULT) in printkey()
5090 struct ieee80211req_key ik; in ieee80211_status() local
5092 memset(&ik, 0, sizeof(ik)); in ieee80211_status()
5093 ik.ik_keyix = i; in ieee80211_status()
5094 if (get80211(ctx, IEEE80211_IOC_WPAKEY, &ik, sizeof(ik)) < 0) { in ieee80211_status()
5098 if (ik.ik_keylen != 0) { in ieee80211_status()
5101 printkey(ctx, &ik); in ieee80211_status()