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

1234567891011>>

/external/mtpd/
H A Dl2tp.c66 #define RESULT_CODE htons(1)
67 #define PROTOCOL_VERSION htons(2)
68 #define FRAMING_CAPABILITIES htons(3)
69 #define HOST_NAME htons(7)
70 #define ASSIGNED_TUNNEL htons(9)
71 #define WINDOW_SIZE htons(10)
72 #define CHALLENGE htons(11)
73 #define CHALLENGE_RESPONSE htons(13)
74 #define ASSIGNED_SESSION htons(14)
75 #define CALL_SERIAL_NUMBER htons(1
[all...]
H A Dpptp.c62 #define CONTROL_MESSAGE htons(1)
64 #define PROTOCOL_VERSION htons(0x0100)
139 outgoing.header.length = htons(length);
142 outgoing.message = htons(message);
226 outgoing.sccrq.channels = htons(1);
297 outgoing.ocrq.window_size = htons(8192);
/external/webkit/Source/WebKit/android/wds/client/
H A DClientUtils.cpp33 addr.sin_port = htons(port);
/external/tcpdump/
H A Dicmp6.h373 #define NI_SUPTYPE_FLAG_COMPRESS ((u_int16_t)htons(0x1))
374 #define NI_FQDN_FLAG_VALIDTTL ((u_int16_t)htons(0x1))
377 #define NI_NODEADDR_FLAG_TRUNCATE ((u_int16_t)htons(0x1))
378 #define NI_NODEADDR_FLAG_ALL ((u_int16_t)htons(0x2))
379 #define NI_NODEADDR_FLAG_COMPAT ((u_int16_t)htons(0x4))
380 #define NI_NODEADDR_FLAG_LINKLOCAL ((u_int16_t)htons(0x8))
381 #define NI_NODEADDR_FLAG_SITELOCAL ((u_int16_t)htons(0x10))
382 #define NI_NODEADDR_FLAG_GLOBAL ((u_int16_t)htons(0x20))
383 #define NI_NODEADDR_FLAG_ANYCAST ((u_int16_t)htons(0x40)) /* just experimental. not in spec */
453 #define ICMP6_RR_RESULT_FLAGS_OOB ((u_int16_t)htons(
[all...]
H A Dprint-cip.c95 etherproto_string(htons(extracted_ethertype)));
/external/qemu/slirp/
H A Dip_output.c79 ip->ip_id = htons(ip_id++);
98 ip->ip_len = htons((u_int16_t)ip->ip_len);
99 ip->ip_off = htons((u_int16_t)ip->ip_off);
159 mhip->ip_len = htons((u_int16_t)(len + mhlen));
166 mhip->ip_off = htons((u_int16_t)mhip->ip_off);
179 ip->ip_len = htons((u_int16_t)m->m_len);
180 ip->ip_off = htons((u_int16_t)(ip->ip_off | IP_MF));
/external/qemu/slirp-android/
H A Dip_output.c79 ip->ip_id = htons(ip_id++);
98 ip->ip_len = htons((u_int16_t)ip->ip_len);
99 ip->ip_off = htons((u_int16_t)ip->ip_off);
159 mhip->ip_len = htons((u_int16_t)(len + mhlen));
166 mhip->ip_off = htons((u_int16_t)mhip->ip_off);
179 ip->ip_len = htons((u_int16_t)m->m_len);
180 ip->ip_off = htons((u_int16_t)(ip->ip_off | IP_MF));
/external/kernel-headers/original/linux/byteorder/
H A Dgeneric.h52 * htons(__u16 x)
148 #undef htons macro
157 extern __be16 htons(__u16);
168 #define htons(x) ___htons(x) macro
/external/bluetooth/bluedroid/gki/common/
H A Dgki_inet.h23 #define htons ntohs macro
/external/libnfc-nci/halimpl/bcm2079x/gki/common/
H A Dgki_inet.h23 #define htons ntohs macro
/external/libnfc-nci/src/gki/common/
H A Dgki_inet.h23 #define htons ntohs macro
/external/dhcpcd/
H A Dduid.c76 type = htons(1); /* DUI-D-LLT */
79 hw = htons(iface->family);
H A Darp.c56 ar.ar_hrd = htons(iface->family);
57 ar.ar_pro = htons(ETHERTYPE_IP);
60 ar.ar_op = htons(op);
130 if (ar.ar_pro != htons(ETHERTYPE_IP))
135 if (ar.ar_op != htons(ARPOP_REPLY) &&
136 ar.ar_op != htons(ARPOP_REQUEST))
/external/dnsmasq/src/
H A Dbpf.c188 ether.ether_type = htons(ETHERTYPE_IP);
203 ip.ip_len = htons(sizeof(struct ip) +
209 ip.ip_id = htons(0);
210 ip.ip_off = htons(0x4000); /* don't fragment */
219 udp.uh_sport = htons(daemon->dhcp_server_port);
220 udp.uh_dport = htons(daemon->dhcp_client_port);
224 udp.uh_ulen = sum = htons(sizeof(struct udphdr) + len);
225 sum += htons(IPPROTO_UDP);
H A Dnetwork.c221 addr.in6.sin6_port = htons(daemon->port);
240 addr.in.sin_port = htons(daemon->port);
277 addr.in6.sin6_port = htons(port);
329 addr.in.sin_port = htons(daemon->port);
363 addr.in.sin_port = htons(TFTP_PORT);
462 iface->addr.in.sin_port = htons(TFTP_PORT);
501 port = htons(daemon->min_port + (port % ((unsigned short)ports_avail)));
576 addr->in.sin_port == htons(0))
582 addr->in6.sin6_port == htons(0))
632 addr.in.sin_port = htons(daemo
[all...]
/external/ppp/pppd/plugins/pppoatm/
H A Dmisc.c14 #include <netinet/in.h> /* for htons */
49 vs_id[5] = (htons(port) >> 8) & 255;
50 vs_id[6] = htons(port) & 255;
/external/ppp/pppd/plugins/rp-pppoe/
H A Ddiscovery.c148 conn->cookie.type = htons(type);
149 conn->cookie.length = htons(len);
162 conn->relayId.type = htons(type);
163 conn->relayId.length = htons(len);
227 conn->relayId.type = htons(type);
228 conn->relayId.length = htons(len);
262 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery);
269 svc->length = htons(namelen);
281 hostUniq.type = htons(TAG_HOST_UNIQ);
282 hostUniq.length = htons(sizeo
[all...]
/external/webkit/Source/WebKit/android/wds/
H A DConnection.cpp63 addr.sin_port = htons(port);
/external/valgrind/main/none/tests/
H A Dfdleak_ipv4.c27 addr.sin_port = htons(12321);
47 addr.sin_port = htons(12321);
/external/quake/quake/src/WinQuake/
H A Dnet_mp.cpp104 ((struct sockaddr_in *)&broadcastaddr)->sin_port = htons(net_hostport);
163 address.sin_port = htons(port);
236 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port);
356 ((struct sockaddr_in *)addr)->sin_port = htons(hp);
407 ((struct sockaddr_in *)addr)->sin_port = htons(net_hostport);
439 ((struct sockaddr_in *)addr)->sin_port = htons(port);
/external/grub/netboot/
H A Dmain.c211 ip->len = htons (len);
220 udp->src = htons (srcsock);
221 udp->dest = htons (destsock);
222 udp->len = htons (len - sizeof (struct iphdr));
224 udp->chksum = htons (udpchksum (ip));
260 arpreq.hwtype = htons (1);
261 arpreq.protocol = htons (IP);
264 arpreq.opcode = htons (ARP_REQUEST);
320 tp.opcode = htons (TFTP_RRQ);
407 tp.opcode = htons (TFTP_ERRO
[all...]
H A Dfsys_tftp.c162 tp.opcode = htons (TFTP_ERROR);
213 tp.u.ack.block = htons (block = prevblock);
216 tp.opcode = abort ? htons (TFTP_ERROR) : htons (TFTP_ACK);
429 tp.opcode = htons (TFTP_RRQ);
/external/webkit/Source/WebCore/platform/graphics/
H A DWOFFFileFormat.cpp41 #define htons(x) std_htons(x) macro
49 #define htons(x) ((uint16_t)(x)) macro
54 #define htons(x) ((uint16_t)(x)) macro
59 #define htons(x) ntohs(x) macro
100 uint16_t bigEndianValue = htons(value);
/external/iptables/extensions/
H A Dlibipt_MASQUERADE.c56 = htons(port);
65 mr->range[0].min.tcp.port = htons(port);
66 mr->range[0].max.tcp.port = htons(maxport);
H A Dlibipt_REDIRECT.c56 = htons(port);
66 mr->range[0].min.tcp.port = htons(port);
67 mr->range[0].max.tcp.port = htons(maxport);

Completed in 1212 milliseconds

1234567891011>>