Lines Matching refs:ntohs
686 arphrd = ntohs(arp_p->ar_hrd); in arp_frame_validate()
687 T_LOG("%s type=0x%x proto=0x%x", arpop_name(ntohs(arp_p->ar_op)), in arp_frame_validate()
688 arphrd, ntohs(arp_p->ar_pro)); in arp_frame_validate()
719 ip_len = ntohs(ip_udp->ip.ip_len); in ip_frame_validate()
727 ntohs(ip_udp->ip.ip_id)); in ip_frame_validate()
742 udp_len = ntohs(ip_udp->udp.uh_ulen); in ip_frame_validate()
749 ntohs(ip_udp->udp.uh_sport), in ip_frame_validate()
750 ntohs(ip_udp->udp.uh_dport), in ip_frame_validate()
752 ntohs(ip_udp->udp.uh_sum), in ip_frame_validate()
769 ip6_len = ntohs(ip6->ip6_plen); in ip6_frame_validate()
790 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ip6_frame_validate()
797 ntohs(ip6_udp->udp.uh_sport), in ip6_frame_validate()
798 ntohs(ip6_udp->udp.uh_dport), in ip6_frame_validate()
800 ntohs(ip6_udp->udp.uh_sum), in ip6_frame_validate()
853 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_validate()
999 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_get_udp4_payload()
1004 ip_len = ntohs(ip_udp->ip.ip_len); in ethernet_frame_get_udp4_payload()
1016 udp_len = ntohs(ip_udp->udp.uh_ulen); in ethernet_frame_get_udp4_payload()
1047 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_get_udp6_payload()
1052 ip6_len = ntohs(ip6_udp->ip6.ip6_plen); in ethernet_frame_get_udp6_payload()
1062 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ethernet_frame_get_udp6_payload()
2179 T_ASSERT_EQ((int)ntohs(eh_p->ether_type), (int)ETHERTYPE_ARP, NULL); in validate_mac_nat_arp_out()
2238 T_ASSERT_EQ((int)ntohs(eh_p->ether_type), (int)ETHERTYPE_ARP, NULL); in validate_mac_nat_arp_in()
2358 T_ASSERT_EQ((int)ntohs(eh_p->ether_type), (int)ETHERTYPE_IP, NULL); in validate_mac_nat_dhcp()
2361 dp_flags = ntohs(pkt->bp_bootp.bp_unused); in validate_mac_nat_dhcp()
2545 T_ASSERT_EQ(ntohs(eh_p->ether_type), (u_short)ETHERTYPE_IPV6, NULL); in validate_mac_nat_nd6_out()