From d6f1bd7b60fc94488dc6a0493a6ec17346a03b2d Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Fri, 16 Apr 2010 13:20:15 +0100 Subject: Compile all daemons, except vtysh, clean but with warnings. Now compiles with all daemons enabled. Split command.h to separate out the functions whish are only used durring command execution -- that is, those used in vty.c and family and in vtysh. --- ospfd/ospf_vty.c | 1 + ospfd/ospf_zebra.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ospfd') diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index adc822a7..0401f38e 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -28,6 +28,7 @@ #include "table.h" #include "vty.h" #include "command.h" +#include "lib/route_types.h" #include "plist.h" #include "log.h" #include "zclient.h" diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 6f0a71ff..513d04d9 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -1086,7 +1086,7 @@ ospf_prefix_list_update (struct prefix_list *plist) { /* Update filter-list in. */ if (PREFIX_NAME_IN (area)) - if (strcmp (PREFIX_NAME_IN (area), plist->name) == 0) + if (strcmp (PREFIX_NAME_IN (area), prefix_list_get_name(plist)) == 0) { PREFIX_LIST_IN (area) = prefix_list_lookup (AFI_IP, PREFIX_NAME_IN (area)); @@ -1095,7 +1095,7 @@ ospf_prefix_list_update (struct prefix_list *plist) /* Update filter-list out. */ if (PREFIX_NAME_OUT (area)) - if (strcmp (PREFIX_NAME_OUT (area), plist->name) == 0) + if (strcmp (PREFIX_NAME_OUT (area), prefix_list_get_name(plist)) == 0) { PREFIX_LIST_IN (area) = prefix_list_lookup (AFI_IP, PREFIX_NAME_OUT (area)); -- cgit v1.2.3