summaryrefslogtreecommitdiffstats
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-12-08 09:00:13 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-12-09 06:08:58 +0100
commit93a508df6028dc838117d620f0daee6c6d15ccbf (patch)
tree7f3fe51a2a18539826b02897d604de5195ba4ee1 /proto/bgp/packets.c
parent631487aa2d45aa2078a08f1852e4a7482abbc2b5 (diff)
downloadbird-ll-peering-old2.tar
bird-ll-peering-old2.zip
BGP: Add support for specifying interface names to allow peerings using link-local addressesll-peering-old2
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index c3a8673..7d78d9f 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -434,6 +434,9 @@ bgp_create_update(struct bgp_conn *conn, byte *buf)
*tmp++ = BGP_AF_IPV6;
*tmp++ = 1;
+ if (ipa_has_link_scope(ip))
+ ip = IPA_NONE;
+
if (ipa_nonzero(ip_ll))
{
*tmp++ = 32;