Searched refs:nptohs (Results 1 – 7 of 7) sorted by relevance
70 s = nptohs(buf + (*off)); in rfc1035NameUnpack()134 *qtype = nptohs(buf + offset); in grok_question()135 *qclass = nptohs(buf + offset + 2); in grok_question()152 sometype = nptohs(buf + offset); in grok_additional_for_opt_rr()153 someclass = nptohs(buf + offset + 2); in grok_additional_for_opt_rr()158 us = nptohs(buf + offset + 6); in grok_additional_for_opt_rr()162 us = nptohs(buf + offset + 8); in grok_additional_for_opt_rr()190 m.id = nptohs(buf); in dns_protocol_handler()191 us = nptohs(buf + 2); in dns_protocol_handler()204 qdcount = nptohs(buf + 4); in dns_protocol_handler()[all …]
129 tm->src_port = nptohs(&udp->uh_sport); in pcap_udp_handler()130 tm->dst_port = nptohs(&udp->uh_dport); in pcap_udp_handler()303 dnslen = nptohs(tcpstate->dnslen_buf) & 0xffff; in pcap_handle_tcp_segment()540 tm->src_port = nptohs(&tcp->th_sport); in pcap_tcp_handler()541 tm->dst_port = nptohs(&tcp->th_dport); in pcap_tcp_handler()
325 flags = nptohs(gre); in handle_gre()326 etype = nptohs(gre + 2); in handle_gre()364 iplen = XMIN(nptohs(&ip->ip_len), len); in handle_ipv4()397 payload_len = nptohs(&ip6->ip6_plen); in handle_ipv6()518 proto = nptohs(pkt); in handle_ppp()576 etype = nptohs(&s->sll_pkttype); in handle_linux_sll()583 unsigned short vlan = nptohs(pkt); in handle_linux_sll()593 eproto = nptohs(&s->sll_protocol); in handle_linux_sll()609 etype = nptohs(&e->ether_type); in handle_ether()616 unsigned short vlan = nptohs(pkt); in handle_ether()[all …]
23 #define nptohs(p) \ macro
50 #define nptohs(p) ((((uint8_t*)(p))[0] << 8) | ((uint8_t*)(p))[1]) macro142 dnslen = nptohs(&t->bfb_buf[at]) & 0xffff; in dns_protocol_handler()296 dnslen = nptohs(tcpstate->dnslen_buf) & 0xffff; in pcap_handle_tcp_segment()
416 #define nptohs(p) \ macro
906 uint16_t probe_version = nptohs(ua_field(probe_t, buf, hdr.ver)); in ingress_callback()