• Home
  • Raw
  • Download

Lines Matching refs:ntohs

1314 	ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4));  in ikev1_ke_print()
1315 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_ke_print()
1318 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_ke_print()
1321 return (const u_char *)ext + ntohs(e.len); in ikev1_ke_print()
1391 ND_PRINT((ndo," port=%d", ntohs(doi_id.port))); in ikev1_id_print()
1575 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev1_hash_print()
1576 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_hash_print()
1579 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_hash_print()
1582 return (const u_char *)ext + ntohs(e.len); in ikev1_hash_print()
1600 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev1_sig_print()
1601 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_sig_print()
1604 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_sig_print()
1607 return (const u_char *)ext + ntohs(e.len); in ikev1_sig_print()
1630 ND_PRINT((ndo," n len=%u", ntohs(e.len) - 4)); in ikev1_nonce_print()
1631 if (ntohs(e.len) > 4) { in ikev1_nonce_print()
1634 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_nonce_print()
1642 return (const u_char *)ext + ntohs(e.len); in ikev1_nonce_print()
1716 if (ntohs(n.type) < 8192) in ikev1_n_print()
1717 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type)))); in ikev1_n_print()
1718 else if (ntohs(n.type) < 16384) in ikev1_n_print()
1719 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type)))); in ikev1_n_print()
1720 else if (ntohs(n.type) < 24576) in ikev1_n_print()
1721 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type)))); in ikev1_n_print()
1723 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type)))); in ikev1_n_print()
1734 if (ntohs(n.type) < 8192) in ikev1_n_print()
1735 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type)))); in ikev1_n_print()
1736 else if (ntohs(n.type) < 16384) in ikev1_n_print()
1737 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_ERROR_STR(ntohs(n.type)))); in ikev1_n_print()
1738 else if (ntohs(n.type) < 24576) in ikev1_n_print()
1739 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type)))); in ikev1_n_print()
1740 else if (ntohs(n.type) < 32768) in ikev1_n_print()
1741 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_STATUS_STR(ntohs(n.type)))); in ikev1_n_print()
1743 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type)))); in ikev1_n_print()
1754 switch (ntohs(n.type)) { in ikev1_n_print()
1827 ND_PRINT((ndo," nspi=%u", ntohs(d.num_spi))); in ikev1_d_print()
1830 for (i = 0; i < ntohs(d.num_spi); i++) { in ikev1_d_print()
1856 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev1_vid_print()
1857 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_vid_print()
1860 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_vid_print()
1863 return (const u_char *)ext + ntohs(e.len); in ikev1_vid_print()
1891 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev2_gen_print()
1892 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev2_gen_print()
1895 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev2_gen_print()
1898 return (const u_char *)ext + ntohs(e.len); in ikev2_gen_print()
1923 t_id = ntohs(t.t_id); in ikev2_t_print()
2040 item_len = ntohs(e.len); in ikev2_p_print()
2103 osa_length= ntohs(e.len); in ikev2_sa_print()
2126 item_len = ntohs(e.len); in ikev2_sa_print()
2182 ND_PRINT((ndo," len=%u group=%s", ntohs(ke.h.len) - 8, in ikev2_ke_print()
2183 STR_OR_ID(ntohs(ke.ke_group), dh_p_map))); in ikev2_ke_print()
2185 if (2 < ndo->ndo_vflag && 8 < ntohs(ke.h.len)) { in ikev2_ke_print()
2187 if (!rawprint(ndo, (const uint8_t *)(k + 1), ntohs(ke.h.len) - 8)) in ikev2_ke_print()
2190 return (const u_char *)ext + ntohs(ke.h.len); in ikev2_ke_print()
2214 id_len = ntohs(id.h.len); in ikev2_ID_print()
2317 len = ntohs(a.h.len); in ikev2_auth_print()
2355 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev2_nonce_print()
2356 if (1 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev2_nonce_print()
2358 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev2_nonce_print()
2361 } else if(ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev2_nonce_print()
2365 return (const u_char *)ext + ntohs(e.len); in ikev2_nonce_print()
2397 type = ntohs(n.type); in ikev2_n_print()
2600 ND_PRINT((ndo," len=%d vid=", ntohs(e.len) - 4)); in ikev2_vid_print()
2603 len = ntohs(e.len) - 4; in ikev2_vid_print()
2612 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev2_vid_print()
2615 return (const u_char *)ext + ntohs(e.len); in ikev2_vid_print()
2665 dlen = ntohs(e.len)-4; in ikev2_e_print()
2742 item_len = ntohs(e.len); in ike_sub0_print()
2778 ND_TCHECK2(*ext, ntohs(e.len)); in ikev1_sub_print()
2905 item_len = ntohs(e.len); in ikev2_sub0_print()
2945 ND_TCHECK2(*ext, ntohs(e.len)); in ikev2_sub_print()