Lines Matching refs:ntohs
552 if (esphlen < (IP_MAXPACKET - ntohs(ip->ip_len))) { in esp_output()
553 ip->ip_len = htons(ntohs(ip->ip_len) + (u_short)esphlen); in esp_output()
742 if (extendsiz < (IP_MAXPACKET - ntohs(ip->ip_len))) { in esp_output()
743 ip->ip_len = htons(ntohs(ip->ip_len) + (u_short)extendsiz); in esp_output()
874 if (siz < (IP_MAXPACKET - ntohs(ip->ip_len))) { in esp_output()
875 ip->ip_len = htons(ntohs(ip->ip_len) + (u_short)siz); in esp_output()
898 udp->uh_ulen = htons((u_int16_t)(ntohs(ip->ip_len) - (IP_VHL_HL(ip->ip_vhl) << 2))); in esp_output()
904 udp->uh_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, htonl(ntohs(udp->uh_ulen) + IPPROTO_UDP)); in esp_output()
918 ntohs(th.th_sport), ntohs(th.th_dport), in esp_output()
1151 if (__probable(ntohs(ip->ip_len) + add_ip_len <= IP_MAXPACKET)) { in esp_kpipe_output()
1152 ip->ip_len = htons(ntohs(ip->ip_len) + (u_short)add_ip_len); in esp_kpipe_output()
1159 ntohs(ip->ip_len), ntohl(sav->spi)); in esp_kpipe_output()
1168 if (__probable(ntohs(ip6->ip6_plen) + add_ip_len <= IP_MAXPACKET)) { in esp_kpipe_output()
1169 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) + (u_short)add_ip_len); in esp_kpipe_output()
1174 ntohs(ip6->ip6_plen), ntohl(sav->spi)); in esp_kpipe_output()