MCPcopy Create free account
hub / github.com/F-Stack/f-stack / printcipher

Function printcipher

tools/ifconfig/ifieee80211.c:4701–4733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4699
4700#if 0
4701static void
4702printcipher(int s, struct ieee80211req *ireq, int keylenop)
4703{
4704 switch (ireq->i_val) {
4705 case IEEE80211_CIPHER_WEP:
4706 ireq->i_type = keylenop;
4707 if (ioctl(s, SIOCG80211, ireq) != -1)
4708 printf("WEP-%s",
4709 ireq->i_len <= 5 ? "40" :
4710 ireq->i_len <= 13 ? "104" : "128");
4711 else
4712 printf("WEP");
4713 break;
4714 case IEEE80211_CIPHER_TKIP:
4715 printf("TKIP");
4716 break;
4717 case IEEE80211_CIPHER_AES_OCB:
4718 printf("AES-OCB");
4719 break;
4720 case IEEE80211_CIPHER_AES_CCM:
4721 printf("AES-CCM");
4722 break;
4723 case IEEE80211_CIPHER_CKIP:
4724 printf("CKIP");
4725 break;
4726 case IEEE80211_CIPHER_NONE:
4727 printf("NONE");
4728 break;
4729 default:
4730 printf("UNKNOWN (0x%x)", ireq->i_val);
4731 break;
4732 }
4733}
4734#endif
4735
4736static void

Callers 1

ieee80211_statusFunction · 0.85

Calls 2

ioctlFunction · 0.50
printfFunction · 0.50

Tested by

no test coverage detected