Home
last modified time | relevance | path

Searched refs:nptohs (Results 1 – 7 of 7) sorted by relevance

/dports/dns/dsc/dsc-2.11.1/src/
H A Ddns_protocol.c70 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 …]
H A Dpcap.c129 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()
/dports/dns/dsc/dsc-2.11.1/src/pcap_layers/
H A Dpcap_layers.c325 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 …]
H A Dbyteorder.h23 #define nptohs(p) \ macro
/dports/dns/dnscap/dnscap-2.0.1/src/
H A Dtcpreasm.c50 #define nptohs(p) ((((uint8_t*)(p))[0] << 8) | ((uint8_t*)(p))[1]) macro
142 dnslen = nptohs(&t->bfb_buf[at]) & 0xffff; in dns_protocol_handler()
296 dnslen = nptohs(tcpstate->dnslen_buf) & 0xffff; in pcap_handle_tcp_segment()
/dports/net/spoofer/spoofer-1.4.7/common/
H A Dspoof.h416 #define nptohs(p) \ macro
/dports/net/spoofer/spoofer-1.4.7/prober/
H A Dspoofer-prober.cc906 uint16_t probe_version = nptohs(ua_field(probe_t, buf, hdr.ver)); in ingress_callback()