Lines Matching refs:ntohs
782 arphrd = ntohs(arp_p->ar_hrd); in arp_frame_validate()
783 T_LOG("%s type=0x%x proto=0x%x", arpop_name(ntohs(arp_p->ar_op)), in arp_frame_validate()
784 arphrd, ntohs(arp_p->ar_pro)); in arp_frame_validate()
815 ip_len = ntohs(ip_udp->ip.ip_len); in ip_frame_validate()
823 ntohs(ip_udp->ip.ip_id)); in ip_frame_validate()
838 udp_len = ntohs(ip_udp->udp.uh_ulen); in ip_frame_validate()
845 ntohs(ip_udp->udp.uh_sport), in ip_frame_validate()
846 ntohs(ip_udp->udp.uh_dport), in ip_frame_validate()
848 ntohs(ip_udp->udp.uh_sum), in ip_frame_validate()
865 ip6_len = ntohs(ip6->ip6_plen); in ip6_frame_validate()
886 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ip6_frame_validate()
893 ntohs(ip6_udp->udp.uh_sport), in ip6_frame_validate()
894 ntohs(ip6_udp->udp.uh_dport), in ip6_frame_validate()
896 ntohs(ip6_udp->udp.uh_sum), in ip6_frame_validate()
949 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_validate()
1227 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_get_udp4_payload()
1232 ip_len = ntohs(ip_udp->ip.ip_len); in ethernet_frame_get_udp4_payload()
1244 udp_len = ntohs(ip_udp->udp.uh_ulen); in ethernet_frame_get_udp4_payload()
1275 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_get_udp6_payload()
1280 ip6_len = ntohs(ip6_udp->ip6.ip6_plen); in ethernet_frame_get_udp6_payload()
1290 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ethernet_frame_get_udp6_payload()
2406 T_ASSERT_EQ((int)ntohs(eh_p->ether_type), (int)ETHERTYPE_ARP, NULL); in validate_mac_nat_arp_out()
2465 T_ASSERT_EQ((int)ntohs(eh_p->ether_type), (int)ETHERTYPE_ARP, NULL); in validate_mac_nat_arp_in()
2585 T_ASSERT_EQ((int)ntohs(eh_p->ether_type), (int)ETHERTYPE_IP, NULL); in validate_mac_nat_dhcp()
2588 dp_flags = ntohs(pkt->bp_bootp.bp_unused); in validate_mac_nat_dhcp()
2789 T_ASSERT_EQ(ntohs(eh_p->ether_type), (u_short)ETHERTYPE_IPV6, NULL); in validate_mac_nat_nd6_out()