| 196 | } |
| 197 | |
| 198 | static char * |
| 199 | lacp_format_peer(struct lacp_opreq *req, const char *sep) |
| 200 | { |
| 201 | char macbuf1[20]; |
| 202 | char macbuf2[20]; |
| 203 | |
| 204 | snprintf(lacpbuf, sizeof(lacpbuf), |
| 205 | "[(%04X,%s,%04X,%04X,%04X),%s(%04X,%s,%04X,%04X,%04X)]", |
| 206 | req->actor_prio, |
| 207 | lacp_format_mac(req->actor_mac, macbuf1, sizeof(macbuf1)), |
| 208 | req->actor_key, req->actor_portprio, req->actor_portno, sep, |
| 209 | req->partner_prio, |
| 210 | lacp_format_mac(req->partner_mac, macbuf2, sizeof(macbuf2)), |
| 211 | req->partner_key, req->partner_portprio, req->partner_portno); |
| 212 | |
| 213 | return(lacpbuf); |
| 214 | } |
| 215 | |
| 216 | static void |
| 217 | lagg_status(int s) |
no test coverage detected