projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netifd: Make interface identifier of delegated IPv6 address configurable
[project/netifd.git]
/
interface.h
diff --git
a/interface.h
b/interface.h
index
90087fc
..
8eeb7db
100644
(file)
--- a/
interface.h
+++ b/
interface.h
@@
-41,6
+41,12
@@
enum interface_config_state {
IFC_REMOVE
};
IFC_REMOVE
};
+enum interface_id_selection_type {
+ IFID_FIXED,
+ IFID_RANDOM,
+ IFID_EUI64
+};
+
enum interface_update_flags {
IUF_ADDRESS = (1 << 0),
IUF_ROUTE = (1 << 1),
enum interface_update_flags {
IUF_ADDRESS = (1 << 0),
IUF_ROUTE = (1 << 1),
@@
-139,6
+145,8
@@
struct interface {
unsigned int ip6table;
/* IPv6 assignment parameters */
unsigned int ip6table;
/* IPv6 assignment parameters */
+ enum interface_id_selection_type assignment_iface_id_selection;
+ struct in6_addr assignment_fixed_iface_id;
uint8_t assignment_length;
int32_t assignment_hint;
struct list_head assignment_classes;
uint8_t assignment_length;
int32_t assignment_hint;
struct list_head assignment_classes;