Lines Matching refs:oid
143 setoid(char oid[], size_t oidlen, const char *wlan)
147 snprintf(oid, oidlen, "net.%s.debug", wlan);
150 snprintf(oid, oidlen, "net.wlan.%s.debug", wlan+4);
152 snprintf(oid, oidlen, "net.wlan.debug");
155 snprintf(oid, oidlen, "net.link.ieee80211.%s.debug", wlan);
157 snprintf(oid, oidlen, "net.link.ieee80211.debug");
171 char oid[256];
174 setoid(oid, sizeof(oid), "wlan0");
177 setoid(oid, sizeof(oid), NULL);
184 setoid(oid, sizeof(oid), argv[2]);
191 if (sysctlbyname(oid, &debug, &debuglen, NULL, 0) < 0)
192 err(1, "sysctl-get(%s)", oid);
228 printf("%s: 0x%x => ", oid, debug);
229 if (sysctlbyname(oid, NULL, NULL, &ndebug, sizeof(ndebug)) < 0)
230 err(1, "sysctl-set(%s)", oid);
234 printf("%s: 0x%x", oid, debug);