summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-04 17:19:42 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-04 17:19:42 +0000
commit616b66c836e6ae7f94f1dea59efc5c49b98c2f04 (patch)
tree032f6ea68ca88a2f3856c23e88f4820136ac1fb0 /usr.sbin
parent6559cc2cf2d46505e87bc21848657572161afd52 (diff)
in the SE, keep the remote router-id in network byte order, just like
every other IP address in the RDE, transform in into host byte order upon receival
Diffstat (limited to 'usr.sbin')
-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);