Searched refs:htons (Results 1 - 25 of 643) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/sendmail/libsm/
H A Dinet6_ntop.c45 , 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 DMakefile.inc4 SRCS+= htonl.S ntohl.S htons.S ntohs.S
H A Dhtons.S36 LEAF(htons)
47 END(htons)
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dprintk.h38 #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 Dvlan_rotate.c61 .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 Dportname.c23 if ((sv = getservbyport(htons(port), "tcp"))) {
26 sv1 = getservbyport(htons(port), "udp");
33 if ((sv = getservbyport(htons(port), p->p_name))) {
H A Dconnecttcp.c24 sin.sin_port = htons(port & 65535);
H A Dgetportproto.c32 return htons(number);
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dget_port.c49 return htons(default_port);
/freebsd-11-stable/usr.bin/talk/
H A Dget_iface.c59 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 Diptests.c121 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 Din_cksum.h60 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
69 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
/freebsd-11-stable/sys/powerpc/include/
H A Din_cksum.h56 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
65 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
/freebsd-11-stable/sys/mips/include/
H A Din_cksum.h57 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 Dtst.hton.d55 /after[0] != htons(before[0])/
57 printf("%x rather than %x", htons(before[0]), after[0]);
/freebsd-11-stable/lib/libc/net/
H A Dntoh.c42 htons(uint16_t hs) function
/freebsd-11-stable/share/examples/find_interface/
H A Dfind_interface.c75 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 Drouted.h70 #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 Darp.c104 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 Drarp.c91 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 Dnetflow_v9.c141 *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 Drfc931.c156 ((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 Dtst.hton.d41 trace(htons(0x1122));
/freebsd-11-stable/lib/libsdp/
H A Dservice.c68 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 Dconvert.c106 u_int16_t tmp = htons(val);
114 int16_t tmp = htons(val);

Completed in 242 milliseconds

1234567891011>>