- t2ex
- bsd_source/kernel/sysmain/src/network_sample/dhcp.h - 7.6KB - 210 lines
193: #define is_bootp(m) (m && \
194: !IN_LINKLOCAL(htonl((m)->yiaddr)) && \
195: get_option_uint8(NULL, m, DHO_MESSAGETYPE) == -1)
- bsd_source/lib/libc/src_bsd/arpa_inet/inet_addr.c - 6.5KB - 171 lines
168: if (addr)
169: addr->s_addr = htonl(val);
170: return (1);
- bsd_source/lib/libc/src_bsd/include/netinet/in.h - 27.1KB - 821 lines
156: #ifdef _KERNEL
157: #define __IPADDR(x) ((u_int32_t) htonl((u_int32_t)(x)))
158: #else
- bsd_source/lib/libc/src_bsd/include/sys/endian.h - 9.5KB - 251 lines
246: #define NTOHS(x) (x) = ntohs((u_int16_t)(x))
247: #define HTONL(x) (x) = htonl((u_int32_t)(x))
248: #define HTONS(x) (x) = htons((u_int16_t)(x))
- bsd_source/t2ex/network/net/src_bsd/net/if_tun.c - 33.3KB - 1,241 lines
659: af = mtod(m0,uint32_t *);
660: *af = htonl(dst->sa_family);
661: } else {
- bsd_source/t2ex/network/net/src_bsd/netinet/in.c - 41.9KB - 1,225 lines
205: net = in.s_addr & IN_CLASSA_NET;
206: if (net == 0 || net == htonl(IN_LOOPBACKNET << IN_CLASSA_NSHIFT))
207: return (0);
- bsd_source/t2ex/network/net/src_bsd/netinet/in.h - 21.0KB - 598 lines
166: #ifdef _KERNEL
167: #define __IPADDR(x) ((uint32_t) htonl((uint32_t)(x)))
168: #else
- bsd_source/t2ex/network/net/src_bsd/netinet/in_offload.c - 5.7KB - 197 lines
171: th = (void *)(mtod(n, char *) + iphlen);
172: th->th_seq = htonl(tcpseq);
173: iph->ip_sum = 0;
- bsd_source/t2ex/network/net/src_bsd/netinet/ip_icmp.c - 44.0KB - 1,314 lines
744: ((ip->ip_src.s_addr & IN_CLASSA_NET) !=
745: htonl(IN_LOOPBACKNET << IN_CLASSA_NSHIFT))) {
746: m_freem(m); /* Bad return address */
- More results from ip_icmp.c
- bsd_source/t2ex/network/net/src_bsd/netinet/tcp_input.c - 167.0KB - 4,503 lines
1171: optp[TCPOLEN_TSTAMP_APPA] == TCPOPT_EOL)) &&
1172: *(u_int32_t *)optp == htonl(TCPOPT_TSTAMP_HDR) &&
1173: (th->th_flags & TH_SYN) == 0) {
- More results from tcp_input.c