summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/log.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-04-23 13:04:25 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-04-23 13:04:25 +0000
commit08c3c9310d4b3dbbe393bd4048439d572c15a835 (patch)
tree595e0a61227029b9198526b626ac9bce5ac2390e /usr.sbin/bgpd/log.c
parentd1c0f4acb7b6be8baa3fd007c8fde95a78ab1dab (diff)
Make bgpd 4-byte AS compatible. All internal representations of AS numbers
are now 4-byte instead of the old 2-byte numbers. The only exception are communities because they can not be switched. The RDE will inflate and deflate the ASPATH and AGGREGATOR attributes on demand and create the NEW_ASPATH and NEW_AGGREGATOR field whenever needed. Both old and new stile sessions are supported and can be mixed. Currently new stile sessions with the 4-byte AS number capability turned on are only enabled if one of the AS numbers involved is a 4-byte one. This is based on an initial diff by Geoff Huston gih (at) apnic (dot) net Cleanup, testing and bug-fixes by myself (via AS 3.10). Currently mrt table dumps are producing incompatible output this will be fixed afterwards -- this diff is already big enough. "get it in if you think it is ready" henning@
Diffstat (limited to 'usr.sbin/bgpd/log.c')
-rw-r--r--usr.sbin/bgpd/log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c
index 39ff54fccc9..c426ee96037 100644
--- a/usr.sbin/bgpd/log.c
+++ b/usr.sbin/bgpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.49 2007/02/25 12:02:40 henning Exp $ */
+/* $OpenBSD: log.c,v 1.50 2007/04/23 13:04:24 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -33,7 +33,6 @@
int debug;
-char *log_fmt_peer(const struct peer_config *);
void logit(int, const char *, ...);
char *