| 738 | } |
| 739 | |
| 740 | void |
| 741 | kdebug_secpolicyindex(struct secpolicyindex *spidx, const char *indent) |
| 742 | { |
| 743 | char buf[IPSEC_ADDRSTRLEN]; |
| 744 | |
| 745 | IPSEC_ASSERT(spidx != NULL, ("null spidx")); |
| 746 | if (indent != NULL) |
| 747 | printf("%s", indent); |
| 748 | printf("spidx { dir=%s ul_proto=", |
| 749 | kdebug_secpolicyindex_dir(spidx->dir)); |
| 750 | if (spidx->ul_proto == IPSEC_ULPROTO_ANY) |
| 751 | printf("* "); |
| 752 | else |
| 753 | printf("%u ", spidx->ul_proto); |
| 754 | printf("%s/%u -> ", ipsec_address(&spidx->src, buf, sizeof(buf)), |
| 755 | spidx->prefs); |
| 756 | printf("%s/%u }\n", ipsec_address(&spidx->dst, buf, sizeof(buf)), |
| 757 | spidx->prefd); |
| 758 | } |
| 759 | |
| 760 | void |
| 761 | kdebug_secasindex(const struct secasindex *saidx, const char *indent) |
no test coverage detected