Searched refs:htons (Results 1 - 25 of 311) 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/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/socket/
H A Dhtons.c11 inline uint16_t htons(uint16_t hostshort) { function
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DByteOrder.h45 inline uint16_t htons(uint16_t x) { return x; } function
50 inline uint16_t htons(uint16_t x) { return x; } function
55 inline uint16_t htons(uint16_t x) { return WTF::bswap16(x); } function
/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/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/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...]
H A Dprint-cip.c95 etherproto_string(htons(extracted_ethertype)));
/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);
/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/iptables/extensions/
H A Dlibxt_HMARK.c225 info->port_set.p16.src = htons(cb->val.u16);
229 info->port_set.p16.dst = htons(cb->val.u16);
233 info->port_mask.p16.src = htons(cb->val.u16);
237 info->port_mask.p16.dst = htons(cb->val.u16);
293 printf("sport-mask 0x%x ", htons(info->port_mask.p16.src));
295 printf("dport-mask 0x%x ", htons(info->port_mask.p16.dst));
299 printf("sport 0x%x ", htons(info->port_set.p16.src));
301 printf("dport 0x%x ", htons(info->port_set.p16.dst));
357 htons(info->port_mask.p16.src));
360 htons(inf
[all...]
H A Dlibip6t_MASQUERADE.c55 = htons(port);
64 r->min_proto.tcp.port = htons(port);
65 r->max_proto.tcp.port = htons(maxport);
H A Dlibip6t_REDIRECT.c55 = htons(port);
65 range->min_proto.tcp.port = htons(port);
66 range->max_proto.tcp.port = htons(maxport);
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);
/external/chromium_org/sandbox/win/sandbox_poc/pocdll/
H A Dnetwork.cc38 service.sin_port = htons(88);
/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...]
H A Dcommon.c412 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery);
426 hostUniq.type = htons(TAG_HOST_UNIQ);
427 hostUniq.length = htons(sizeof(pid));
438 err.type = htons(TAG_GENERIC_ERROR);
439 err.length = htons(elen);
463 packet.length = htons(plen);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
H A DOpenTypeTypes.h35 Int16(int16_t u) : v(htons(static_cast<uint16_t>(u))) { }
41 UInt16(uint16_t u) : v(htons(u)) { }
/external/valgrind/main/none/tests/
H A Dfdleak_ipv4.c27 addr.sin_port = htons(12321);
47 addr.sin_port = htons(12321);
/external/chromium_org/third_party/ots/include/
H A Dopentype-sanitiser.h21 #define htons(x) _byteswap_ushort (x) macro
110 v = htons(v);
115 v = htons(v);

Completed in 1125 milliseconds

1234567891011>>