| 827 | #endif /* IPSEC_DEBUG */ |
| 828 | |
| 829 | static void |
| 830 | kdebug_secnatt(struct secnatt *natt) |
| 831 | { |
| 832 | char buf[IPSEC_ADDRSTRLEN]; |
| 833 | |
| 834 | IPSEC_ASSERT(natt != NULL, ("null natt")); |
| 835 | printf(" natt{ sport=%u dport=%u ", ntohs(natt->sport), |
| 836 | ntohs(natt->dport)); |
| 837 | if (natt->flags & IPSEC_NATT_F_OAI) |
| 838 | printf("oai=%s ", ipsec_address(&natt->oai, buf, sizeof(buf))); |
| 839 | if (natt->flags & IPSEC_NATT_F_OAR) |
| 840 | printf("oar=%s ", ipsec_address(&natt->oar, buf, sizeof(buf))); |
| 841 | printf("}\n"); |
| 842 | } |
| 843 | |
| 844 | void |
| 845 | kdebug_secasv(struct secasvar *sav) |
no test coverage detected