summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-08-27 14:00:16 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-08-27 14:00:16 +0000
commitfe18a2e8e6f39716801d4beb848ef91b162dcda3 (patch)
tree9dc26954940e67216aafc9e791de05978921bdc4 /usr.sbin/bgpd/session.c
parent7ba8feb19ff4c4240fdb947638bcc92ac7d41a37 (diff)
missing htons() in session_rrefresh()
no surprise sending route refresh requests didn't work on my i386 routers, i think I originally hacked & tested this on sparc64
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 339d5109b7b..e8f058e76cc 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.258 2006/08/27 13:44:03 henning Exp $ */
+/* $OpenBSD: session.c,v 1.259 2006/08/27 14:00:15 henning Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -1499,6 +1499,7 @@ session_rrefresh(struct peer *p, u_int16_t afi, u_int8_t safi)
return;
}
+ afi = htons(afi);
errs += buf_add(buf->buf, &afi, sizeof(afi));
errs += buf_add(buf->buf, &null8, sizeof(null8));
errs += buf_add(buf->buf, &safi, sizeof(safi));