summaryrefslogtreecommitdiffstats
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 1370ee7..93cabbe 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -293,7 +293,7 @@ bgp_create_update(struct bgp_conn *conn, byte *buf)
ASSERT(nh);
ip = *(ip_addr *) nh->u.ptr->data;
is_ll = 0;
- if (ipa_equal(ip, p->local_addr))
+ if (ipa_equal(ip, p->source_addr))
{
is_ll = 1;
ip_ll = p->local_link;