| 186 | } |
| 187 | |
| 188 | static char * |
| 189 | lacp_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 | |
| 198 | static char * |
| 199 | lacp_format_peer(struct lacp_opreq *req, const char *sep) |
no test coverage detected