HomeSort by relevance Sort by last modified time
    Searched refs:htons (Results 1 - 25 of 354) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/mtpd/
l2tp.c 66 #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(15
    [all...]
  /external/webkit/Source/WebKit/android/wds/client/
ClientUtils.cpp 33 addr.sin_port = htons(port);
  /external/bluetooth/hcidump/parser/
att.c 263 uint16_t handle = btohs(htons(get_u16(frm)));
275 uint16_t client_rx_mtu = btohs(htons(get_u16(frm)));
283 uint16_t server_rx_mtu = btohs(htons(get_u16(frm)));
291 uint16_t start = btohs(htons(get_u16(frm)));
292 uint16_t end = btohs(htons(get_u16(frm)));
308 uint16_t handle = btohs(htons(get_u16(frm)));
309 uint16_t uuid = btohs(htons(get_u16(frm)));
318 uint16_t handle = btohs(htons(get_u16(frm)));
335 uint16_t start = btohs(htons(get_u16(frm)));
336 uint16_t end = btohs(htons(get_u16(frm)))
    [all...]
  /frameworks/base/voip/jni/rtp/
util.cpp 45 sin->sin_port = htons(port);
53 sin6->sin6_port = htons(port);
  /external/tcpdump/
icmp6.h 373 #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(0x0002)
    [all...]
print-cip.c 95 etherproto_string(htons(extracted_ethertype)));
  /external/qemu/slirp/
ip_output.c 79 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/
ip_output.c 79 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/
generic.h 52 * htons(__u16 x)
148 #undef htons macro
157 extern __be16 htons(__u16);
168 #define htons(x) ___htons(x) macro
  /system/core/libnetutils/
packet.c 47 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) {
53 bindaddr.sll_protocol = htons(ETH_P_IP);
103 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size);
113 udp.source = htons(sport);
114 udp.dest = htons(dport);
115 udp.len = htons(sizeof(udp) + size);
121 temp = htons(IPPROTO_UDP);
141 destaddr.sll_protocol = htons(ETH_P_IP);
196 } else if (packet.udp.dest != htons(PORT_BOOTP_CLIENT)) {
  /external/dhcpcd/
duid.c 76 type = htons(1); /* DUI-D-LLT */
79 hw = htons(iface->family);
lpf.c 80 if ((s = socket(PF_PACKET, SOCK_DGRAM, htons(protocol))) == -1)
85 su.sll.sll_protocol = htons(protocol);
134 su.sll.sll_protocol = htons(protocol);
139 su.sll.sll_hatype = htons(iface->family);
  /external/dnsmasq/src/
bpf.c 188 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/
misc.c 14 #include <netinet/in.h> /* for htons */
49 vs_id[5] = (htons(port) >> 8) & 255;
50 vs_id[6] = htons(port) & 255;
  /bionic/libc/netbsd/resolv/
res_mkquery.c 146 hp->id = htons(res_randomid());
172 hp->qdcount = htons(1);
193 hp->arcount = htons(1);
215 hp->ancount = htons(1);
272 hp->arcount = htons(ntohs(hp->arcount) + 1);
  /libcore/luni/src/main/native/
libcore_net_RawSocket.cpp 66 su.sll.sll_protocol = htons(protocolType);
68 int sock = socket(PF_PACKET, SOCK_DGRAM, htons(protocolType));
123 su.sll.sll_hatype = htons(1); // ARPHRD_ETHER
127 su.sll.sll_protocol = htons(protocolType);
197 __be16 destPort = htons((reinterpret_cast<udphdr*>(packetData + sizeof(iphdr)))->dest);
  /external/bluetooth/bluez/cups/
hcrp.c 90 hdr.pid = htons(HCRP_PDU_CREDIT_GRANT);
91 hdr.tid = htons(tid);
92 hdr.plen = htons(HCRP_CREDIT_GRANT_CP_SIZE);
122 hdr.pid = htons(HCRP_PDU_CREDIT_REQUEST);
123 hdr.tid = htons(tid);
124 hdr.plen = htons(0);
155 hdr.pid = htons(HCRP_PDU_GET_LPT_STATUS);
156 hdr.tid = htons(tid);
157 hdr.plen = htons(0);
  /bionic/libc/inet/
bindresvport.c 63 sin->sin_port = htons(port);
  /external/ppp/pppd/plugins/rp-pppoe/
discovery.c 148 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(sizeof(pid))
    [all...]
  /external/webkit/Source/WebKit/android/wds/
Connection.cpp 63 addr.sin_port = htons(port);
  /system/core/libcutils/
socket_inaddr_any_server.c 44 addr.sin_port = htons(port);
socket_loopback_client.c 45 addr.sin_port = htons(port);
socket_loopback_server.c 44 addr.sin_port = htons(port);
socket_network_client.c 51 addr.sin_port = htons(port);
  /external/valgrind/main/none/tests/
fdleak_ipv4.c 27 addr.sin_port = htons(12321);
47 addr.sin_port = htons(12321);

Completed in 855 milliseconds

1 2 3 4 5 6 7 8 91011>>