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

Function ipsec_hexdump

freebsd/netipsec/key_debug.c:1032–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032void
1033ipsec_hexdump(caddr_t buf, int len)
1034{
1035 int i;
1036
1037 for (i = 0; i < len; i++) {
1038 if (i != 0 && i % 32 == 0) printf("\n");
1039 if (i % 4 == 0) printf(" ");
1040 printf("%02x", (unsigned char)buf[i]);
1041 }
1042#if 0
1043 if (i % 32 != 0) printf("\n");
1044#endif
1045
1046 return;
1047}

Callers 2

kdebug_sadb_identityFunction · 0.85
kdebug_sadb_keyFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected