summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-11-11 16:56:09 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-11-11 16:56:09 +0000
commit7918d4577859b060d229622c9aff17cbf846f2fa (patch)
tree4bd81e33170aa44180d986f9908b38db597049f3 /usr.sbin/bgpd
parentc06a25bb4c17b6313fd2804852447663b5867287 (diff)
Unbreak link local IPv6 sessions by setting the correct scope_id in
addr2sa. OK henning@
Diffstat (limited to 'usr.sbin/bgpd')
-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 4eeaf622f2a..edc1e727544 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.198 2004/11/10 14:48:25 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.199 2004/11/11 16:56:08 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2546,6 +2546,7 @@ addr2sa(struct bgpd_addr *addr, u_int16_t port)
memcpy(&sa_in6->sin6_addr, &addr->v6,
sizeof(sa_in6->sin6_addr));
sa_in6->sin6_port = htons(port);
+ sa_in6->sin6_scope_id = addr->scope_id;
break;
}