| 1030 | } |
| 1031 | |
| 1032 | void |
| 1033 | ipsec_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 | } |
no test coverage detected