summaryrefslogtreecommitdiffhomepage
path: root/interface.h
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-05-30 16:32:00 +0200
committerSteven Barth <steven@midlink.org>2013-05-30 16:32:00 +0200
commitda279866a33682e590428b740b4564a4b2e6f780 (patch)
treee14e9dd8afd24a635eb2c1e924b4b910b33d2e9d /interface.h
parent91228b6efb36c8954e3d23c0801f54ee984d5a0a (diff)
IPv6: reorganize prefix assignment
* put parameters in a more suitable place * add support for prefix classes
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/interface.h b/interface.h
index d186903..13761f8 100644
--- a/interface.h
+++ b/interface.h
@@ -60,9 +60,6 @@ struct interface_ip_settings {
bool no_defaultroute;
bool no_dns;
- uint8_t assignment_length;
- int32_t assignment_hint;
-
struct vlist_tree addr;
struct vlist_tree route;
struct vlist_tree prefix;
@@ -76,6 +73,11 @@ struct interface_data {
struct blob_attr data[];
};
+struct interface_assignment_class {
+ struct list_head head;
+ char name[];
+};
+
/*
* interface configuration
*/
@@ -121,6 +123,11 @@ struct interface {
unsigned int ip4table;
unsigned int ip6table;
+ /* IPv6 assignment parameters */
+ uint8_t assignment_length;
+ int32_t assignment_hint;
+ struct list_head assignment_classes;
+
/* errors/warnings while trying to bring up the interface */
struct list_head errors;