| 718 | } |
| 719 | |
| 720 | void |
| 721 | kdebug_secpolicy(struct secpolicy *sp) |
| 722 | { |
| 723 | u_int idx; |
| 724 | |
| 725 | IPSEC_ASSERT(sp != NULL, ("null sp")); |
| 726 | printf("SP { refcnt=%u id=%u priority=%u state=%s policy=%s\n", |
| 727 | sp->refcnt, sp->id, sp->priority, |
| 728 | kdebug_secpolicy_state(sp->state), |
| 729 | kdebug_secpolicy_policy(sp->policy)); |
| 730 | kdebug_secpolicyindex(&sp->spidx, " "); |
| 731 | for (idx = 0; idx < sp->tcount; idx++) { |
| 732 | printf(" req[%u]{ level=%s ", idx, |
| 733 | kdebug_ipsecrequest_level(sp->req[idx]->level)); |
| 734 | kdebug_secasindex(&sp->req[idx]->saidx, NULL); |
| 735 | printf(" }\n"); |
| 736 | } |
| 737 | printf("}\n"); |
| 738 | } |
| 739 | |
| 740 | void |
| 741 | kdebug_secpolicyindex(struct secpolicyindex *spidx, const char *indent) |
no test coverage detected