diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2015-11-03 14:42:41 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-11-11 11:40:49 +0100 |
commit | 9ddbfbddf87462bbf50437bdc1d44499a5c223e7 (patch) | |
tree | 31d59d5053d60bc2d43ef3c82969b4d789c58fe7 /sysdep/linux/krt-sys.h | |
parent | 86b4e17001fe4cca6dde7ff523346121c0ae68fe (diff) |
Netlink: Allow more than 256 routing tables.
Since 2.6.19, the netlink API defines RTA_TABLE routing attribute to
allow 32-bit routing table IDs. Using this attribute to index routing
tables at Linux, instead of 8-bit rtm_table field.
Diffstat (limited to 'sysdep/linux/krt-sys.h')
-rw-r--r-- | sysdep/linux/krt-sys.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdep/linux/krt-sys.h b/sysdep/linux/krt-sys.h index e32e4fe1..7fd5f139 100644 --- a/sysdep/linux/krt-sys.h +++ b/sysdep/linux/krt-sys.h @@ -84,18 +84,18 @@ static inline struct ifa * kif_get_primary_ip(struct iface *i) { return NULL; } #define EA_KRT_FEATURE_ALLFRAG EA_KRT_FEATURES | EA_BIT(0x3) - -#define NL_NUM_TABLES 256 - struct krt_params { - int table_id; /* Kernel table ID we sync with */ + u32 table_id; /* Kernel table ID we sync with */ }; struct krt_state { + struct krt_proto *hash_next; }; static inline void krt_sys_init(struct krt_proto *p UNUSED) { } +static inline void krt_sys_preconfig(struct config *c UNUSED) { } +static inline void krt_sys_postconfig(struct krt_config *x UNUSED) { } #endif |