Lines Matching refs:ntohs
165 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_strip_udp_encap()
198 ntohs(th.th_sport), ntohs(th.th_dport), in esp_input_log()
410 ip->ip_len = htons(ntohs(ip->ip_len) - siz); in esp4_input_extended()
521 ip->ip_len = htons(ntohs(ip->ip_len) - taillen); in esp4_input_extended()
545 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp4_input_extended()
546 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp4_input_extended()
591 sum = ~ntohs(ip->ip_sum) & 0xffff; in esp4_input_extended()
748 ip->ip_len = htons(ntohs(ip->ip_len) - stripsiz); in esp4_input_extended()
955 if (ntohs(ip6->ip6_plen) == 0) { in esp6_input_extended()
981 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[0]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[1]), in esp6_input_extended()
982 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[2]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[3]), in esp6_input_extended()
983 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[4]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[5]), in esp6_input_extended()
984 ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[6]), ntohs(ip6->ip6_src.__u6_addr.__u6_addr16[7]), in esp6_input_extended()
985 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[0]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[1]), in esp6_input_extended()
986 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[2]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[3]), in esp6_input_extended()
987 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[4]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[5]), in esp6_input_extended()
988 ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[6]), ntohs(ip6->ip6_dst.__u6_addr.__u6_addr16[7]), in esp6_input_extended()
1116 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - (u_int16_t)siz); in esp6_input_extended()
1224 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen); in esp6_input_extended()
1248 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp6_input_extended()
1249 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp6_input_extended()
1337 sum = ~ntohs(ip->ip_sum) & 0xffff; in esp6_input_extended()
1508 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_extended()