From 8c28c034dc1d3aeb440a106b22a5cb3508d1563d Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 13 Jun 2018 16:22:01 +0000 Subject: [PATCH] pbrd, lib: move PBR_STR def. to lib Per request Signed-off-by: Quentin Young --- lib/pbr.h | 2 ++ pbrd/pbr_vty.c | 1 + pbrd/pbr_vty.h | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pbr.h b/lib/pbr.h index 401cfb081..1f42878ec 100644 --- a/lib/pbr.h +++ b/lib/pbr.h @@ -20,6 +20,8 @@ #ifndef _PBR_H #define _PBR_H +#define PBR_STR "Policy Based Routing\n" + /* * A PBR filter * diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index dc194323d..0744ccf70 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -27,6 +27,7 @@ #include "nexthop_group.h" #include "log.h" #include "debug.h" +#include "pbr.h" #include "pbrd/pbr_nht.h" #include "pbrd/pbr_map.h" diff --git a/pbrd/pbr_vty.h b/pbrd/pbr_vty.h index b2da736fd..6e345fd7e 100644 --- a/pbrd/pbr_vty.h +++ b/pbrd/pbr_vty.h @@ -20,7 +20,5 @@ #ifndef __PBR_VTY_H__ #define __PBR_VTY_H__ -#define PBR_STR "Policy Based Routing\n" - extern void pbr_vty_init(void); #endif -- 2.39.2