/freebsd-11-stable/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-11-stable/lib/libc/mips/net/ |
H A D | Makefile.inc | 4 SRCS+= htonl.S ntohl.S htons.S ntohs.S
|
H A D | htons.S | 36 LEAF(htons) 47 END(htons)
|
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | printk.h | 38 #define GID_PRINT_ARGS(gid_raw) htons(((u16 *)gid_raw)[0]), htons(((u16 *)gid_raw)[1]),\ 39 htons(((u16 *)gid_raw)[2]), htons(((u16 *)gid_raw)[3]),\ 40 htons(((u16 *)gid_raw)[4]), htons(((u16 *)gid_raw)[5]),\ 41 htons(((u16 *)gid_raw)[6]), htons(((u16 *)gid_raw)[7])
|
/freebsd-11-stable/tests/sys/netgraph/ |
H A D | vlan_rotate.c | 61 .vlan[0] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(1, 0, 0))}, 62 .vlan[1] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(2, 0, 0))}, 63 .vlan[2] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(3, 0, 0))}, 64 .vlan[3] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(4, 0, 0))}, 65 .vlan[4] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETA [all...] |
/freebsd-11-stable/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-11-stable/crypto/heimdal/lib/krb5/ |
H A D | get_port.c | 49 return htons(default_port);
|
/freebsd-11-stable/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-11-stable/contrib/ipfilter/ipsend/ |
H A D | iptests.c | 121 u->uh_sport = htons(1); 122 u->uh_dport = htons(9); 124 u->uh_ulen = htons(sizeof(*u) + 4); 206 ip->ip_id = htons(id++); 217 ip->ip_id = htons(id++); 236 ip->ip_id = htons(id++); 249 ip->ip_id = htons(id++); 267 ip->ip_off = htons(IP_MF); 275 ip->ip_off = htons(IP_MF); 283 ip->ip_off = htons( [all...] |
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/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-11-stable/lib/libc/net/ |
H A D | ntoh.c | 42 htons(uint16_t hs) function
|
/freebsd-11-stable/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-11-stable/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-11-stable/stand/libsa/ |
H A D | arp.c | 104 ah->arp_hrd = htons(ARPHRD_ETHER); 105 ah->arp_pro = htons(ETHERTYPE_IP); 108 ah->arp_op = htons(ARPOP_REQUEST); 197 if (ah->arp_hrd != htons(ARPHRD_ETHER) || 198 ah->arp_pro != htons(ETHERTYPE_IP) || 210 if (ah->arp_op == htons(ARPOP_REQUEST)) { 220 if (ah->arp_op != htons(ARPOP_REPLY)) { 261 if (arp->arp_hrd != htons(ARPHRD_ETHER) || 262 arp->arp_pro != htons(ETHERTYPE_IP) || 273 if (arp->arp_op != htons(ARPOP_REQUES [all...] |
H A D | rarp.c | 91 ap->arp_hrd = htons(ARPHRD_ETHER); 92 ap->arp_pro = htons(ETHERTYPE_IP); 95 ap->arp_op = htons(ARPOP_REVREQUEST); 179 if (ap->arp_hrd != htons(ARPHRD_ETHER) || 180 ap->arp_pro != htons(ETHERTYPE_IP) || 192 if (ap->arp_op != htons(ARPOP_REVREPLY)) {
|
/freebsd-11-stable/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-11-stable/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-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.hton.d | 41 trace(htons(0x1122));
|
/freebsd-11-stable/lib/libsdp/ |
H A D | service.c | 68 pdu.tid = htons(++ss->tid); 69 pdu.len = htons(sizeof(uuid) + sizeof(*bdaddr) + datalen); 71 uuid = htons(uuid); 132 pdu.tid = htons(++ss->tid); 133 pdu.len = htons(sizeof(handle)); 176 pdu.tid = htons(++ss->tid); 177 pdu.len = htons(sizeof(handle) + datalen); 179 handle = htons(handle);
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | convert.c | 106 u_int16_t tmp = htons(val); 114 int16_t tmp = htons(val);
|