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

Function lacp_format_mac

tools/ifconfig/iflagg.c:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188static char *
189lacp_format_mac(const uint8_t *mac, char *buf, size_t buflen)
190{
191 snprintf(buf, buflen, "%02X-%02X-%02X-%02X-%02X-%02X",
192 (int)mac[0], (int)mac[1], (int)mac[2], (int)mac[3],
193 (int)mac[4], (int)mac[5]);
194
195 return (buf);
196}
197
198static char *
199lacp_format_peer(struct lacp_opreq *req, const char *sep)

Callers 1

lacp_format_peerFunction · 0.70

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected