summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-01-11 20:13:01 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-01-11 20:13:01 +0000
commit9a802f2485c164afb036edcfe4c9c9a33af372b4 (patch)
tree3cbe0d1d8666c87afd3a08268f6bfa5753230fdb /usr.sbin/bgpd/bgpd.h
parentaabaf8a837cadf50d66b0a047cb6a7643d7c3fb8 (diff)
Add to the IMSG_SESSION_UP message the local and remote address of the
peer session. This is needed to set the correct nexthop address in outgoing bgp UPDATES. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 70f10248857..5460caf2110 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.64 2004/01/11 19:42:27 henning Exp $ */
+/* $OpenBSD: bgpd.h,v 1.65 2004/01/11 20:13:00 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -211,6 +211,12 @@ struct kroute_nexthop {
struct kroute kr;
};
+struct session_up {
+ u_int32_t remote_bgpid;
+ struct bgpd_addr local_addr;
+ struct bgpd_addr remote_addr;
+};
+
struct ctl_show_nexthop {
struct bgpd_addr addr;
u_int8_t valid;