/third_party/lwip/src/include/lwip/ |
D | ip_addr.h | 116 #define ip_2_ip6(ipaddr) (&((ipaddr)->u_addr.ip6)) macro 126 #define IP_ADDR6(ipaddr,i0,i1,i2,i3) do { IP6_ADDR(ip_2_ip6(ipaddr),i0,i1,i2,i3); \ 131 #define ip_clear_no4(ipaddr) do { ip_2_ip6(ipaddr)->addr[1] = \ 132 ip_2_ip6(ipaddr)->addr[2] = \ 133 ip_2_ip6(ipaddr)->addr[3] = 0; \ 134 ip6_addr_clear_zone(ip_2_ip6(ipaddr)); }while(0) 138 ip6_addr_copy(*ip_2_ip6(&(dest)), *ip_2_ip6(&(src))); }else{ \ 142 ip6_addr_copy(*ip_2_ip6(&(dest)), src); IP_SET_TYPE_VAL(dest, IPADDR_TYPE_V6); }while(0) 145 …ip6_addr_copy_from_packed(*ip_2_ip6(&(dest)), src); IP_SET_TYPE_VAL(dest, IPADDR_TYPE_V6); }while(… 160 ip6_addr_set(ip_2_ip6(dest), ip_2_ip6(src)); }else{ \ [all …]
|
D | ip.h | 186 #define ip6_current_src_addr() (ip_2_ip6(&ip_data.current_iphdr_src)) 188 #define ip6_current_dest_addr() (ip_2_ip6(&ip_data.current_iphdr_dest)) 257 ip6_output(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto) : \ 265 ip6_output_if(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 273 ip6_output_if_src(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 278 ip6_output_if(p, ip_2_ip6(src), LWIP_IP_HDRINCL, 0, 0, 0, netif) : \ 283 ip6_output_hinted(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif_hint) : \ 292 ip6_route(ip_2_ip6(src), ip_2_ip6(dest), group) : \ 297 ip6_route(ip_2_ip6(src), ip_2_ip6(dest)) : \ 305 ip6_netif_get_local_ip(netif, ip_2_ip6(dest)) : \
|
D | netif.h | 550 #define netif_ip6_addr(netif, i) ((const ip6_addr_t*)ip_2_ip6(&((netif)->ip6_addr[i])))
|
/third_party/lwip/src/core/ |
D | raw.c | 241 ip6_addr_lacks_zone(ip_2_ip6(&pcb->local_ip), IP6_UNKNOWN)) { in raw_bind() 242 ip6_addr_select_zone(ip_2_ip6(&pcb->local_ip), ip_2_ip6(&pcb->local_ip)); in raw_bind() 297 ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) { in raw_connect() 298 ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip)); in raw_connect() 535 …u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(dst_ip)); in raw_sendto_if_src()
|
D | ip.c | 85 return ip6addr_ntoa(ip_2_ip6(addr)); in ipaddr_ntoa() 107 return ip6addr_ntoa_r(ip_2_ip6(addr), buf, buflen); in ipaddr_ntoa_r() 133 return ip6addr_aton(cp, ip_2_ip6(addr)); in ipaddr_aton()
|
D | netif.c | 1488 ip6_addr_copy(*ip_2_ip6(&old_addr), *netif_ip6_addr(netif, addr_idx)); 1492 if ((ip_2_ip6(&old_addr)->addr[0] != i0) || (ip_2_ip6(&old_addr)->addr[1] != i1) || 1493 (ip_2_ip6(&old_addr)->addr[2] != i2) || (ip_2_ip6(&old_addr)->addr[3] != i3)) { 1497 ip6_addr_assign_zone(ip_2_ip6(&new_ipaddr), IP6_UNICAST, netif); 1650 ip_2_ip6(&netif->ip6_addr[0])->addr[0] = PP_HTONL(0xfe800000ul); 1651 ip_2_ip6(&netif->ip6_addr[0])->addr[1] = 0; 1656 ip_2_ip6(&netif->ip6_addr[0])->addr[2] = lwip_htonl((((u32_t)(netif->hwaddr[0] ^ 0x02)) << 24) | 1660 ip_2_ip6(&netif->ip6_addr[0])->addr[3] = lwip_htonl((u32_t)(0xfeul << 24) | 1666 ip_2_ip6(&netif->ip6_addr[0])->addr[2] = 0; 1667 ip_2_ip6(&netif->ip6_addr[0])->addr[3] = 0; [all …]
|
D | udp.c | 698 if (ip6_addr_isany(ip_2_ip6(&pcb->local_ip)) || 699 ip6_addr_ismulticast(ip_2_ip6(&pcb->local_ip))) { 700 src_ip = ip6_select_source_address(netif, ip_2_ip6(dst_ip)); 707 if (netif_get_ip6_addr_match(netif, ip_2_ip6(&pcb->local_ip)) < 0) { 1018 if (IP_IS_V6(ipaddr) && ip6_addr_lacks_zone(ip_2_ip6(ipaddr), IP6_UNKNOWN)) { 1020 ip6_addr_select_zone(ip_2_ip6(&zoned_ipaddr), ip_2_ip6(&zoned_ipaddr)); 1146 ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) { 1147 ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip));
|
D | inet_chksum.c | 384 return ip6_chksum_pseudo(p, proto, proto_len, ip_2_ip6(src), ip_2_ip6(dest)); in ip_chksum_pseudo() 531 … return ip6_chksum_pseudo_partial(p, proto, proto_len, chksum_len, ip_2_ip6(src), ip_2_ip6(dest)); in ip_chksum_pseudo_partial()
|
D | tcp.c | 860 if (IP_IS_V6(ipaddr) && ip6_addr_lacks_zone(ip_2_ip6(ipaddr), IP6_UNICAST)) { 862 ip6_addr_select_zone(ip_2_ip6(&zoned_ipaddr), ip_2_ip6(&zoned_ipaddr)); 1288 ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST)) { 1289 ip6_addr_assign_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST, netif); 2434 mtu = nd6_get_destination_mtu(ip_2_ip6(dest), outif);
|
/third_party/lwip/src/netif/ |
D | lowpan6_common.c | 165 ip6_addr_assign_zone(ip_2_ip6(&ip6dst), IP6_UNKNOWN, netif); in lowpan6_compress_headers() 167 ip6_addr_assign_zone(ip_2_ip6(&ip6src), IP6_UNKNOWN, netif); in lowpan6_compress_headers() 179 i = lowpan6_context_lookup(lowpan6_contexts, ip_2_ip6(&ip6src)); in lowpan6_compress_headers() 186 i = lowpan6_context_lookup(lowpan6_contexts, ip_2_ip6(&ip6dst)); in lowpan6_compress_headers() 254 (ip6_addr_islinklocal(ip_2_ip6(&ip6src)))) { in lowpan6_compress_headers() 256 i = lowpan6_get_address_mode(ip_2_ip6(&ip6src), src); in lowpan6_compress_headers() 265 } else if (ip6_addr_isany(ip_2_ip6(&ip6src))) { in lowpan6_compress_headers() 275 if (ip6_addr_ismulticast(ip_2_ip6(&ip6dst))) { in lowpan6_compress_headers() 280 i = lowpan6_get_address_mode_mc(ip_2_ip6(&ip6dst)); in lowpan6_compress_headers() 297 (ip6_addr_islinklocal(ip_2_ip6(&ip6dst)))) { in lowpan6_compress_headers() [all …]
|
/third_party/lwip/test/unit/ip6/ |
D | test_ip6.c | 214 str = ip6addr_ntoa_r(ip_2_ip6(&addr), buf, sizeof(buf)); in START_TEST() 238 str = ip6addr_ntoa_r(ip_2_ip6(&tests[i].addr), buf, sizeof(buf)); in START_TEST() 302 netif_ip6_addr_set(&test_netif6, 0, ip_2_ip6(&my_addr)); in START_TEST() 319 …err = ip6_output_if_src(hdr, ip_2_ip6(&my_addr), ip_2_ip6(&peer_addr), 15, 0, IP_PROTO_UDP, &test_… in START_TEST()
|
/third_party/lwip/src/apps/snmp/ |
D | snmp_traps.c | 336 len = sizeof(ip_2_ip6(&trap->sip)->addr); in snmp_trap_header_sum() 425 SNMP_ASN1_SET_TLV_PARAMS(tlv, SNMP_ASN1_TYPE_IPADDR, 0, sizeof(ip_2_ip6(&trap->sip)->addr)); in snmp_trap_header_enc() 427 …LD_EXEC( snmp_asn1_enc_raw(pbuf_stream, (const u8_t *)&ip_2_ip6(&trap->sip)->addr, sizeof(ip_2_ip6… in snmp_trap_header_enc()
|
D | snmp_core.c | 415 snmp_ip6_to_oid(ip_2_ip6(ip), &oid[2]); in snmp_ip_to_oid() 494 if (!snmp_oid_to_ip6(&oid[2], ip_2_ip6(ip))) { in snmp_oid_to_ip()
|
/third_party/lwip/src/core/ipv6/ |
D | ip6.c | 630 if (ip6_addr_isipv4mappedipv6(ip_2_ip6(&ip_data.current_iphdr_dest)) || 631 ip6_addr_isipv4mappedipv6(ip_2_ip6(&ip_data.current_iphdr_src)) || 632 ip6_addr_ismulticast(ip_2_ip6(&ip_data.current_iphdr_src))) { 641 ip6_addr_assign_zone(ip_2_ip6(&ip_data.current_iphdr_dest), IP6_UNKNOWN, inp); 642 ip6_addr_assign_zone(ip_2_ip6(&ip_data.current_iphdr_src), IP6_UNICAST, inp); 1216 src_used = ip_2_ip6(ip6_select_source_address(netif, dest));
|
D | icmp6.c | 167 reply_src = ip_2_ip6(ip6_select_source_address(inp, ip6_current_src_addr())); in icmp6_input() 318 reply_src = ip_2_ip6(ip6_select_source_address(netif, reply_dest)); in icmp6_send_response()
|
D | dhcp6.c | 540 dns_addr6 = ip_2_ip6(&dns_addr); in dhcp6_handle_config_reply() 567 ip6_addr_t *ntp_addr6 = ip_2_ip6(&ntp_server_addrs[n]); in dhcp6_handle_config_reply()
|
D | nd6.c | 775 ip6_addr_assign_zone(ip_2_ip6(&rdnss_address), IP6_UNKNOWN, inp); in nd6_input()
|
/third_party/lwip/src/api/ |
D | netdb.c | 378 inet6_addr_from_ip6addr(&sa6->sin6_addr, ip_2_ip6(&addr)); in lwip_getaddrinfo() 382 sa6->sin6_scope_id = ip6_addr_zone(ip_2_ip6(&addr)); in lwip_getaddrinfo()
|
D | sockets.c | 117 inet6_addr_to_ip6addr(ip_2_ip6(ipaddr), &((sin6)->sin6_addr)); \ 118 if (ip6_addr_has_scope(ip_2_ip6(ipaddr), IP6_UNKNOWN)) { \ 119 ip6_addr_set_zone(ip_2_ip6(ipaddr), (u8_t)((sin6)->sin6_scope_id)); \ 136 IP6ADDR_PORT_TO_SOCKADDR((struct sockaddr_in6*)(void*)(sockaddr), ip_2_ip6(ipaddr), port); \ 148 IP6ADDR_PORT_TO_SOCKADDR((struct sockaddr_in6*)(void*)(sockaddr), ip_2_ip6(ipaddr), port) 758 if (IP_IS_V6_VAL(local_addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(&local_addr))) { in lwip_bind() 759 unmap_ipv4_mapped_ipv6(ip_2_ip4(&local_addr), ip_2_ip6(&local_addr)); in lwip_bind() 880 if (IP_IS_V6_VAL(remote_addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(&remote_addr))) { in lwip_connect_internal() 881 unmap_ipv4_mapped_ipv6(ip_2_ip4(&remote_addr), ip_2_ip6(&remote_addr)); in lwip_connect_internal() 1068 ip4_2_ipv4_mapped_ipv6(ip_2_ip6(fromaddr), ip_2_ip4(fromaddr)); in lwip_sock_make_addr() [all …]
|
D | api_msg.c | 2084 msg->err = mld6_joingroup(ip_2_ip6(API_EXPR_REF(msg->msg.jl.netif_addr)), 2085 ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr))); 2087 msg->err = mld6_leavegroup(ip_2_ip6(API_EXPR_REF(msg->msg.jl.netif_addr)), 2088 ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr))); 2148 ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr))); 2151 ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr)));
|
/third_party/lwip/src/apps/mdns/ |
D | mdns.c | 2088 res = mld6_joingroup_netif(netif, ip_2_ip6(&v6group)); in mdns_resp_add_netif() 2138 mld6_leavegroup_netif(netif, ip_2_ip6(&v6group)); in mdns_resp_remove_netif()
|