diff options
| author | Hiroki Sato <hrs@FreeBSD.org> | 2009-07-19 07:31:04 +0000 |
|---|---|---|
| committer | Hiroki Sato <hrs@FreeBSD.org> | 2009-07-19 07:31:04 +0000 |
| commit | e06614b276963810c496da273358133c5e287829 (patch) | |
| tree | 201d0ad02a30386984c12bfaf08311e5430fafd2 /net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h | |
| parent | This file is no longer needed in 2.0.1. (diff) | |
Update to 4.5.20090709 (from snapshot as of 2009/7/9).
Add support for nexthop with an IPv6 link-local address. To
enable this, specify "interface" in bgpd.conf (see bgpd.conf(5)).
Notes
Notes:
svn path=/head/; revision=238040
Diffstat (limited to 'net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h')
| -rw-r--r-- | net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h b/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h index 01a61866c27e..ab89a4aba901 100644 --- a/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h +++ b/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h @@ -3,10 +3,10 @@ Index: openbsd-compat/openbsd-compat.h RCS file: openbsd-compat/openbsd-compat.h diff -N openbsd-compat/openbsd-compat.h --- /dev/null 1 Jan 1970 00:00:00 -0000 -+++ openbsd-compat/openbsd-compat.h 30 Jun 2009 06:52:12 -0000 1.2 -@@ -0,0 +1,23 @@ ++++ openbsd-compat/openbsd-compat.h 9 Jul 2009 17:22:14 -0000 1.3 +@@ -0,0 +1,46 @@ +/* -+ * $hrs: openbgpd/openbsd-compat/openbsd-compat.h,v 1.2 2009/06/30 06:52:12 hrs Exp $ ++ * $hrs: openbgpd/openbsd-compat/openbsd-compat.h,v 1.3 2009/07/09 17:22:14 hrs Exp $ + */ + +#ifndef _OPENBSD_COMPAT_H @@ -27,4 +27,27 @@ diff -N openbsd-compat/openbsd-compat.h +#endif +#define RTA_LABEL 0 + ++#define SIMPLEQ_FOREACH STAILQ_FOREACH ++#define SIMPLEQ_FIRST STAILQ_FIRST ++#define SIMPLEQ_REMOVE_HEAD STAILQ_REMOVE_HEAD ++#define SIMPLEQ_INSERT_TAIL STAILQ_INSERT_TAIL ++#define SIMPLEQ_ENTRY STAILQ_ENTRY ++#define SIMPLEQ_HEAD STAILQ_HEAD ++#define SIMPLEQ_INIT STAILQ_INIT ++#define SIMPLEQ_HEAD_INITIALIZER STAILQ_HEAD_INITIALIZER ++ ++/* Routing priorities used by the different routing protocols */ ++#define RTP_NONE 0 /* unset priority use sane default */ ++#define RTP_CONNECTED 4 /* directly connected routes */ ++#define RTP_STATIC 8 /* static routes base priority */ ++#define RTP_OSPF 32 /* OSPF routes */ ++#define RTP_ISIS 36 /* IS-IS routes */ ++#define RTP_RIP 40 /* RIP routes */ ++#define RTP_BGP 48 /* BGP routes */ ++#define RTP_DEFAULT 56 /* routes that have nothing set */ ++#define RTP_MAX 63 /* maximum priority */ ++#define RTP_ANY 64 /* any of the above */ ++#define RTP_MASK 0x7f ++#define RTP_DOWN 0x80 /* route/link is down */ ++ +#endif /* _OPENBSD_COMPAT_H */ |
