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

Function kdebug_sadb_address

freebsd/netipsec/key_debug.c:423–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423static void
424kdebug_sadb_address(struct sadb_ext *ext)
425{
426 struct sadb_address *addr = (struct sadb_address *)ext;
427
428 /* sanity check */
429 if (ext == NULL)
430 panic("%s: NULL pointer was passed.\n", __func__);
431
432 printf("sadb_address{ proto=%u prefixlen=%u reserved=0x%02x%02x }\n",
433 addr->sadb_address_proto, addr->sadb_address_prefixlen,
434 ((u_char *)&addr->sadb_address_reserved)[0],
435 ((u_char *)&addr->sadb_address_reserved)[1]);
436
437 kdebug_sockaddr((struct sockaddr *)((caddr_t)ext + sizeof(*addr)));
438}
439
440static void
441kdebug_sadb_key(struct sadb_ext *ext)

Callers 1

kdebug_sadbFunction · 0.85

Calls 3

kdebug_sockaddrFunction · 0.85
panicFunction · 0.50
printfFunction · 0.50

Tested by

no test coverage detected