From 3b424979f54c6b128d1ee8a7c33d072d321f2f0c Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 13 Oct 2003 09:47:32 +0000 Subject: 2003-10-13 Jay Fenlason * lib/zebra.h: define UINT32_MAX for those systems which do not provide it. * bgp_attr.h: define BGP_MED_MAX. * bgp_route.c: update defines/constants to BGP_MED_MAX. * bgp_routemap.c: ditto. clean up route_match_metric_compile slightly to avoid unneccesary XMALLOC. --- bgpd/bgp_route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bgpd/bgp_route.c') diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 736b6be5..9259f5a6 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -146,7 +146,7 @@ bgp_med_value (struct attr *attr, struct bgp *bgp) else { if (bgp_flag_check (bgp, BGP_FLAG_MED_MISSING_AS_WORST)) - return 4294967295ul; + return BGP_MED_MAX; else return 0; } -- cgit v1.2.1