/freebsd-10.3-release/sys/ofed/include/linux/ |
H A D | printk.h | 35 #define GID_PRINT_ARGS(gid_raw) htons(((u16 *)gid_raw)[0]), htons(((u16 *)gid_raw)[1]),\ 36 htons(((u16 *)gid_raw)[2]), htons(((u16 *)gid_raw)[3]),\ 37 htons(((u16 *)gid_raw)[4]), htons(((u16 *)gid_raw)[5]),\ 38 htons(((u16 *)gid_raw)[6]), htons(((u16 *)gid_raw)[7])
|
/freebsd-10.3-release/contrib/sendmail/libsm/ |
H A D | inet6_ntop.c | 45 , htons(u16[0]) 46 , htons(u16[1]) 47 , htons(u16[2]) 48 , htons(u16[3]) 49 , htons(u16[4]) 50 , htons(u16[5]) 51 , htons(u16[6]) 52 , htons(u16[7])
|
/freebsd-10.3-release/lib/libc/mips/net/ |
H A D | Makefile.inc | 4 SRCS+= htonl.S ntohl.S htons.S ntohs.S
|
H A D | htons.S | 34 __FBSDID("$FreeBSD: releng/10.3/lib/libc/mips/net/htons.S 251091 2013-05-29 01:54:10Z emaste $"); 36 LEAF(htons) 47 END(htons)
|
/freebsd-10.3-release/contrib/ipfilter/lib/ |
H A D | portname.c | 23 if ((sv = getservbyport(htons(port), "tcp"))) { 26 sv1 = getservbyport(htons(port), "udp"); 33 if ((sv = getservbyport(htons(port), p->p_name))) {
|
H A D | connecttcp.c | 24 sin.sin_port = htons(port & 65535);
|
H A D | getportproto.c | 32 return htons(number);
|
/freebsd-10.3-release/crypto/heimdal/lib/krb5/ |
H A D | get_port.c | 49 return htons(default_port);
|
/freebsd-10.3-release/lib/libc/net/ |
H A D | ntoh.c | 40 htons(uint16_t hs) function
|
/freebsd-10.3-release/usr.bin/talk/ |
H A D | get_iface.c | 59 remote.sin_port = htons(60000); 64 local.sin_port = htons(60000); 74 local.sin_port = htons(ntohs(local.sin_port) + 1); 84 remote.sin_port = htons(ntohs(remote.sin_port) + 1);
|
/freebsd-10.3-release/contrib/ipfilter/ipsend/ |
H A D | iptests.c | 148 u->uh_sport = htons(1); 149 u->uh_dport = htons(9); 151 u->uh_ulen = htons(sizeof(*u) + 4); 233 ip->ip_id = htons(id++); 244 ip->ip_id = htons(id++); 263 ip->ip_id = htons(id++); 276 ip->ip_id = htons(id++); 294 ip->ip_off = htons(IP_MF); 302 ip->ip_off = htons(IP_MF); 310 ip->ip_off = htons( [all...] |
/freebsd-10.3-release/sys/ia64/include/ |
H A D | in_cksum.h | 56 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); 65 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
|
/freebsd-10.3-release/sys/mips/include/ |
H A D | in_cksum.h | 57 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); 66 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
|
/freebsd-10.3-release/sys/amd64/include/ |
H A D | in_cksum.h | 60 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); 69 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
|
/freebsd-10.3-release/sys/powerpc/include/ |
H A D | in_cksum.h | 56 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); 65 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
|
/freebsd-10.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.hton.d | 55 /after[0] != htons(before[0])/ 57 printf("%x rather than %x", htons(before[0]), after[0]);
|
/freebsd-10.3-release/share/examples/find_interface/ |
H A D | find_interface.c | 75 remote.sin_port = htons(60000); 80 local.sin_port = htons(60000); 90 local.sin_port = htons(ntohs(local.sin_port) + 1); 98 remote.sin_port = htons(ntohs(remote.sin_port) + 1);
|
/freebsd-10.3-release/include/protocols/ |
H A D | routed.h | 70 #define RIP_AF_INET htons(AF_INET) 87 #define RIP_AUTH_PW htons(2) /* password type */ 88 #define RIP_AUTH_MD5 htons(3) /* Keyed MD5 */
|
/freebsd-10.3-release/lib/libstand/ |
H A D | arp.c | 112 ah->arp_hrd = htons(ARPHRD_ETHER); 113 ah->arp_pro = htons(ETHERTYPE_IP); 116 ah->arp_op = htons(ARPOP_REQUEST); 205 if (ah->arp_hrd != htons(ARPHRD_ETHER) || 206 ah->arp_pro != htons(ETHERTYPE_IP) || 217 if (ah->arp_op == htons(ARPOP_REQUEST)) { 226 if (ah->arp_op != htons(ARPOP_REPLY)) { 265 if (arp->arp_hrd != htons(ARPHRD_ETHER) || 266 arp->arp_pro != htons(ETHERTYPE_IP) || 277 if (arp->arp_op != htons(ARPOP_REQUES [all...] |
H A D | rarp.c | 98 ap->arp_hrd = htons(ARPHRD_ETHER); 99 ap->arp_pro = htons(ETHERTYPE_IP); 102 ap->arp_op = htons(ARPOP_REVREQUEST); 190 if (ap->arp_hrd != htons(ARPHRD_ETHER) || 191 ap->arp_pro != htons(ETHERTYPE_IP) || 202 if (ap->arp_op != htons(ARPOP_REVREPLY)) {
|
/freebsd-10.3-release/usr.sbin/IPXrouted/ |
H A D | output.c | 143 sipx->sipx_port = htons(IPXPORT_RIP); 210 nn->rip_metric = htons(metric); 211 nn->rip_ticks = htons(ticks); 214 nn->rip_metric = htons(metric); 215 nn->rip_ticks = htons(ticks); 221 n->rip_metric = htons(metric); 222 n->rip_ticks = htons(ticks);
|
/freebsd-10.3-release/sys/netgraph/netflow/ |
H A D | netflow_v9.c | 141 *p++ = htons(flowset_size); /* Total FlowSet length */ 146 *p++ = htons(NETFLOW_V9_MAX_RESERVED_FLOWSET + NETFLOW_V9_FLOW_V4_L4); 149 *p++ = htons(_netflow_v9_record_ipv4_tcp[cnt].field_id); 150 *p++ = htons(_netflow_v9_record_ipv4_tcp[cnt].field_length); 152 *template_fields_cnt = htons(cnt); 157 *p++ = htons(NETFLOW_V9_MAX_RESERVED_FLOWSET + NETFLOW_V9_FLOW_V6_L4); 160 *p++ = htons(_netflow_v9_record_ipv6_tcp[cnt].field_id); 161 *p++ = htons(_netflow_v9_record_ipv6_tcp[cnt].field_length); 163 *template_fields_cnt = htons(cnt); 190 *flowset_length = htons(le [all...] |
/freebsd-10.3-release/contrib/tcp_wrappers/ |
H A D | rfc931.c | 156 ((struct sockaddr_in *)&our_query_sin)->sin_port = htons(ANY_PORT); 157 ((struct sockaddr_in *)&rmt_query_sin)->sin_port = htons(RFC931_PORT); 160 ((struct sockaddr_in6 *)&our_query_sin)->sin6_port = htons(ANY_PORT); 161 ((struct sockaddr_in6 *)&rmt_query_sin)->sin6_port = htons(RFC931_PORT); 171 our_query_sin.sin_port = htons(ANY_PORT); 173 rmt_query_sin.sin_port = htons(RFC931_PORT);
|
/freebsd-10.3-release/contrib/tcpdump/ |
H A D | icmp6.h | 390 #define NI_SUPTYPE_FLAG_COMPRESS ((u_int16_t)htons(0x1)) 391 #define NI_FQDN_FLAG_VALIDTTL ((u_int16_t)htons(0x1)) 394 #define NI_NODEADDR_FLAG_TRUNCATE ((u_int16_t)htons(0x1)) 395 #define NI_NODEADDR_FLAG_ALL ((u_int16_t)htons(0x2)) 396 #define NI_NODEADDR_FLAG_COMPAT ((u_int16_t)htons(0x4)) 397 #define NI_NODEADDR_FLAG_LINKLOCAL ((u_int16_t)htons(0x8)) 398 #define NI_NODEADDR_FLAG_SITELOCAL ((u_int16_t)htons(0x10)) 399 #define NI_NODEADDR_FLAG_GLOBAL ((u_int16_t)htons(0x20)) 400 #define NI_NODEADDR_FLAG_ANYCAST ((u_int16_t)htons(0x40)) /* just experimental. not in spec */ 470 #define ICMP6_RR_RESULT_FLAGS_OOB ((u_int16_t)htons( [all...] |
/freebsd-10.3-release/lib/libsdp/ |
H A D | service.c | 67 pdu.tid = htons(++ss->tid); 68 pdu.len = htons(sizeof(uuid) + sizeof(*bdaddr) + datalen); 70 uuid = htons(uuid); 131 pdu.tid = htons(++ss->tid); 132 pdu.len = htons(sizeof(handle)); 175 pdu.tid = htons(++ss->tid); 176 pdu.len = htons(sizeof(handle) + datalen); 178 handle = htons(handle);
|