diff options
author | paul <paul> | 2003-10-13 09:47:32 +0000 |
---|---|---|
committer | paul <paul> | 2003-10-13 09:47:32 +0000 |
commit | c119bc6bb92286b2eed9b01229e5962da33a49ac (patch) | |
tree | 2a8ed24accd045e8a32e4e491b09caed086f526c /lib/zebra.h | |
parent | e5fbf83198ddd288b96613f4e3851a1a73fcb437 (diff) | |
download | quagga-c119bc6bb92286b2eed9b01229e5962da33a49ac.tar.bz2 quagga-c119bc6bb92286b2eed9b01229e5962da33a49ac.tar.xz |
2003-10-13 Jay Fenlason <fenlason@redhat.com>
* 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.
Diffstat (limited to 'lib/zebra.h')
-rw-r--r-- | lib/zebra.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index dc17730b..3193b6e2 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -178,6 +178,11 @@ typedef int socklen_t; #include <netinet6/nd6.h> #endif /* HAVE_NETINET6_ND6_H */ +/* Some systems do not define UINT32_MAX */ +#ifndef UINT32_MAX +#define UINT32_MAX 0xFFFFFFFFU +#endif /* UINT32_MAX */ + #ifdef HAVE_LIBUTIL_H #include <libutil.h> #endif /* HAVE_LIBUTIL_H */ |