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

Function ipsec_sa2str

freebsd/netipsec/key_debug.c:966–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966char *
967ipsec_sa2str(struct secasvar *sav, char *buf, size_t size)
968{
969 char sbuf[IPSEC_ADDRSTRLEN], dbuf[IPSEC_ADDRSTRLEN];
970
971 snprintf(buf, size, "SA(SPI=%08lx src=%s dst=%s)",
972 (u_long)ntohl(sav->spi),
973 ipsec_address(&sav->sah->saidx.src, sbuf, sizeof(sbuf)),
974 ipsec_address(&sav->sah->saidx.dst, dbuf, sizeof(dbuf)));
975 return (buf);
976}
977
978#endif /* _KERNEL */
979

Callers 4

ipsec_chkreplayFunction · 0.85
ah_inputFunction · 0.85
esp_inputFunction · 0.85
esp_input_cbFunction · 0.85

Calls 2

snprintfFunction · 0.85
ipsec_addressFunction · 0.85

Tested by

no test coverage detected