summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bgpd/rde.c4
-rw-r--r--usr.sbin/bgpd/session.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 78df8ef91ac..426184a7983 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.43 2004/01/03 20:37:34 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.44 2004/01/04 17:19:41 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -707,7 +707,7 @@ peer_up(u_int32_t id, u_int32_t rid)
logit(LOG_CRIT, "peer_up: unknown peer id %d", id);
return;
}
- peer->remote_bgpid = rid;
+ peer->remote_bgpid = ntohl(rid);
peer->state = PEER_UP;
}
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 4d94db2a27a..25c01842f45 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.58 2004/01/03 22:44:28 henning Exp $ */
+/* $OpenBSD: session.c,v 1.59 2004/01/04 17:19:41 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1199,7 +1199,7 @@ parse_open(struct peer *peer)
NULL, 0);
return (-1);
} */
- peer->remote_bgpid = ntohl(bgpid);
+ peer->remote_bgpid = bgpid;
memcpy(&optparamlen, p, sizeof(optparamlen));
p += sizeof(optparamlen);