projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
interface: do not process hotplug events for link up event
[project/netifd.git]
/
interface-ip.h
diff --git
a/interface-ip.h
b/interface-ip.h
index c0a3b92d9f1f2f922ede59c7ce75147364ace303..bbef62ceb305f5f82ba8c1ffa2591ba39a92b3bb 100644
(file)
--- a/
interface-ip.h
+++ b/
interface-ip.h
@@
-81,48
+81,50
@@
struct device_prefix {
char pclass[];
};
char pclass[];
};
-struct device_
addr
{
+struct device_
route
{
struct vlist_node node;
struct vlist_node node;
+ struct interface *iface;
+
bool enabled;
bool enabled;
+ bool keep;
bool failed;
bool failed;
- unsigned int policy_table;
- /* ipv4 only */
- uint32_t broadcast;
- uint32_t point_to_point;
-
- /* ipv6 only */
+ union if_addr nexthop;
+ int mtu;
+ unsigned int type;
time_t valid_until;
time_t valid_until;
- 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 mask;
unsigned int mask;
+ unsigned int sourcemask;
union if_addr addr;
union if_addr addr;
+ union if_addr source;
};
};
-struct device_
route
{
+struct device_
addr
{
struct vlist_node node;
struct vlist_node node;
- struct interface *iface;
-
bool enabled;
bool enabled;
- bool keep;
bool failed;
bool failed;
+ unsigned int policy_table;
- union if_addr nexthop;
- int mtu;
- unsigned int type;
+ struct device_route subnet;
+
+ /* ipv4 only */
+ uint32_t broadcast;
+ uint32_t point_to_point;
+
+ /* ipv6 only */
time_t valid_until;
time_t valid_until;
+ 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 mask;
unsigned int mask;
- unsigned int sourcemask;
union if_addr addr;
union if_addr addr;
- union if_addr source;
};
struct device_source_table {
};
struct device_source_table {