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

Function printie

tools/ifconfig/ifieee80211.c:2701–2719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2699}
2700
2701static void
2702printie(const char* tag, const uint8_t *ie, size_t ielen, int maxlen)
2703{
2704 printf("%s", tag);
2705 if (verbose) {
2706 maxlen -= strlen(tag)+2;
2707 if (2*ielen > maxlen)
2708 maxlen--;
2709 printf("<");
2710 for (; ielen > 0; ie++, ielen--) {
2711 if (maxlen-- <= 0)
2712 break;
2713 printf("%02x", *ie);
2714 }
2715 if (ielen != 0)
2716 printf("-");
2717 printf(">");
2718 }
2719}
2720
2721#define LE_READ_2(p) \
2722 ((u_int16_t) \

Callers 1

printiesFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected