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

Function kdebug_sadb_supported

freebsd/netipsec/key_debug.c:360–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360static void
361kdebug_sadb_supported(struct sadb_ext *ext)
362{
363 struct sadb_supported *sup = (struct sadb_supported *)ext;
364 struct sadb_alg *alg;
365 int len;
366
367 /* sanity check */
368 if (ext == NULL)
369 panic("%s: NULL pointer was passed.\n", __func__);
370
371 len = (PFKEY_UNUNIT64(sup->sadb_supported_len) - sizeof(*sup))
372 / sizeof(*alg);
373 alg = (struct sadb_alg *)(sup + 1);
374 printf("sadb_sup{\n");
375 while (len--) {
376 printf(" { id=%d ivlen=%d min=%d max=%d }\n",
377 alg->sadb_alg_id, alg->sadb_alg_ivlen,
378 alg->sadb_alg_minbits, alg->sadb_alg_maxbits);
379 alg++;
380 }
381 printf("}\n");
382
383 return;
384}
385
386static void
387kdebug_sadb_lifetime(struct sadb_ext *ext)

Callers 1

kdebug_sadbFunction · 0.85

Calls 2

panicFunction · 0.50
printfFunction · 0.50

Tested by

no test coverage detected