Lines Matching refs:ntohs

169 	ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz);  in esp6_input_strip_udp_encap()
202 ntohs(th.th_sport), ntohs(th.th_dport), in esp_input_log()
423 ip->ip_len = htons(ntohs(ip->ip_len) - siz); in esp4_input_extended()
534 ip->ip_len = htons(ntohs(ip->ip_len) - taillen); in esp4_input_extended()
558 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp4_input_extended()
559 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp4_input_extended()
604 sum = ~ntohs(ip->ip_sum) & 0xffff; in esp4_input_extended()
760 ip->ip_len = htons(ntohs(ip->ip_len) - stripsiz); in esp4_input_extended()
963 if (__improbable(ntohs(ip6->ip6_plen) == 0)) { in esp6_input_extended()
990 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[0]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[1]), in esp6_input_extended()
991 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[2]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[3]), in esp6_input_extended()
992 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[4]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[5]), in esp6_input_extended()
993 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[6]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[7]), in esp6_input_extended()
994 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[0]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[1]), in esp6_input_extended()
995 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[2]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[3]), in esp6_input_extended()
996 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[4]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[5]), in esp6_input_extended()
997 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[6]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[7]), in esp6_input_extended()
1137 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - (u_int16_t)siz); in esp6_input_extended()
1245 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen); in esp6_input_extended()
1269 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp6_input_extended()
1270 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp6_input_extended()
1358 sum = ~ntohs(ip->ip_sum) & 0xffff; in esp6_input_extended()
1528 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_extended()