diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-12-08 09:00:13 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-12-29 21:42:44 +0100 |
commit | ec3b71ae00bfab2fcaa31425a4f9de097389f43a (patch) | |
tree | af86df5550298e43e5491e7f2a6b757ecf765c46 /proto/bgp/packets.c | |
parent | 7e08f5ab64aaab1c40da2ce6b54c18ce791188df (diff) | |
download | bird-ec3b71ae00bfab2fcaa31425a4f9de097389f43a.tar bird-ec3b71ae00bfab2fcaa31425a4f9de097389f43a.zip |
BGP: Add support for specifying interface names to allow peerings using link-local addresses
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r-- | proto/bgp/packets.c | 3 |
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; |