summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
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/bgpd/session.c
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/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 2 insertions, 2 deletions
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);