• Home
  • Raw
  • Download

Lines Matching refs:ntohs

647 	printf(" key len=%d", ntohs(e.len) - 4);  in isakmp_ke_print()
648 if (2 < vflag && 4 < ntohs(e.len)) { in isakmp_ke_print()
650 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4)) in isakmp_ke_print()
653 return (u_char *)ext + ntohs(e.len); in isakmp_ke_print()
733 printf(" port=%d", ntohs(id.port)); in isakmp_id_print()
913 printf(" len=%d", ntohs(e.len) - 4); in isakmp_hash_print()
914 if (2 < vflag && 4 < ntohs(e.len)) { in isakmp_hash_print()
916 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4)) in isakmp_hash_print()
919 return (u_char *)ext + ntohs(e.len); in isakmp_hash_print()
936 printf(" len=%d", ntohs(e.len) - 4); in isakmp_sig_print()
937 if (2 < vflag && 4 < ntohs(e.len)) { in isakmp_sig_print()
939 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4)) in isakmp_sig_print()
942 return (u_char *)ext + ntohs(e.len); in isakmp_sig_print()
961 printf(" n len=%d", ntohs(e.len) - 4); in isakmp_nonce_print()
962 if (2 < vflag && 4 < ntohs(e.len)) { in isakmp_nonce_print()
964 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4)) in isakmp_nonce_print()
967 return (u_char *)ext + ntohs(e.len); in isakmp_nonce_print()
1039 if (ntohs(n.type) < 8192) in isakmp_n_print()
1040 printf(" type=%s", NOTIFY_ERROR_STR(ntohs(n.type))); in isakmp_n_print()
1041 else if (ntohs(n.type) < 16384) in isakmp_n_print()
1042 printf(" type=%s", numstr(ntohs(n.type))); in isakmp_n_print()
1043 else if (ntohs(n.type) < 24576) in isakmp_n_print()
1044 printf(" type=%s", NOTIFY_STATUS_STR(ntohs(n.type))); in isakmp_n_print()
1046 printf(" type=%s", numstr(ntohs(n.type))); in isakmp_n_print()
1057 if (ntohs(n.type) < 8192) in isakmp_n_print()
1058 printf(" type=%s", NOTIFY_ERROR_STR(ntohs(n.type))); in isakmp_n_print()
1059 else if (ntohs(n.type) < 16384) in isakmp_n_print()
1060 printf(" type=%s", IPSEC_NOTIFY_ERROR_STR(ntohs(n.type))); in isakmp_n_print()
1061 else if (ntohs(n.type) < 24576) in isakmp_n_print()
1062 printf(" type=%s", NOTIFY_STATUS_STR(ntohs(n.type))); in isakmp_n_print()
1063 else if (ntohs(n.type) < 32768) in isakmp_n_print()
1064 printf(" type=%s", IPSEC_NOTIFY_STATUS_STR(ntohs(n.type))); in isakmp_n_print()
1066 printf(" type=%s", numstr(ntohs(n.type))); in isakmp_n_print()
1078 switch (ntohs(n.type)) { in isakmp_n_print()
1140 printf(" nspi=%u", ntohs(d.num_spi)); in isakmp_d_print()
1143 for (i = 0; i < ntohs(d.num_spi); i++) { in isakmp_d_print()
1168 printf(" len=%d", ntohs(e.len) - 4); in isakmp_vid_print()
1169 if (2 < vflag && 4 < ntohs(e.len)) { in isakmp_vid_print()
1171 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4)) in isakmp_vid_print()
1174 return (u_char *)ext + ntohs(e.len); in isakmp_vid_print()
1198 item_len = ntohs(e.len); in isakmp_sub0_print()
1234 TCHECK2(*ext, ntohs(e.len)); in isakmp_sub_print()