- t2ex
- bsd_source/lib/libc/src_bsd/include/sys/endian.h - 9.5KB - 251 lines
247: #define HTONL(x) (x) = htonl((u_int32_t)(x))
248: #define HTONS(x) (x) = htons((u_int16_t)(x))
249: #endif
- bsd_source/t2ex/network/net/src_bsd/net/if_ethersubr.c - 51.3KB - 1,589 lines
302: mcopy = m_copy(m, 0, (int)M_COPYALL);
303: etype = htons(ETHERTYPE_IP);
304: break;
- More results from if_ethersubr.c
- bsd_source/t2ex/network/net/src_bsd/netinet/if_arp.c - 55.2KB - 1,677 lines
725: /* fill it now for ar_tpa computation */
726: ah->ar_hrd = htons(ARPHRD_IEEE1394);
727: break;
- More results from if_arp.c
- bsd_source/t2ex/network/net/src_bsd/netinet/igmp.c - 22.5KB - 665 lines
586: ip->ip_tos = 0;
587: ip->ip_len = htons(sizeof(struct ip) + IGMP_MINLEN);
588: ip->ip_off = htons(0);
- More results from igmp.c
- bsd_source/t2ex/network/net/src_bsd/netinet/in_offload.c - 5.7KB - 197 lines
168: KASSERT(iph->ip_v == IPVERSION);
169: iph->ip_len = htons(n->m_pkthdr.len);
170: iph->ip_id = htons(ipid);
- More results from in_offload.c
- bsd_source/t2ex/network/net/src_bsd/netinet/in_pcb.c - 36.2KB - 1,082 lines
462: if (!in_pcblookup_port(table, inp->inp_laddr,
463: htons(lport), 1))
464: goto found;
- More results from in_pcb.c
- bsd_source/t2ex/network/net/src_bsd/netinet/in_var.h - 13.0KB - 369 lines
347: ip_id = 1;
348: id = htons(ip_id);
349: ip_id += num;
- bsd_source/t2ex/network/net/src_bsd/netinet/ip_flow.c - 15.7KB - 521 lines
275: ip->ip_ttl -= IPTTLDEC;
276: if (ip->ip_sum >= (u_int16_t) ~htons(IPTTLDEC << 8))
277: ip->ip_sum -= ~htons(IPTTLDEC << 8);
- More results from ip_flow.c
- bsd_source/t2ex/network/net/src_bsd/netinet/ip_icmp.c - 44.0KB - 1,314 lines
311: goto freeit;
312: if (oip->ip_off &~ htons(IP_MF|IP_DF))
313: goto freeit;
- More results from ip_icmp.c
- bsd_source/t2ex/network/net/src_bsd/netinet/ip_input.c - 90.8KB - 2,575 lines
1033: */
1034: if (ip->ip_off & ~htons(IP_DF|IP_RF)) {
1035: uint16_t off;
- More results from ip_input.c