]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/rt.h
zebra: Share route type checking macros
[mirror_frr.git] / zebra / rt.h
index 08b51fcc0bcf4ba5fdf11df10bd030049c3b2637..04576671fe54f085409b4759a04a4ee8ecb0574f 100644 (file)
 extern "C" {
 #endif
 
-#define RSYSTEM_ROUTE(type)                                            \
-       ((type) == ZEBRA_ROUTE_KERNEL || (type) == ZEBRA_ROUTE_CONNECT)
+#define RKERNEL_ROUTE(type) ((type) == ZEBRA_ROUTE_KERNEL)
+
+#define RSYSTEM_ROUTE(type)                                                    \
+       ((RKERNEL_ROUTE(type)) || (type) == ZEBRA_ROUTE_CONNECT)
 
 /*
  * Update or delete a route, LSP, or pseudowire from the kernel,