diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-02 19:22:08 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-02 19:22:08 +0200 |
commit | 05e910cec691f8333383a746876015e99ff088db (patch) | |
tree | 439f0e6d9c3a6d629aa4fd11319f3b53ca697c2b /interface-ip.h | |
parent | aab5615166efb78d793eccd1a5d5ac7aab6324f5 (diff) |
make versioned lists more flexible by using an external comparator
Diffstat (limited to 'interface-ip.h')
-rw-r--r-- | interface-ip.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/interface-ip.h b/interface-ip.h index ba7b6c8..057f0d0 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -24,6 +24,7 @@ struct device_addr { enum device_addr_flags flags; + /* must be last */ unsigned int mask; union if_addr addr; }; @@ -34,10 +35,12 @@ struct device_route { enum device_addr_flags flags; bool keep; - unsigned int mask; - union if_addr addr; union if_addr nexthop; struct device *device; + + /* must be last */ + unsigned int mask; + union if_addr addr; }; void interface_ip_init(struct interface *iface); |