MCPcopy Index your code
hub / github.com/F-Stack/f-stack / lacp_format_peer

Function lacp_format_peer

tools/ifconfig/iflagg.c:198–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static char *
199lacp_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
216static void
217lagg_status(int s)

Callers 1

lagg_statusFunction · 0.85

Calls 2

snprintfFunction · 0.85
lacp_format_macFunction · 0.70

Tested by

no test coverage detected