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/netlink.Y | |
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/netlink.Y')
-rw-r--r-- | sysdep/linux/netlink.Y | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdep/linux/netlink.Y b/sysdep/linux/netlink.Y index f8137e23..e9c225a2 100644 --- a/sysdep/linux/netlink.Y +++ b/sysdep/linux/netlink.Y @@ -23,8 +23,6 @@ CF_ADDTO(kern_proto, kern_proto kern_sys_item ';') kern_sys_item: KERNEL TABLE expr { - if ($3 <= 0 || $3 >= NL_NUM_TABLES) - cf_error("Kernel routing table number out of range"); THIS_KRT->sys.table_id = $3; } ; |