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

Function kdebug_secpolicyindex

freebsd/netipsec/key_debug.c:740–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void
741kdebug_secpolicyindex(struct secpolicyindex *spidx, const char *indent)
742{
743 char buf[IPSEC_ADDRSTRLEN];
744
745 IPSEC_ASSERT(spidx != NULL, ("null spidx"));
746 if (indent != NULL)
747 printf("%s", indent);
748 printf("spidx { dir=%s ul_proto=",
749 kdebug_secpolicyindex_dir(spidx->dir));
750 if (spidx->ul_proto == IPSEC_ULPROTO_ANY)
751 printf("* ");
752 else
753 printf("%u ", spidx->ul_proto);
754 printf("%s/%u -> ", ipsec_address(&spidx->src, buf, sizeof(buf)),
755 spidx->prefs);
756 printf("%s/%u }\n", ipsec_address(&spidx->dst, buf, sizeof(buf)),
757 spidx->prefd);
758}
759
760void
761kdebug_secasindex(const struct secasindex *saidx, const char *indent)

Callers 5

ipsec4_get_ulpFunction · 0.85
ipsec6_get_ulpFunction · 0.85
key_allocspFunction · 0.85
ipsec_setspidx_inpcbFunction · 0.85
kdebug_secpolicyFunction · 0.85

Calls 3

ipsec_addressFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected