- t2ex
- bsd_source/lib/libc/src_bsd/include/sys/endian.h - 9.5KB - 251 lines
245: #define NTOHL(x) (x) = ntohl((u_int32_t)(x))
246: #define NTOHS(x) (x) = ntohs((u_int16_t)(x))
247: #define HTONL(x) (x) = htonl((u_int32_t)(x))
- bsd_source/t2ex/network/net/src_bsd/net/if_arp.h - 6.3KB - 130 lines
76: #define ar_tha(ap) \
77: (ntohs((ap)->ar_hrd) == ARPHRD_IEEE1394 \
78: ? NULL : (((char *)((ap)+1))+(ap)->ar_hln+(ap)->ar_pln))
- More results from if_arp.h
- bsd_source/t2ex/network/net/src_bsd/net/if_ethersubr.c - 51.3KB - 1,589 lines
321:
322: switch (ntohs(ah->ar_op)) {
323: case ARPOP_REVREQUEST:
- More results from if_ethersubr.c
- bsd_source/t2ex/network/net/src_bsd/netinet/if_arp.c - 55.2KB - 1,677 lines
885: m->m_len >= arplen)
886: switch (ntohs(ar->ar_pro)) {
887: case ETHERTYPE_IP:
- More results from if_arp.c
- bsd_source/t2ex/network/net/src_bsd/netinet/igmp.c - 22.5KB - 665 lines
210: minlen = iphlen + IGMP_MINLEN;
211: ip_len = ntohs(ip->ip_len);
212: if (ip_len < minlen) {
- bsd_source/t2ex/network/net/src_bsd/netinet/in_offload.c - 5.7KB - 197 lines
116: KASSERT(iph->ip_p == IPPROTO_TCP);
117: ipid = ntohs(iph->ip_id);
118:
- bsd_source/t2ex/network/net/src_bsd/netinet/in_pcb.c - 36.2KB - 1,082 lines
145: #define INPCBHASH_PORT(table, lport) \
146: &(table)->inpt_porthashtbl[ntohs(lport) & (table)->inpt_porthash]
147: #define INPCBHASH_BIND(table, laddr, lport) \
- More results from in_pcb.c
- bsd_source/t2ex/network/net/src_bsd/netinet/ip_flow.c - 15.7KB - 521 lines
215: }
216: iplen = ntohs(ip->ip_len);
217: if (ip->ip_v != IPVERSION || ip->ip_hl != (sizeof(struct ip) >> 2) ||
- bsd_source/t2ex/network/net/src_bsd/netinet/ip_icmp.c - 44.0KB - 1,314 lines
335: icmplen = oiplen + min(icmpreturndatabytes,
336: ntohs(oip->ip_len) - oiplen);
337: /*
- More results from ip_icmp.c
- bsd_source/t2ex/network/net/src_bsd/netinet/ip_input.c - 90.8KB - 2,575 lines
731: /* Retrieve the packet length. */
732: len = ntohs(ip->ip_len);
733:
- More results from ip_input.c