blob: f35c25f5f052f9778c8da86f396ad1341920a04d [file] [log] [blame]
William A. Kennington IIIa7344c32022-10-31 14:12:27 -07001#pragma once
2#include "types.hpp"
3
4#include <optional>
5#include <string_view>
6#include <tuple>
7
8namespace phosphor::network::netlink
9{
William A. Kennington III6a923632022-11-06 18:17:33 -080010
William A. Kennington III1aeacc92022-11-13 18:26:45 -080011InterfaceInfo intfFromRtm(std::string_view msg);
12
William A. Kennington III9b2a20d2023-06-17 14:05:48 -070013std::optional<std::tuple<unsigned, stdplus::InAnyAddr>>
William A. Kennington IIIa7344c32022-10-31 14:12:27 -070014 gatewayFromRtm(std::string_view msg);
William A. Kennington III6a923632022-11-06 18:17:33 -080015
16AddressInfo addrFromRtm(std::string_view msg);
17
William A. Kennington IIIa8426902022-11-07 15:37:41 -080018NeighborInfo neighFromRtm(std::string_view msg);
19
William A. Kennington III6a923632022-11-06 18:17:33 -080020} // namespace phosphor::network::netlink