Home
last modified time | relevance | path

Searched full:ipaddress (Results 1 – 25 of 92) sorted by relevance

1234

/openbmc/phosphor-user-manager/test/
H A Dutils_test.cpp26 std::string ipAddress = "ldap://0.0.0.0"; in TEST_F() local
27 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
29 ipAddress = "ldap://9.3.185.83"; in TEST_F()
30 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
32 ipAddress = "ldaps://9.3.185.83"; in TEST_F()
33 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
35 ipAddress = "ldap://9.3.a.83"; in TEST_F()
36 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
38 ipAddress = "ldap://9.3.185.a"; in TEST_F()
39 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
[all …]
/openbmc/phosphor-snmp/test/
H A Dtest_snmp_util.cpp22 std::string ipaddress = "0.0.0.0"; in TEST() local
23 EXPECT_EQ(ipaddress, resolveAddress(ipaddress)); in TEST()
25 ipaddress = "9.3.185.83"; in TEST()
26 EXPECT_EQ(ipaddress, resolveAddress(ipaddress)); in TEST()
29 ipaddress = "9.3.185.a"; in TEST()
30 EXPECT_THROW(resolveAddress(ipaddress), InternalFailure); in TEST()
32 ipaddress = "9.3.a.83"; in TEST()
33 EXPECT_THROW(resolveAddress(ipaddress), InternalFailure); in TEST()
35 ipaddress = "x.x.x.x"; in TEST()
36 EXPECT_THROW(resolveAddress(ipaddress), InternalFailure); in TEST()
[all …]
H A Dtest_snmp_conf_manager.cpp42 std::string createSNMPClient(std::string ipaddress, uint16_t port) in createSNMPClient() argument
44 return manager.client(ipaddress, port); in createSNMPClient()
52 bool isClientExist(const std::string& ipaddress) in isClientExist() argument
56 if (val.second.get()->address() == ipaddress) in isClientExist()
64 void deleteSNMPClient(const std::string& ipaddress) in deleteSNMPClient() argument
69 if (val.second.get()->address() == ipaddress) in deleteSNMPClient()
/openbmc/bmcweb/include/
H A Dasync_resolve.hpp16 inline bool endpointFromResolveTuple(const std::vector<uint8_t>& ipAddress, in endpointFromResolveTuple() argument
19 if (ipAddress.size() == 4) // ipv4 address in endpointFromResolveTuple()
23 {ipAddress[0], ipAddress[1], ipAddress[2], ipAddress[3]}); in endpointFromResolveTuple()
26 else if (ipAddress.size() == 16) // ipv6 address in endpointFromResolveTuple()
30 {ipAddress[0], ipAddress[1], ipAddress[2], ipAddress[3], in endpointFromResolveTuple()
31 ipAddress[4], ipAddress[5], ipAddress[6], ipAddress[7], in endpointFromResolveTuple()
32 ipAddress[8], ipAddress[9], ipAddress[10], ipAddress[11], in endpointFromResolveTuple()
33 ipAddress[12], ipAddress[13], ipAddress[14], ipAddress[15]}); in endpointFromResolveTuple()
/openbmc/webui-vue/src/views/Settings/Network/
H A DModalIpv4.vue12 :label="$t('pageNetwork.modal.ipAddress')"
13 label-for="ipAddress"
16 id="ipAddress"
17 v-model="form.ipAddress"
19 :state="getValidationState(v$.form.ipAddress)"
20 @input="v$.form.ipAddress.$touch()"
23 <template v-if="v$.form.ipAddress.required.$invalid">
26 <template v-if="v$.form.ipAddress.ipAddress.$invalid">
48 <template v-if="v$.form.gateway.ipAddress.$invalid">
72 <template v-if="v$.form.subnetMask.ipAddress.$invalid">
[all …]
H A DModalIpv6.vue12 :label="$t('pageNetwork.modal.ipAddress')"
13 label-for="ipAddress"
16 id="ipAddress"
17 v-model="form.ipAddress"
19 :state="getValidationState(v$.form.ipAddress)"
20 @input="v$.form.ipAddress.$touch()"
23 <template v-if="v$.form.ipAddress.required.$invalid">
26 <template v-if="v$.form.ipAddress.validateIpv6.$invalid">
97 ipAddress: '',
105 ipAddress: {
[all …]
H A DModalDns.vue26 <template v-if="v$.form.staticDns.ipAddress.$invalid">
49 import { ipAddress, required } from '@vuelidate/validators';
72 ipAddress,
/openbmc/webui-vue/src/views/Settings/SnmpAlerts/
H A DModalAddDestination.vue12 :label="$t('pageSnmpAlerts.modal.ipaddress')"
17 v-model="form.ipAddress"
18 :state="getValidationState(v$.form.ipAddress)"
19 data-test-id="snmpAlerts-input-ipAddress"
21 @blur="v$.form.ipAddress.$touch()"
25 <template v-if="v$.form.ipAddress.required.$invalid">
28 <template v-if="v$.form.ipAddress.ipAddress.$invalid">
85 import { required, ipAddress, minValue, maxValue } from '@vuelidate/validators';
101 ipaddress: null,
109 ipAddress: {
[all …]
/openbmc/phosphor-networkd/src/
H A Dipaddress.cpp1 #include "ipaddress.hpp"
49 IPAddress::IPAddress(sdbusplus::bus_t& bus, std::string_view objRoot, in IPAddress() function in phosphor::network::IPAddress
52 IPAddress(bus, makeObjPath(objRoot, addr), parent, addr, origin) in IPAddress()
55 IPAddress::IPAddress(sdbusplus::bus_t& bus, in IPAddress() function in phosphor::network::IPAddress
70 std::string IPAddress::address(std::string /*ipAddress*/) in address()
74 uint8_t IPAddress::prefixLength(uint8_t /*value*/) in prefixLength()
78 std::string IPAddress::gateway(std::string /*gateway*/) in gateway()
82 IP::Protocol IPAddress::type(IP::Protocol /*type*/) in type()
86 IP::AddressOrigin IPAddress::origin(IP::AddressOrigin /*origin*/) in origin()
90 void IPAddress::delete_() in delete_()
[all …]
H A Dipaddress.hpp26 /** @class IPAddress
27 * @brief OpenBMC IPAddress implementation.
32 class IPAddress : public IPIfaces class
40 * @param[in] origin - origin of ipaddress(dhcp/static/SLAAC/LinkLocal).
42 IPAddress(sdbusplus::bus_t& bus, std::string_view objRoot,
46 std::string address(std::string ipAddress) override;
74 IPAddress(sdbusplus::bus_t& bus, sdbusplus::message::object_path objPath,
H A Dethernet_interface.hpp3 #include "ipaddress.hpp"
96 /** @brief Persistent map of IPAddress dbus objects and their names */
97 std::unordered_map<stdplus::SubnetAny, std::unique_ptr<IPAddress>> addrs;
122 /** @brief Function to create ipAddress dbus object.
124 * @param[in] ipAddress- IP address.
128 ObjectPath ip(IP::Protocol addressType, std::string ipAddress,
132 * @param[in] ipAddress - IP address.
135 ObjectPath neighbor(std::string ipAddress, std::string macAddress) override;
H A Dneighbor.cpp40 NeighborObj::ipAddress(stdplus::toStr(addr), true); in Neighbor()
69 std::string Neighbor::ipAddress(std::string /*ipAddress*/) in ipAddress() function in phosphor::network::Neighbor
H A Dethernet_interface.cpp201 addrs.emplace(info.ifaddr, std::make_unique<IPAddress>( in addAddr()
266 ObjectPath EthernetInterface::ip(IP::Protocol protType, std::string ipaddress, in ip() argument
275 addr.emplace(stdplus::fromStr<stdplus::In4Addr>(ipaddress)); in ip()
278 addr.emplace(stdplus::fromStr<stdplus::In6Addr>(ipaddress)); in ip()
290 lg2::error("Invalid IP {NET_IP}: {ERROR}", "NET_IP", ipaddress, "ERROR", in ip()
292 elog<InvalidArgument>(Argument::ARGUMENT_NAME("ipaddress"), in ip()
293 Argument::ARGUMENT_VALUE(ipaddress.c_str())); in ip()
318 std::make_unique<IPAddress>(bus, std::string_view(objPath), *this, in ip()
336 ObjectPath EthernetInterface::neighbor(std::string ipAddress, in neighbor() argument
342 addr.emplace(stdplus::fromStr<stdplus::InAnyAddr>(ipAddress)); in neighbor()
[all …]
H A Dneighbor.hpp49 using NeighborObj::ipAddress;
50 std::string ipAddress(std::string) override;
/openbmc/phosphor-snmp/
H A Dsnmp_util.cpp66 char ipaddress[INET6_ADDRSTRLEN]{0}; in resolveAddress() local
67 result = getnameinfo(addrPtr->ai_addr, addrPtr->ai_addrlen, ipaddress, in resolveAddress()
68 sizeof(ipaddress), NULL, 0, NI_NUMERICHOST); in resolveAddress()
77 int isValid = inet_pton(AF_INET, ipaddress, buf); in resolveAddress()
86 int isValid6 = inet_pton(AF_INET6, ipaddress, buf); in resolveAddress()
95 return ipaddress; in resolveAddress()
132 auto ipaddress = phosphor::network::resolveAddress(address); in getManagers() local
133 auto mgr = std::move(ipaddress); in getManagers()
H A Dsnmp_serialize.cpp50 std::string ipaddress{}; in load() local
53 archive(ipaddress, port); in load()
55 manager.address(ipaddress); in load()
/openbmc/linux/net/ipv4/netfilter/
H A Dnf_nat_snmp_basic.asn140 ipAddress-value
41 IpAddress,
59 IpAddress ::=
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-ipaddress_1.0.23.bb1 SUMMARY = "Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2."
2 HOMEPAGE = "https://github.com/phihag/ipaddress"
/openbmc/phosphor-networkd/yaml/xyz/openbmc_project/Network/IP/
H A DCreate.interface.yaml5 Create ipaddress object.
27 The path for the created ipaddress object.
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/
H A Dhyp_ethernet_interface.hpp62 /** @brief Function to create ipAddress dbus object.
64 * @param[in] ipAddress- IP address.
69 ObjectPath ip(HypIP::Protocol /*addressType*/, std::string /*ipAddress*/, in ip()
/openbmc/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py9 import ipaddress
199 return int(ipaddress.IPv4Address(ip)), int(ipaddress.IPv4Address(mask))
855 lambda x: str(ipaddress.IPv4Address(x)),
862 lambda x: str(ipaddress.IPv4Address(x)),
909 lambda x: str(ipaddress.IPv6Address(x)),
911 lambda x: ipaddress.IPv6Address(x),
916 lambda x: str(ipaddress.IPv6Address(x)),
918 lambda x: ipaddress.IPv6Address(x),
1064 lambda x: str(ipaddress.IPv4Address(x)),
1071 lambda x: str(ipaddress.IPv4Address(x)),
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dbmc_network_utils.py9 import ipaddress
50 return ipaddress.ip_network("0.0.0.0/" + netmask).prefixlen
62 return ipaddress.ip_network("0.0.0.0/" + prefix_len).netmask
/openbmc/linux/Documentation/scsi/
H A Dcxgb3i.rst70 iface.ipaddress = <iscsi ip address>
72 * if iface.ipaddress is specified, <iscsi ip address> needs to be either the
/openbmc/bmcweb/http/
H A Dhttp_request.hpp29 boost::asio::ip::address ipAddress; member
69 ipAddress = boost::asio::ip::address(); in clear()
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/
H A Dmedia-tomb.patch18 +$ipaddress = &get_my_address();
19 +print &text('index_desc', $ipaddress),"<p>\n";

1234