| 758 | } |
| 759 | |
| 760 | void |
| 761 | kdebug_secasindex(const struct secasindex *saidx, const char *indent) |
| 762 | { |
| 763 | char buf[IPSEC_ADDRSTRLEN], port[6]; |
| 764 | |
| 765 | IPSEC_ASSERT(saidx != NULL, ("null saidx")); |
| 766 | if (indent != NULL) |
| 767 | printf("%s", indent); |
| 768 | printf("saidx { mode=%s proto=%u reqid=%u ", |
| 769 | kdebug_secasindex_mode(saidx->mode), saidx->proto, saidx->reqid); |
| 770 | printf("%s:%s -> ", ipsec_address(&saidx->src, buf, sizeof(buf)), |
| 771 | kdebug_port2str(&saidx->src.sa, port, sizeof(port))); |
| 772 | printf("%s:%s }\n", ipsec_address(&saidx->dst, buf, sizeof(buf)), |
| 773 | kdebug_port2str(&saidx->dst.sa, port, sizeof(port))); |
| 774 | } |
| 775 | |
| 776 | static void |
| 777 | kdebug_sec_lifetime(struct seclifetime *lft, const char *indent) |
no test coverage detected