diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-12-01 16:24:11 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-12-01 16:39:35 +0300 |
commit | 3cc7fd0165e096be25761710b66b44fda9d09190 (patch) | |
tree | b6eef91b863c78858be060902a515b26a7b2bf4b /accel-pppd/ipdb.h | |
parent | ebc0ec740280efd2ea7f22abbb84eda53ab06632 (diff) | |
download | accel-ppp-3cc7fd0165e096be25761710b66b44fda9d09190.tar.gz accel-ppp-3cc7fd0165e096be25761710b66b44fda9d09190.zip |
ipv6: if assigned prefix is <= 64 add it as address else add it as route
Diffstat (limited to 'accel-pppd/ipdb.h')
-rw-r--r-- | accel-pppd/ipdb.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/accel-pppd/ipdb.h b/accel-pppd/ipdb.h index 7f61b43..d461c88 100644 --- a/accel-pppd/ipdb.h +++ b/accel-pppd/ipdb.h @@ -1,8 +1,6 @@ #ifndef IPDB_H #define IPDB_H -#include <netinet/in.h> - #include "ppp.h" #include "list.h" @@ -20,6 +18,7 @@ struct ipv6db_addr_t struct in6_addr addr; int prefix_len; int flag_auto:1; + int installed:1; }; struct ipv6db_item_t @@ -40,7 +39,7 @@ struct ipv6db_prefix_t struct ipdb_t { struct list_head entry; - + struct ipv4db_item_t *(*get_ipv4)(struct ap_session *ses); void (*put_ipv4)(struct ap_session *ses, struct ipv4db_item_t *); |