mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 12:16:46 +00:00
2004-08-19 Paul Jakma <paul@dishone.st>
* zebra.h: add MAX and MIN defines (eg for ospf6d)
This commit is contained in:
parent
b094d26031
commit
efba6ce941
@ -1,3 +1,7 @@
|
|||||||
|
2004-08-19 Paul Jakma <paul@dishone.st>
|
||||||
|
|
||||||
|
* zebra.h: add MAX and MIN defines (eg for ospf6d)
|
||||||
|
|
||||||
2004-08-19 Paul Jakma <paul@dishone.st>
|
2004-08-19 Paul Jakma <paul@dishone.st>
|
||||||
|
|
||||||
* sockopt.c: include sockopt.h
|
* sockopt.c: include sockopt.h
|
||||||
|
11
lib/zebra.h
11
lib/zebra.h
@ -245,6 +245,14 @@ struct in_pktinfo
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* MAX / MIN are not commonly defined, but useful */
|
||||||
|
#ifndef MAX
|
||||||
|
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
#ifndef MIN
|
||||||
|
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* For old definition. */
|
/* For old definition. */
|
||||||
#ifndef IN6_ARE_ADDR_EQUAL
|
#ifndef IN6_ARE_ADDR_EQUAL
|
||||||
#define IN6_ARE_ADDR_EQUAL IN6_IS_ADDR_EQUAL
|
#define IN6_ARE_ADDR_EQUAL IN6_IS_ADDR_EQUAL
|
||||||
@ -269,7 +277,8 @@ struct in_pktinfo
|
|||||||
#define ZEBRA_IPV6_NEXTHOP_LOOKUP 16
|
#define ZEBRA_IPV6_NEXTHOP_LOOKUP 16
|
||||||
#define ZEBRA_IPV4_IMPORT_LOOKUP 17
|
#define ZEBRA_IPV4_IMPORT_LOOKUP 17
|
||||||
#define ZEBRA_IPV6_IMPORT_LOOKUP 18
|
#define ZEBRA_IPV6_IMPORT_LOOKUP 18
|
||||||
#define ZEBRA_MESSAGE_MAX 19
|
#define ZEBRA_INTERFACE_RENAME 19
|
||||||
|
#define ZEBRA_MESSAGE_MAX 20
|
||||||
|
|
||||||
/* Zebra route's types. */
|
/* Zebra route's types. */
|
||||||
#define ZEBRA_ROUTE_SYSTEM 0
|
#define ZEBRA_ROUTE_SYSTEM 0
|
||||||
|
Loading…
Reference in New Issue
Block a user