Lines Matching refs:ND_PRINT
230 ND_PRINT((ndo," [|%s]", NPSTR(np))); \
419 ND_PRINT((ndo,"%02x", p[i] & 0xff));
454 ND_PRINT((ndo," data=("));
456 ND_PRINT((ndo, "..."));
460 ND_PRINT((ndo,")"));
486 ND_PRINT((ndo,"[|attr]"));
490 ND_PRINT((ndo,"("));
493 ND_PRINT((ndo,"type=%s ", map[t].type));
495 ND_PRINT((ndo,"type=#%d ", t));
497 ND_PRINT((ndo,"value="));
500 ND_PRINT((ndo,"%s", map[t].value[v]));
504 ND_PRINT((ndo,"len=%d value=", EXTRACT_16BITS(&p[2])));
507 ND_PRINT((ndo,")"));
522 ND_PRINT((ndo,"[|attr]"));
526 ND_PRINT((ndo,"("));
528 ND_PRINT((ndo,"type=#%d ", t));
530 ND_PRINT((ndo,"value="));
534 ND_PRINT((ndo,"len=%d value=", EXTRACT_16BITS(&p[2])));
537 ND_PRINT((ndo,")"));
554 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_SA)));
562 ND_PRINT((ndo," doi=%d", doi));
563 ND_PRINT((ndo," situation=%u", (u_int32_t)ntohl(sa.sit)));
567 ND_PRINT((ndo," doi=ipsec"));
568 ND_PRINT((ndo," situation="));
571 ND_PRINT((ndo,"identity"));
575 ND_PRINT((ndo,"%ssecrecy", t ? "+" : ""));
579 ND_PRINT((ndo,"%sintegrity", t ? "+" : ""));
585 ND_PRINT((ndo," ident=%u", (u_int32_t)ntohl(ident)));
597 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_SA)));
611 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_P)));
616 ND_PRINT((ndo," #%d protoid=%s transform=%d",
619 ND_PRINT((ndo," spi="));
632 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_P)));
778 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_T)));
813 ND_PRINT((ndo," #%d id=%s ", t.t_no, idstr));
815 ND_PRINT((ndo," #%d id=%d ", t.t_no, t.t_id));
826 ND_PRINT((ndo,"..."));
829 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_T)));
841 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_KE)));
845 ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4));
847 ND_PRINT((ndo," "));
853 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_KE)));
877 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_ID)));
891 ND_PRINT((ndo," [phase=%d doi=%d proto=%d]", phase, doi, proto));
898 ND_PRINT((ndo," idtype=%s", STR_OR_ID(id.d.id_type, idtypestr)));
899 ND_PRINT((ndo," doi_data=%u",
915 ND_PRINT((ndo," idtype=%s", STR_OR_ID(id.type, ipsecidtypestr)));
922 ND_PRINT((ndo," protoid=%s", pe->p_name));
928 ND_PRINT((ndo," protoid=%s", "0"));
930 ND_PRINT((ndo," port=%d", ntohs(id.port)));
939 ND_PRINT((ndo," len=%d [bad: < 4]", len));
941 ND_PRINT((ndo," len=%d %s", len, ipaddr_string(data)));
948 ND_PRINT((ndo," len=%d ", len));
958 ND_PRINT((ndo," len=%d [bad: < 8]", len));
961 ND_PRINT((ndo," len=%d %s/%u.%u.%u.%u", len,
971 ND_PRINT((ndo," len=%d [bad: < 16]", len));
973 ND_PRINT((ndo," len=%d %s", len, ip6addr_string(data)));
980 ND_PRINT((ndo," len=%d [bad: < 20]", len));
984 ND_PRINT((ndo," len=%d %s/0x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", len,
997 ND_PRINT((ndo," len=%d [bad: < 8]", len));
999 ND_PRINT((ndo," len=%d %s-%s", len,
1008 ND_PRINT((ndo," len=%d [bad: < 32]", len));
1010 ND_PRINT((ndo," len=%d %s-%s", len,
1026 ND_PRINT((ndo," len=%d", len));
1028 ND_PRINT((ndo," "));
1035 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_ID)));
1054 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_CERT)));
1059 ND_PRINT((ndo," len=%d", item_len - 4));
1060 ND_PRINT((ndo," type=%s", STR_OR_ID((cert.encode), certstr)));
1062 ND_PRINT((ndo," "));
1068 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_CERT)));
1086 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_CR)));
1091 ND_PRINT((ndo," len=%d", item_len - 4));
1092 ND_PRINT((ndo," type=%s", STR_OR_ID((cert.encode), certstr)));
1094 ND_PRINT((ndo," "));
1100 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_CR)));
1112 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_HASH)));
1116 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1118 ND_PRINT((ndo," "));
1124 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_HASH)));
1136 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_SIG)));
1140 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1142 ND_PRINT((ndo," "));
1148 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_SIG)));
1162 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_NONCE)));
1166 ND_PRINT((ndo," n len=%d", ntohs(e.len) - 4));
1168 ND_PRINT((ndo," "));
1172 ND_PRINT((ndo," "));
1178 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_NONCE)));
1239 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_N)));
1247 ND_PRINT((ndo," doi=%d", doi));
1248 ND_PRINT((ndo," proto=%d", proto));
1250 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type))));
1252 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1254 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type))));
1256 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1258 ND_PRINT((ndo," spi="));
1265 ND_PRINT((ndo," doi=ipsec"));
1266 ND_PRINT((ndo," proto=%s", PROTOIDSTR(proto)));
1268 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type))));
1270 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_ERROR_STR(ntohs(n.type))));
1272 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type))));
1274 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_STATUS_STR(ntohs(n.type))));
1276 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1278 ND_PRINT((ndo," spi="));
1287 ND_PRINT((ndo," orig=("));
1300 ND_PRINT((ndo,"replay detection %sabled",
1315 ND_PRINT((ndo,")"));
1319 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_N)));
1336 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_D)));
1344 ND_PRINT((ndo," doi=%u", doi));
1345 ND_PRINT((ndo," proto=%u", proto));
1347 ND_PRINT((ndo," doi=ipsec"));
1348 ND_PRINT((ndo," proto=%s", PROTOIDSTR(proto)));
1350 ND_PRINT((ndo," spilen=%u", d.spi_size));
1351 ND_PRINT((ndo," nspi=%u", ntohs(d.num_spi)));
1352 ND_PRINT((ndo," spi="));
1356 ND_PRINT((ndo,","));
1363 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_D)));
1376 ND_PRINT((ndo,"%s:", NPSTR(ISAKMP_NPTYPE_VID)));
1380 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1382 ND_PRINT((ndo," "));
1388 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_VID)));
1401 ND_PRINT((ndo,"%s%s:", payname, critical&0x80 ? "[C]" : ""));
1414 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1416 ND_PRINT((ndo," "));
1422 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
1480 ND_PRINT((ndo," #%u type=%s id=%s ", pcount,
1484 ND_PRINT((ndo," #%u type=%s id=%u ", pcount,
1497 ND_PRINT((ndo,"..."));
1500 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_T)));
1519 ND_PRINT((ndo," #%u protoid=%s transform=%d len=%u",
1523 ND_PRINT((ndo," spi="));
1536 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_P)));
1556 ND_PRINT((ndo," len=%d", sa_length));
1564 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
1583 ND_PRINT((ndo," len=%u group=%s", ntohs(ke.h.len) - 8,
1587 ND_PRINT((ndo," "));
1593 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
1615 ND_PRINT((ndo," len=%d", id_len - 4));
1617 ND_PRINT((ndo," "));
1629 ND_PRINT((ndo, " ipv4:"));
1633 ND_PRINT((ndo, " fqdn:"));
1637 ND_PRINT((ndo, " rfc822:"));
1641 ND_PRINT((ndo, " ipv6:"));
1645 ND_PRINT((ndo, " dn:"));
1649 ND_PRINT((ndo, " gn:"));
1653 ND_PRINT((ndo, " keyid:"));
1662 ND_PRINT((ndo, "%c", typedata[i]));
1664 ND_PRINT((ndo, "."));
1675 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
1717 ND_PRINT((ndo," len=%d method=%s", len-4,
1721 ND_PRINT((ndo," authdata=("));
1724 ND_PRINT((ndo,") "));
1731 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
1748 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1750 ND_PRINT((ndo," nonce=("));
1753 ND_PRINT((ndo,") "));
1760 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
1788 ND_PRINT((ndo," prot_id=%s", PROTOIDSTR(n.prot_id)));
1939 ND_PRINT((ndo," type=%u(%s)", type, notify_name));
1944 ND_PRINT((ndo," spi="));
1956 ND_PRINT((ndo," data=("));
1960 ND_PRINT((ndo,")"));
1968 ND_PRINT((ndo," [|%s]", NPSTR(ISAKMP_NPTYPE_N)));
1996 ND_PRINT((ndo," len=%d vid=", ntohs(e.len) - 4));
2002 if(ND_ISPRINT(vid[i])) ND_PRINT((ndo, "%c", vid[i]));
2003 else ND_PRINT((ndo, "."));
2006 ND_PRINT((ndo," "));
2012 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
2062 ND_PRINT((ndo," len=%d", dlen));
2064 ND_PRINT((ndo," "));
2093 ND_PRINT((ndo," [|%s]", NPSTR(tpay)));
2148 ND_PRINT((ndo,"%s", NPSTR(np)));
2154 ND_PRINT((ndo," [|isakmp]"));
2177 ND_PRINT((ndo,"\n"));
2179 ND_PRINT((ndo," "));
2180 ND_PRINT((ndo,"("));
2182 ND_PRINT((ndo,")"));
2195 ND_PRINT((ndo," [|%s]", NPSTR(np)));
2223 ND_PRINT((ndo," phase %d", phase));
2225 ND_PRINT((ndo," phase %d/others", phase));
2231 ND_PRINT((ndo," I"));
2235 ND_PRINT((ndo," ?"));
2238 ND_PRINT((ndo," I"));
2240 ND_PRINT((ndo," R"));
2242 ND_PRINT((ndo," ?"));
2245 ND_PRINT((ndo," %s", ETYPESTR(base->etype)));
2247 ND_PRINT((ndo,"[%s%s]", base->flags & ISAKMP_FLAG_E ? "E" : "",
2254 ND_PRINT((ndo,":"));
2262 ND_PRINT((ndo," [encrypted %s]", NPSTR(base->np)));
2275 ND_PRINT((ndo," (len mismatch: isakmp %u/ip %u)",
2322 ND_PRINT((ndo,"%s", NPSTR(np)));
2328 ND_PRINT((ndo," [|isakmp]"));
2354 ND_PRINT((ndo,"\n"));
2356 ND_PRINT((ndo," "));
2357 ND_PRINT((ndo,"("));
2360 ND_PRINT((ndo,")"));
2373 ND_PRINT((ndo," [|%s]", NPSTR(np)));
2392 ND_PRINT((ndo, " parent_sa"));
2394 ND_PRINT((ndo, " child_sa "));
2396 ND_PRINT((ndo, " %s", ETYPESTR(base->etype)));
2398 ND_PRINT((ndo, "[%s%s%s]",
2407 ND_PRINT((ndo, ":"));
2415 ND_PRINT((ndo, " [encrypted %s]", NPSTR(base->np)));
2429 ND_PRINT((ndo, " (len mismatch: isakmp %u/ip %u)",
2457 ND_PRINT((ndo,"[|isakmp]"));
2463 ND_PRINT((ndo,"isakmp"));
2470 ND_PRINT((ndo," %d.%d", major, minor));
2474 ND_PRINT((ndo," msgid "));
2479 ND_PRINT((ndo," cookie "));
2481 ND_PRINT((ndo,"->"));
2484 ND_PRINT((ndo,":"));
2504 ND_PRINT((ndo, "isakmp-nat-keep-alive"));
2516 ND_PRINT((ndo, "NONESP-encap: "));
2526 ND_PRINT((ndo, "UDP-encap: "));
2541 ND_PRINT((ndo,"[|isakmp]"));