ipaddress.hpp (89d734b9886c40fa530f9fd6e67eb87b6955ec08) ipaddress.hpp (9b2a20d3cfa1131521456b9ebfde7a7bb8b234bb)
1#pragma once
2#include "types.hpp"
3
4#include <sdbusplus/bus.hpp>
5#include <sdbusplus/message/native_types.hpp>
6#include <sdbusplus/server/object.hpp>
7#include <stdplus/pinned.hpp>
8#include <xyz/openbmc_project/Network/IP/server.hpp>

--- 26 unchanged lines hidden (view full) ---

35 /** @brief Constructor to put object onto bus at a dbus path.
36 * @param[in] bus - Bus to attach to.
37 * @param[in] objRoot - Path to attach at.
38 * @param[in] parent - Parent object.
39 * @param[in] addr - The ip address and prefix.
40 * @param[in] origin - origin of ipaddress(dhcp/static/SLAAC/LinkLocal).
41 */
42 IPAddress(sdbusplus::bus_t& bus, std::string_view objRoot,
1#pragma once
2#include "types.hpp"
3
4#include <sdbusplus/bus.hpp>
5#include <sdbusplus/message/native_types.hpp>
6#include <sdbusplus/server/object.hpp>
7#include <stdplus/pinned.hpp>
8#include <xyz/openbmc_project/Network/IP/server.hpp>

--- 26 unchanged lines hidden (view full) ---

35 /** @brief Constructor to put object onto bus at a dbus path.
36 * @param[in] bus - Bus to attach to.
37 * @param[in] objRoot - Path to attach at.
38 * @param[in] parent - Parent object.
39 * @param[in] addr - The ip address and prefix.
40 * @param[in] origin - origin of ipaddress(dhcp/static/SLAAC/LinkLocal).
41 */
42 IPAddress(sdbusplus::bus_t& bus, std::string_view objRoot,
43 stdplus::PinnedRef<EthernetInterface> parent, IfAddr addr,
44 IP::AddressOrigin origin);
43 stdplus::PinnedRef<EthernetInterface> parent,
44 stdplus::SubnetAny addr, IP::AddressOrigin origin);
45
46 std::string address(std::string ipAddress) override;
47 uint8_t prefixLength(uint8_t) override;
48 std::string gateway(std::string gateway) override;
49 IP::Protocol type(IP::Protocol type) override;
50 IP::AddressOrigin origin(IP::AddressOrigin origin) override;
51
52 /** @brief Delete this d-bus object.

--- 14 unchanged lines hidden (view full) ---

67 private:
68 /** @brief Parent Object. */
69 stdplus::PinnedRef<EthernetInterface> parent;
70
71 /** @brief Dbus object path */
72 sdbusplus::message::object_path objPath;
73
74 IPAddress(sdbusplus::bus_t& bus, sdbusplus::message::object_path objPath,
45
46 std::string address(std::string ipAddress) override;
47 uint8_t prefixLength(uint8_t) override;
48 std::string gateway(std::string gateway) override;
49 IP::Protocol type(IP::Protocol type) override;
50 IP::AddressOrigin origin(IP::AddressOrigin origin) override;
51
52 /** @brief Delete this d-bus object.

--- 14 unchanged lines hidden (view full) ---

67 private:
68 /** @brief Parent Object. */
69 stdplus::PinnedRef<EthernetInterface> parent;
70
71 /** @brief Dbus object path */
72 sdbusplus::message::object_path objPath;
73
74 IPAddress(sdbusplus::bus_t& bus, sdbusplus::message::object_path objPath,
75 stdplus::PinnedRef<EthernetInterface> parent, IfAddr addr,
76 IP::AddressOrigin origin);
75 stdplus::PinnedRef<EthernetInterface> parent,
76 stdplus::SubnetAny addr, IP::AddressOrigin origin);
77};
78
79} // namespace network
80} // namespace phosphor
77};
78
79} // namespace network
80} // namespace phosphor