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

Function kdebug_secasindex

freebsd/netipsec/key_debug.c:760–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760void
761kdebug_secasindex(const struct secasindex *saidx, const char *indent)
762{
763 char buf[IPSEC_ADDRSTRLEN], port[6];
764
765 IPSEC_ASSERT(saidx != NULL, ("null saidx"));
766 if (indent != NULL)
767 printf("%s", indent);
768 printf("saidx { mode=%s proto=%u reqid=%u ",
769 kdebug_secasindex_mode(saidx->mode), saidx->proto, saidx->reqid);
770 printf("%s:%s -> ", ipsec_address(&saidx->src, buf, sizeof(buf)),
771 kdebug_port2str(&saidx->src.sa, port, sizeof(port)));
772 printf("%s:%s }\n", ipsec_address(&saidx->dst, buf, sizeof(buf)),
773 kdebug_port2str(&saidx->dst.sa, port, sizeof(port)));
774}
775
776static void
777kdebug_sec_lifetime(struct seclifetime *lft, const char *indent)

Callers 5

key_allocsa_tcpmd5Function · 0.85
key_allocsa_policyFunction · 0.85
key_acquireFunction · 0.85
kdebug_secpolicyFunction · 0.85
kdebug_secashFunction · 0.85

Calls 4

kdebug_secasindex_modeFunction · 0.85
ipsec_addressFunction · 0.85
kdebug_port2strFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected