blob: 5436e9d81253bf13714cab4387d47a376c45c576 [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 IIIa7344c32022-10-31 14:12:27 -070013std::optional<std::tuple<unsigned, InAddrAny>>
14 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