sd-netlink: introduce rtattr_read_nexthop()

This commit is contained in:
Yu Watanabe
2020-10-08 02:51:23 +09:00
parent d6ad41e27d
commit 2fe1d557e5
3 changed files with 92 additions and 12 deletions
-12
View File
@@ -15,18 +15,6 @@
typedef struct Manager Manager;
typedef struct Network Network;
/* See struct rtvia in rtnetlink.h */
typedef struct RouteVia {
uint16_t family;
union in_addr_union address;
} _packed_ RouteVia;
typedef struct MultipathRoute {
RouteVia gateway;
int ifindex;
uint32_t weight;
} MultipathRoute;
typedef struct Route {
Network *network;
NetworkConfigSection *section;