From 4e40b6d61548eda00277c1c59c5a6ace0c1d6055 Mon Sep 17 00:00:00 2001 From: Kaloyan Kovachev Date: Fri, 8 Dec 2017 14:44:15 -0500 Subject: zebra: Add ability to support tags -> realms in linux Linux has the ability to support a concept of 'realms'. This concept allows you to mark routes with a realm id value of 1-255. If you have marked the realm of a route then you can use the tc program to apply policy to the routes. This commit adds the ability of FRR to interpret a tag from (1-255) as a realm when installing into the kernel. Please note that at this point in time there is no way to set policy from within FRR. This must be done outside of it. The normal methodology for setting tags is valid here via a route-map. Finally this is only applied if the --enable-realms configure option is applied. Signed-off-by: Kaloyan Kovachev --- zebra/kernel_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zebra/kernel_socket.c') diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 89c933f90f..d45a502543 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -1050,7 +1050,7 @@ void rtm_read(struct rt_msghdr *rtm) || rtm->rtm_type == RTM_CHANGE) rib_add(AFI_IP, SAFI_UNICAST, VRF_DEFAULT, ZEBRA_ROUTE_KERNEL, 0, zebra_flags, &p, NULL, - &nh, 0, 0, 0, 0); + &nh, 0, 0, 0, 0, 0); else rib_delete(AFI_IP, SAFI_UNICAST, VRF_DEFAULT, ZEBRA_ROUTE_KERNEL, 0, zebra_flags, &p, NULL, @@ -1098,7 +1098,7 @@ void rtm_read(struct rt_msghdr *rtm) || rtm->rtm_type == RTM_CHANGE) rib_add(AFI_IP6, SAFI_UNICAST, VRF_DEFAULT, ZEBRA_ROUTE_KERNEL, 0, zebra_flags, &p, NULL, - &nh, 0, 0, 0, 0); + &nh, 0, 0, 0, 0, 0); else rib_delete(AFI_IP6, SAFI_UNICAST, VRF_DEFAULT, ZEBRA_ROUTE_KERNEL, 0, zebra_flags, &p, NULL, -- cgit v1.2.3