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

Function getac

tools/ifconfig/ifieee80211.c:1201–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199}
1200
1201static int
1202getac(const char *ac)
1203{
1204 if (strcasecmp(ac, "ac_be") == 0 || strcasecmp(ac, "be") == 0)
1205 return WME_AC_BE;
1206 if (strcasecmp(ac, "ac_bk") == 0 || strcasecmp(ac, "bk") == 0)
1207 return WME_AC_BK;
1208 if (strcasecmp(ac, "ac_vi") == 0 || strcasecmp(ac, "vi") == 0)
1209 return WME_AC_VI;
1210 if (strcasecmp(ac, "ac_vo") == 0 || strcasecmp(ac, "vo") == 0)
1211 return WME_AC_VO;
1212 errx(1, "unknown wme access class %s", ac);
1213}
1214
1215static
1216DECL_CMD_FUNC2(set80211cwmin, ac, val)

Callers 1

ifieee80211.cFile · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected