diff options
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r-- | proto/bgp/packets.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 356d8bd..4372572 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -436,7 +436,10 @@ bgp_create_update(struct bgp_conn *conn, byte *buf) *tmp++ = 1; class = ipa_classify(ip); - if (ipa_nonzero(ip_ll) && ((class & IADDR_SCOPE_MASK) != SCOPE_LINK)) + if ((class & IADDR_SCOPE_MASK) == SCOPE_LINK) + ip = IPA_NONE; + + if (ipa_nonzero(ip_ll)) { *tmp++ = 32; ipa_hton(ip); |