/external/mtpd/ |
D | 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 …]
|
D | pptp.c | 62 #define CONTROL_MESSAGE htons(1) 64 #define PROTOCOL_VERSION htons(0x0100) 139 outgoing.header.length = htons(length); in set_message() 142 outgoing.message = htons(message); in set_message() 226 outgoing.sccrq.channels = htons(1); in pptp_connect() 297 outgoing.ocrq.window_size = htons(8192); in pptp_process()
|
/external/tcpdump/ |
D | icmp6.h | 390 #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(0x0002)) [all …]
|
/external/qemu/slirp-android/ |
D | ip_output.c | 79 ip->ip_id = htons(ip_id++); in ip_output() 98 ip->ip_len = htons((u_int16_t)ip->ip_len); in ip_output() 99 ip->ip_off = htons((u_int16_t)ip->ip_off); in ip_output() 159 mhip->ip_len = htons((u_int16_t)(len + mhlen)); in ip_output() 166 mhip->ip_off = htons((u_int16_t)mhip->ip_off); in ip_output() 179 ip->ip_len = htons((u_int16_t)m->m_len); in ip_output() 180 ip->ip_off = htons((u_int16_t)(ip->ip_off | IP_MF)); in ip_output()
|
/external/qemu/slirp/ |
D | ip_output.c | 79 ip->ip_id = htons(ip_id++); in ip_output() 98 ip->ip_len = htons((u_int16_t)ip->ip_len); in ip_output() 99 ip->ip_off = htons((u_int16_t)ip->ip_off); in ip_output() 159 mhip->ip_len = htons((u_int16_t)(len + mhlen)); in ip_output() 166 mhip->ip_off = htons((u_int16_t)mhip->ip_off); in ip_output() 179 ip->ip_len = htons((u_int16_t)m->m_len); in ip_output() 180 ip->ip_off = htons((u_int16_t)(ip->ip_off | IP_MF)); in ip_output()
|
D | slirp.c | 626 reh->h_proto = htons(ETH_P_ARP); in arp_input() 628 rah->ar_hrd = htons(1); in arp_input() 629 rah->ar_pro = htons(ETH_P_IP); in arp_input() 632 rah->ar_op = htons(ARPOP_REPLY); in arp_input() 709 reh->h_proto = htons(ETH_P_ARP); in if_encap() 710 rah->ar_hrd = htons(1); in if_encap() 711 rah->ar_pro = htons(ETH_P_IP); in if_encap() 714 rah->ar_op = htons(ARPOP_REQUEST); in if_encap() 731 eh->h_proto = htons(ETH_P_IP); in if_encap() 768 int fport = htons(host_port); in slirp_redir_rm() [all …]
|
D | tcp_subr.c | 73 n->ti_len = htons(sizeof (struct tcpiphdr) - sizeof (struct ip)); in tcp_template() 145 ti->ti_len = htons((u_short)(sizeof (struct tcphdr) + tlen)); in tcp_respond() 157 ti->ti_win = htons((u_int16_t) (win >> tp->rcv_scale)); in tcp_respond() 159 ti->ti_win = htons((u_int16_t)win); in tcp_respond() 811 ns->so_lport=htons(port); in tcp_emu() 816 ns->so_fport=htons(IPPORT_RESERVED-1); /* Use a fake port. */ in tcp_emu() 975 lport = htons((n5 << 8) | (n6)); in tcp_emu() 1007 lport = htons((n5 << 8) | (n6)); in tcp_emu() 1049 (so = solisten(0, so->so_laddr.s_addr, htons(lport), SS_FACCEPTONCE)) != NULL) in tcp_emu() 1064 if ((so = solisten(0, htonl(laddr), htons(lport), SS_FACCEPTONCE)) == NULL) in tcp_emu() [all …]
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | discovery.c | 148 conn->cookie.type = htons(type); in parsePADOTags() 149 conn->cookie.length = htons(len); in parsePADOTags() 162 conn->relayId.type = htons(type); in parsePADOTags() 163 conn->relayId.length = htons(len); in parsePADOTags() 227 conn->relayId.type = htons(type); in parsePADSTags() 228 conn->relayId.length = htons(len); in parsePADSTags() 262 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADI() 269 svc->length = htons(namelen); in sendPADI() 281 hostUniq.type = htons(TAG_HOST_UNIQ); in sendPADI() 282 hostUniq.length = htons(sizeof(pid)); in sendPADI() [all …]
|
D | common.c | 412 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADT() 426 hostUniq.type = htons(TAG_HOST_UNIQ); in sendPADT() 427 hostUniq.length = htons(sizeof(pid)); in sendPADT() 438 err.type = htons(TAG_GENERIC_ERROR); in sendPADT() 439 err.length = htons(elen); in sendPADT() 463 packet.length = htons(plen); in sendPADT()
|
/external/dnsmasq/src/ |
D | bpf.c | 188 ether.ether_type = htons(ETHERTYPE_IP); in send_via_bpf() 203 ip.ip_len = htons(sizeof(struct ip) + in send_via_bpf() 209 ip.ip_id = htons(0); in send_via_bpf() 210 ip.ip_off = htons(0x4000); /* don't fragment */ in send_via_bpf() 219 udp.uh_sport = htons(daemon->dhcp_server_port); in send_via_bpf() 220 udp.uh_dport = htons(daemon->dhcp_client_port); in send_via_bpf() 224 udp.uh_ulen = sum = htons(sizeof(struct udphdr) + len); in send_via_bpf() 225 sum += htons(IPPROTO_UDP); in send_via_bpf()
|
D | network.c | 221 addr.in6.sin6_port = htons(daemon->port); in iface_allowed_v6() 240 addr.in.sin_port = htons(daemon->port); in iface_allowed_v4() 277 addr.in6.sin6_port = htons(port); in create_ipv6_listener() 329 addr.in.sin_port = htons(daemon->port); in create_wildcard_listeners() 363 addr.in.sin_port = htons(TFTP_PORT); in create_wildcard_listeners() 470 iface->addr.in.sin_port = htons(TFTP_PORT); in create_bound_listener() 634 iface->addr.in.sin_port = htons(TFTP_PORT); in create_bound_listeners() 673 port = htons(daemon->min_port + (port % ((unsigned short)ports_avail))); in random_sock() 751 addr->in.sin_port == htons(0)) in allocate_sfd() 757 addr->in6.sin6_port == htons(0)) in allocate_sfd() [all …]
|
/external/iptables/extensions/ |
D | libxt_HMARK.c | 225 info->port_set.p16.src = htons(cb->val.u16); in HMARK_parse() 229 info->port_set.p16.dst = htons(cb->val.u16); in HMARK_parse() 233 info->port_mask.p16.src = htons(cb->val.u16); in HMARK_parse() 237 info->port_mask.p16.dst = htons(cb->val.u16); in HMARK_parse() 293 printf("sport-mask 0x%x ", htons(info->port_mask.p16.src)); in HMARK_print() 295 printf("dport-mask 0x%x ", htons(info->port_mask.p16.dst)); in HMARK_print() 299 printf("sport 0x%x ", htons(info->port_set.p16.src)); in HMARK_print() 301 printf("dport 0x%x ", htons(info->port_set.p16.dst)); in HMARK_print() 357 htons(info->port_mask.p16.src)); in HMARK_save() 360 htons(info->port_mask.p16.dst)); in HMARK_save() [all …]
|
D | libip6t_MASQUERADE.c | 55 = htons(port); in parse_ports() 64 r->min_proto.tcp.port = htons(port); in parse_ports() 65 r->max_proto.tcp.port = htons(maxport); in parse_ports()
|
D | libip6t_REDIRECT.c | 55 = htons(port); in parse_ports() 65 range->min_proto.tcp.port = htons(port); in parse_ports() 66 range->max_proto.tcp.port = htons(maxport); in parse_ports()
|
D | libipt_MASQUERADE.c | 56 = htons(port); in parse_ports() 65 mr->range[0].min.tcp.port = htons(port); in parse_ports() 66 mr->range[0].max.tcp.port = htons(maxport); in parse_ports()
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
D | ByteOrder.h | 45 inline uint16_t htons(uint16_t x) { return x; } in htons() function 50 inline uint16_t htons(uint16_t x) { return x; } in htons() function 55 inline uint16_t htons(uint16_t x) { return WTF::bswap16(x); } in htons() function
|
/external/iputils/ |
D | tftpd.c | 366 dp->th_opcode = htons((u_short)DATA); in sendfile() 367 dp->th_block = htons((u_short)block); in sendfile() 432 ap->th_opcode = htons((u_short)ACK); in recvfile() 433 ap->th_block = htons((u_short)block); in recvfile() 477 ap->th_opcode = htons((u_short)ACK); /* send the "final" ack */ in recvfile() 478 ap->th_block = htons((u_short)(block)); in recvfile() 522 tp->th_opcode = htons((u_short)ERROR); in nak() 523 tp->th_code = htons((u_short)error); in nak()
|
D | arping.c | 279 ah->ar_hrd = htons(ME->sll_hatype); in send_pack() 280 if (ah->ar_hrd == htons(ARPHRD_FDDI)) in send_pack() 281 ah->ar_hrd = htons(ARPHRD_ETHER); in send_pack() 282 ah->ar_pro = htons(ETH_P_IP); in send_pack() 285 ah->ar_op = advert ? htons(ARPOP_REPLY) : htons(ARPOP_REQUEST); in send_pack() 392 if (ah->ar_op != htons(ARPOP_REQUEST) && in recv_pack() 393 ah->ar_op != htons(ARPOP_REPLY)) in recv_pack() 397 if (ah->ar_hrd != htons(FROM->sll_hatype) && in recv_pack() 398 (FROM->sll_hatype != ARPHRD_FDDI || ah->ar_hrd != htons(ARPHRD_ETHER))) in recv_pack() 402 if (ah->ar_pro != htons(ETH_P_IP)) in recv_pack() [all …]
|
/external/dhcpcd/ |
D | lpf.c | 83 if ((s = socket(PF_PACKET, SOCK_DGRAM, htons(protocol))) == -1) in open_socket() 88 su.sll.sll_protocol = htons(protocol); in open_socket() 144 su.sll.sll_protocol = htons(protocol); in send_raw_packet() 149 su.sll.sll_hatype = htons(iface->family); in send_raw_packet()
|
D | arp.c | 56 ar.ar_hrd = htons(iface->family); in send_arp() 57 ar.ar_pro = htons(ETHERTYPE_IP); in send_arp() 60 ar.ar_op = htons(op); in send_arp() 130 if (ar.ar_pro != htons(ETHERTYPE_IP)) in handle_arp_packet() 135 if (ar.ar_op != htons(ARPOP_REPLY) && in handle_arp_packet() 136 ar.ar_op != htons(ARPOP_REQUEST)) in handle_arp_packet()
|
/external/android-clat/ |
D | translate.c | 113 tun_header->proto = htons(proto); in fill_tun_header() 131 ip->tot_len = htons(sizeof(struct iphdr) + payload_len); in fill_ip_header() 133 ip->frag_off = htons(IP_DF); in fill_ip_header() 162 ip6->ip6_plen = htons(payload_len); in fill_ip6_header() 190 frag_hdr->ip6f_offlg = htons(frag_off << 3); in maybe_fill_frag_header() 212 ip_targ->frag_off = htons(frag_off); in parse_frag_header() 213 ip_targ->id = htons(ntohl(frag_hdr->ip6f_ident) & 0xffff); in parse_frag_header() 254 checksum = checksum + htons(20); in icmp_to_icmp6()
|
/external/kernel-headers/original/uapi/linux/ |
D | tipc_config.h | 290 tlv_ptr->tlv_type = htons(type); in TLV_SET() 291 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET() 388 tcm_hdr->tcm_type = htons(cmd); in TCM_SET() 389 tcm_hdr->tcm_flags = htons(flags); in TCM_SET()
|
/external/ppp/pppd/plugins/pppoatm/ |
D | misc.c | 49 vs_id[5] = (htons(port) >> 8) & 255; in atm_tcpip_port_mapping() 50 vs_id[6] = htons(port) & 255; in atm_tcpip_port_mapping()
|
/external/ipsec-tools/src/racoon/ |
D | isakmp_xauth.c | 159 attr->h.len = htons(tlen); 161 attr->id = htons(eay_random()); 164 typeattr->type = htons(XAUTH_TYPE | ISAKMP_GEN_TV); 165 typeattr->lorv = htons(XAUTH_TYPE_GENERIC); 168 usrattr->type = htons(XAUTH_USER_NAME | ISAKMP_GEN_TLV); 169 usrattr->lorv = htons(0); 172 pwdattr->type = htons(XAUTH_USER_PASSWORD | ISAKMP_GEN_TLV); 173 pwdattr->lorv = htons(0); 432 attr->h.len = htons(tlen); 434 attr->id = htons(id); [all …]
|
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
D | sctp_output.c | 2026 parmh->param_type = htons(SCTP_IPV4_ADDRESS); in sctp_add_addr_to_mbuf() 2027 parmh->param_length = htons(plen); in sctp_add_addr_to_mbuf() 2041 parmh->param_type = htons(SCTP_IPV6_ADDRESS); in sctp_add_addr_to_mbuf() 2042 parmh->param_length = htons(plen); in sctp_add_addr_to_mbuf() 3979 ph->param_type = htons(SCTP_STATE_COOKIE); 4020 ph->param_length = htons(cookie_sz); 4237 ip->ip_off = htons(IP_DF); 4244 ip->ip_off = htons(IP_DF); 4248 ip->ip_off = htons(0); 4258 ip->ip_id = htons(ip_randomid()); [all …]
|