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

1234567891011>>

/freebsd-9.3-release/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-9.3-release/lib/libc/mips/net/
H A Dhtons.S43 LEAF(htons)
54 END(htons)
/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dportname.c22 if ((sv = getservbyport(htons(port), "tcp"))) {
25 sv1 = getservbyport(htons(port), "udp");
32 if ((sv = getservbyport(htons(port), p->p_name))) {
H A Dgetportproto.c32 return htons(number);
H A Dipft_ef.c102 pkt.ti_sport = htons(atoi(sprt) & 65535);
104 pkt.ti_dport = htons(atoi(dprt) & 65535);
109 pkt.ti_sport = htons(atoi(sprt) & 65535);
111 pkt.ti_dport = htons(atoi(dprt) & 65535);
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dget_port.c51 return htons(default_port);
/freebsd-9.3-release/lib/libc/net/
H A Dntoh.c40 htons(uint16_t hs) function
/freebsd-9.3-release/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-9.3-release/contrib/ipfilter/ipsend/
H A Diptests.c148 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-9.3-release/sys/amd64/include/
H A Din_cksum.h60 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
69 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
/freebsd-9.3-release/sys/ia64/include/
H A Din_cksum.h56 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
65 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
/freebsd-9.3-release/sys/mips/include/
H A Din_cksum.h57 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
66 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
/freebsd-9.3-release/sys/powerpc/include/
H A Din_cksum.h56 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
65 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/lib/libstand/
H A Darp.c112 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 Drarp.c98 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-9.3-release/usr.sbin/IPXrouted/
H A Doutput.c143 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-9.3-release/lib/libncp/
H A Dsap.c115 rq->buffer->operation = htons(IPX_SAP_GENERAL_QUERY);
142 rq->buffer->operation = htons(IPX_SAP_GENERAL_QUERY);
144 sep->server_type = htons(ser_type);
153 rq->buffer->operation = htons(IPX_SAP_NEAREST_QUERY);
155 sep->server_type = htons(ser_type);
166 if (rq->buffer->operation != htons(IPX_SAP_GENERAL_RESPONSE)){
168 rq->buffer->operation = htons(IPX_SAP_GENERAL_RESPONSE);
171 sep->server_type = htons(type);
174 sep->hops = htons(hops);
185 rq->buffer->operation = htons(IPX_SAP_NEAREST_RESPONS
[all...]
/freebsd-9.3-release/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-9.3-release/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-9.3-release/contrib/tcpdump/
H A Dicmp6.h390 #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-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.hton.d41 trace(htons(0x1122));
/freebsd-9.3-release/lib/libc/amd64/
H A DSymbol.map36 htons;

Completed in 322 milliseconds

1234567891011>>