This is needed to embed the subnet route in struct device_addr
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+ struct interface *iface;
+
- unsigned int policy_table;
-
- /* ipv4 only */
- uint32_t broadcast;
- uint32_t point_to_point;
+ union if_addr nexthop;
+ int mtu;
+ unsigned int type;
- time_t preferred_until;
- char *pclass;
/* must be last */
enum device_addr_flags flags;
/* must be last */
enum device_addr_flags flags;
+ int metric; // there can be multiple routes to the same target
+ unsigned int table;
+ unsigned int sourcemask;
- struct interface *iface;
-
+ unsigned int policy_table;
- union if_addr nexthop;
- int mtu;
- unsigned int type;
+ /* ipv4 only */
+ uint32_t broadcast;
+ uint32_t point_to_point;
+
+ /* ipv6 only */
+ time_t preferred_until;
+ char *pclass;
/* must be last */
enum device_addr_flags flags;
/* must be last */
enum device_addr_flags flags;
- int metric; // there can be multiple routes to the same target
- unsigned int table;
- unsigned int sourcemask;
};
struct device_source_table {
};
struct device_source_table {