Home
last modified time | relevance | path

Searched refs:ipv6 (Results 1 - 25 of 106) sorted by relevance

12345

/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dipv6_address_test.cpp42 * @tc.desc: Create(std::string ipv6)
49 std::string ipv6 = "1111:1111:1111:1111:%"; in HWTEST_F() local
50 EXPECT_TRUE(Ipv6Address::Create(ipv6) == Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F()
51 ipv6 = "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"; in HWTEST_F()
52 EXPECT_TRUE(Ipv6Address::Create(ipv6) == Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F()
53 ipv6 = "1111:1111:1111:1111:1111:1111:1111:1111/8"; in HWTEST_F()
54 EXPECT_FALSE(Ipv6Address::Create(ipv6) == Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F()
114 * @tc.desc: Create(std::string ipv6, const size_t prefixLength)
121 std::string ipv6 = "1111:1111:1111:1111:%"; in HWTEST_F() local
123 EXPECT_TRUE(Ipv6Address::Create(ipv6, prefixLengt in HWTEST_F()
138 std::string ipv6 = "1111:1111:1111:1111:%"; HWTEST_F() local
153 std::string ipv6 = "1111:1111:1111:1111:1111:1111:1111:1111"; HWTEST_F() local
166 std::string ipv6 = "1111:1111:1111:1111:1111:1111:1111:1111"; HWTEST_F() local
180 std::string ipv6 = "0101:0101:0101:0101:0101:0101:0101:0101"; HWTEST_F() local
181 EXPECT_EQ(Ipv6Address::GetPrefixByAddr(ipv6, prefixLength), ipv6); HWTEST_F() local
[all...]
H A Ddhcpd_interface_test.cpp50 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in StartDhcpServerTest()
51 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, "", isIpV4); in StartDhcpServerTest()
95 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F()
96 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, "", isIpV4); in HWTEST_F()
110 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F()
112 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, ipAddress, isIpV4); in HWTEST_F()
126 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F()
128 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, ipAddress, isIpV4); in HWTEST_F()
142 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F()
143 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, "", isIpV in HWTEST_F()
[all...]
H A Dbase_address_test.cpp64 Ipv6Address ipv6 = Ipv6Address::Create("fe80::47b1:fa81:b33e:ea6b/64"); in HWTEST_F() local
65 ipv6.Dump(); in HWTEST_F()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dipv6_address.cpp40 bool Ipv6Address::IsValidIPv6(const std::string &ipv6) in IsValidIPv6() argument
43 if (inet_pton(AF_INET6, ipv6.c_str(), &ipv6Addr) != 1 || in IsValidIPv6()
44 ipv6 == INVALID_INET6_ADDRESS.GetAddressWithString()) { in IsValidIPv6()
56 Ipv6Address Ipv6Address::Create(std::string ipv6) in Create() argument
58 std::transform(ipv6.begin(), ipv6.end(), ipv6.begin(), ::tolower); in Create()
59 std::size_t index = ipv6.find("/"); in Create()
64 ip = ipv6; in Create()
67 ip = std::string(ipv6 in Create()
89 struct in6_addr ipv6 = GetIpv6Prefix(ipv6Buf, prefixLength); Create() local
120 Create(std::string ipv6, const size_t prefixLength) Create() argument
129 Create(std::string ipv6, const std::string &mask) Create() argument
161 Ipv6Address(const std::string &ipv6, const size_t prefixLength) Ipv6Address() argument
[all...]
H A Dipv6_address.h33 * @param ipv6 - IPv6 address. [input]
36 static bool IsValidIPv6(const std::string &ipv6);
40 * @param ipv6 - IPv6 address. [input]
66 * @param ipv6 - IPv6 abbreviation, string type such as fe80::0/64. [input]
70 static Ipv6Address Create(std::string ipv6);
111 * @param ipv6 - string of IPv6 address. [input]
116 static Ipv6Address Create(std::string ipv6, const size_t prefixLength);
121 * @param ipv6 - string of IPv6 address. [input]
126 static Ipv6Address Create(std::string ipv6, const std::string &mask);
186 * @param ipv6
[all...]
H A Dip_tools.cpp91 std::vector<unsigned char> ipv6; in ConvertIpv6Address() local
105 ipv6.push_back(CheckDataLegal(valueFromPos0, HEX_FORM)); in ConvertIpv6Address()
106 ipv6.push_back(CheckDataLegal(valueFromPos2, HEX_FORM)); in ConvertIpv6Address()
118 ipv6.push_back(CheckDataLegal(addressFromPos0, HEX_FORM)); in ConvertIpv6Address()
119 ipv6.push_back(CheckDataLegal(addressFromPos2, HEX_FORM)); in ConvertIpv6Address()
121 addressIpv6.assign(ipv6.begin(), ipv6.end()); in ConvertIpv6Address()
H A Ddhcpd_interface.h56 * @param ipv6 - The ipv6 address of interface
61 bool StartDhcpServerFromInterface(const std::string &ifaceName, Ipv4Address &ipv4, Ipv6Address &ipv6,
88 bool AssignIpAddr(Ipv4Address &ipv4, Ipv6Address &ipv6, const std::vector<Ipv4Address> &vecIpv4Addr,
90 bool ApplyIpAddress(const std::string &ifaceName, const Ipv4Address &ipv4, const Ipv6Address &ipv6);
/foundation/communication/netstack/frameworks/js/napi/socket/options/src/
H A Dnet_address.cpp46 in6_addr ipv6{}; in SetIpAddress()
47 if (inet_pton(AF_INET6, address.c_str(), &ipv6) > 0) { in SetIpAddress()
64 in6_addr ipv6{}; in SetIpAddress()
65 if (inet_pton(AF_INET6, address.c_str(), &ipv6) > 0) { in SetIpAddress()
90 in6_addr ipv6{}; in SetIpAddressInner()
91 if (inet_pton(AF_INET6, subAddr.c_str(), &ipv6) > 0) { in SetIpAddressInner()
112 struct in6_addr ipv6; in SetAddress() local
113 if (inet_pton(AF_INET6, address.c_str(), &ipv6) > 0) { in SetAddress()
138 struct sockaddr_in6 *ipv6 = reinterpret_cast<struct sockaddr_in6 *>(res->ai_addr); in SetAddress() local
139 addr = &(ipv6 in SetAddress()
[all...]
/third_party/ltp/testcases/network/stress/multicast/grp-operation/
H A Dmcast-lib.sh31 SYSCTL_ALL_FORCE_MLD_VERSION=$(sysctl -b net.ipv6.conf.all.force_mld_version)
32 SYSCTL_FORCE_MLD_VERSION=$(sysctl -b net.ipv6.conf.$(tst_iface).force_mld_version)
33 SYSCTL_MLD_MAX_MSF=$(sysctl -b net.ipv6.mld_max_msf)
35 ROD sysctl -q -w net.ipv6.conf.all.force_mld_version=0
36 ROD sysctl -q -w net.ipv6.conf.$(tst_iface).force_mld_version=0
37 ROD sysctl -q -w net.ipv6.mld_max_msf=$default_mld_max_msf
77 [ -n "$SYSCTL_ALL_FORCE_MLD_VERSION" ] && sysctl -q -w net.ipv6.conf.all.force_mld_version=$SYSCTL_ALL_FORCE_MLD_VERSION
78 [ -n "$SYSCTL_FORCE_MLD_VERSION" ] && sysctl -q -w net.ipv6.conf.$(tst_iface).force_mld_version=$SYSCTL_FORCE_MLD_VERSION
79 [ -n "$SYSCTL_MLD_MAX_MSF" ] && sysctl -q -w net.ipv6.mld_max_msf=$SYSCTL_MLD_MAX_MSF
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmipv6.h152 #define IPV6_MCAST_TO_ETHER_MCAST(ipv6, ether) \
156 ether[2] = ipv6[12]; \
157 ether[3] = ipv6[13]; \
158 ether[4] = ipv6[14]; \
159 ether[5] = ipv6[15]; \
/third_party/curl/tests/libtest/
H A Dlibprereq.c28 int ipv6; member
39 if(prereq_cb->ipv6) { in prereq_callback()
61 prereq_cb.ipv6 = 0; in test()
67 if(strstr(URL, "#ipv6")) { in test()
69 prereq_cb.ipv6 = 1; in test()
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/netfirewall/
H A Dnetfirewall_match.h72 struct in6_addr tmp = tuple->ipv6.saddr; in swap_tuple_addrs()
73 tuple->ipv6.saddr = tuple->ipv6.daddr; in swap_tuple_addrs()
74 tuple->ipv6.daddr = tmp; in swap_tuple_addrs()
98 load_l3_v6_addrs(skb, l3_nhoff, &(tuple->ipv6.saddr), &(tuple->ipv6.daddr)); in get_match_tuple()
186 memcpy(&(lpm_key.data), &(tuple->ipv6.saddr), sizeof(lpm_key.data)); in match_addrs()
193 memcpy(&(lpm_key.data), &(tuple->ipv6.daddr), sizeof(lpm_key.data)); in match_addrs()
365 .data = tuple->ipv6.saddr, in MatchDomain()
H A Dnetfirewall.h91 ct_tpl->ipv6.saddr = match_tpl->ipv6.saddr; in get_ct_tuple()
92 ct_tpl->ipv6.daddr = match_tpl->ipv6.daddr; in get_ct_tuple()
H A Dnetfirewall_event.h81 ev.ipv6.saddr = tuple->ipv6.saddr; in log_intercept()
82 ev.ipv6.daddr = tuple->ipv6.daddr; in log_intercept()
/third_party/lwip/src/
H A DFilelists.mk65 CORE6FILES=$(LWIPDIR)/core/ipv6/dhcp6.c \
66 $(LWIPDIR)/core/ipv6/ethip6.c \
67 $(LWIPDIR)/core/ipv6/icmp6.c \
68 $(LWIPDIR)/core/ipv6/inet6.c \
69 $(LWIPDIR)/core/ipv6/ip6.c \
70 $(LWIPDIR)/core/ipv6/ip6_addr.c \
71 $(LWIPDIR)/core/ipv6/ip6_frag.c \
72 $(LWIPDIR)/core/ipv6/mld6.c \
73 $(LWIPDIR)/core/ipv6/nd6.c
/third_party/node/lib/internal/dns/
H A Dutils.js164 setLocalAddress(ipv4, ipv6) {
167 if (ipv6 !== undefined) {
168 validateString(ipv6, 'ipv6');
171 this._handle.setLocalAddress(ipv4, ipv6);
174 this[kSnapshotStates].localAddress = { ipv4, ipv6 };
191 const { ipv4, ipv6 } = localAddress;
192 this._handle.setLocalAddress(ipv4, ipv6);
/third_party/curl/tests/
H A Dservers.pm332 if($server =~ /^(httptls)(\+)(ext|srp)(\d*)(-ipv6|)$/) {
452 if($server =~ /^(ftp|imap|pop3|smtp)s?(\d*)(-ipv6|)$/) {
462 if($server =~ /^(ftp|http|imap|pop3|smtp)s((\d*)(-ipv6|-unix|))$/) {
466 elsif($server =~ /^(ftp|http|imap|pop3|smtp)((\d*)(-ipv6|-unix|))$/) {
470 elsif($server =~ /^(socks)((\d*)(-ipv6|))$/) {
474 elsif($server =~ /^(ssh)((\d*)(-ipv6|))$/) {
1119 if($alt eq "ipv6") {
1412 my ($verb, $ipv6) = @_;
1414 my $ip = ($ipv6 && ($ipv6
[all...]
H A Dserverhelp.pm107 /^((ftp|http|imap|pop3|smtp|http-pipe)s?)(\d*)(-ipv6|)$/) {
113 /^(tftp|sftp|socks|ssh|rtsp|gopher|httptls)(\d*)(-ipv6|)$/) {
137 ($ipver =~ /^(4|6|ipv4|ipv6|-ipv4|-ipv6|unix)$/));
/third_party/libwebsockets/lib/core-net/
H A Dnetwork.c33 int ipv6 = 0; in interface_to_sa() local
36 ipv6 = LWS_IPV6_ENABLED(vh); in interface_to_sa()
40 return lws_interface_to_sa(ipv6, ifname, addr, addrlen); in interface_to_sa()
661 int sects = 0, ipv6 = !!strchr(ads, ':'), skip_point = -1, dm = 0; in lws_parse_numeric_address() local
669 if (!ipv6 && ts.len < 7) in lws_parse_numeric_address()
672 if (ipv6 && ts.len < 2) in lws_parse_numeric_address()
675 if (!ipv6 && max_len < 4) in lws_parse_numeric_address()
678 if (ipv6 && max_len < 16) in lws_parse_numeric_address()
681 if (ipv6) in lws_parse_numeric_address()
689 if (ipv6) { in lws_parse_numeric_address()
[all...]
/foundation/communication/dhcp/test/fuzztest/clientstub_fuzzer/
H A Dclientstub_fuzzer.cpp47 void OnStartDhcpClientTest(const std::string& ifname, size_t size, bool ipv6) in OnStartDhcpClientTest() argument
54 datas.WriteBool(ipv6); in OnStartDhcpClientTest()
61 void OnStopDhcpClientTest(const std::string& ifname, size_t size, bool ipv6) in OnStopDhcpClientTest() argument
68 datas.WriteBool(ipv6); in OnStopDhcpClientTest()
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/data/
H A Dlink_info_test.cpp211 std::string ipv6 = "2001:0db8:85a3:0000:0000:8a2e:0370:7334"; in HWTEST_F() local
212 linkInfo.SetLocalIpv6(ipv6); in HWTEST_F()
213 EXPECT_EQ(linkInfo.GetLocalIpv6(), ipv6); in HWTEST_F()
215 linkInfo.SetRemoteIpv6(ipv6); in HWTEST_F()
216 EXPECT_EQ(linkInfo.GetRemoteIpv6(), ipv6); in HWTEST_F()
/third_party/ltp/testcases/kernel/containers/netns/
H A Dnetns_helper.sh26 # IP addresses of veth0 (IP0) and veth1 (IP1) devices (ipv4/ipv6 variant
43 # Adds "inet6 add" to the 'ifconfig' arguments which is required for the ipv6
53 # only if ipv6 variant of test case is used (determined by IP_VERSION argument).
63 # * IP_VERSION (ipv4|ipv6)
64 # Version of IP. (ipv4|ipv6)
131 ipv6)
145 tst_brk TBROK "second argument must be an ip version (ipv4|ipv6)"
219 # This applies only for ipv6 variant:
225 # with EADDRNOTAVAIL) which may cause problems for tests using ipv6.
227 tee /proc/sys/net/ipv6/con
[all...]
H A Dnetns_lib.sh36 # Adds "inet6 add" to the 'ifconfig' arguments which is required for the ipv6
170 # This applies only for ipv6 variant:
176 # with EADDRNOTAVAIL) which may cause problems for tests using ipv6.
179 tee /proc/sys/net/ipv6/conf/veth0/accept_dad \
180 /proc/sys/net/ipv6/conf/veth0/accept_ra >/dev/null
182 tee /proc/sys/net/ipv6/conf/veth1/accept_dad \
183 /proc/sys/net/ipv6/conf/veth1/accept_ra >/dev/null
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/
H A Dmac_data.c207 WIFI_ROM_TEXT static hi_u8 mac_get_ipv6_data_type(oal_ipv6hdr_stru *ipv6) in mac_get_ipv6_data_type() argument
211 if (mac_is_nd(ipv6)) { in mac_get_ipv6_data_type()
213 } else if (mac_is_dhcp6(ipv6)) { in mac_get_ipv6_data_type()
216 } else if (mac_is_rpl(ipv6)) { in mac_get_ipv6_data_type()
/third_party/libwebsockets/lib/core-net/client/
H A Dconnect2.c48 if (wsi->ipv6) { in lws_getaddrinfo46()
282 * start off allowing ipv6 on connection if vhost allows it
284 wsi->ipv6 = LWS_IPV6_ENABLED(wsi->a.vhost);
291 if (wsi->ipv6 && iface &&
294 wsi->ipv6 = 0;

Completed in 13 milliseconds

12345