summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-04-28 18:11:56 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-04-28 18:11:56 +0200
commitad440a570b37e8674ef35f3a18df48f0eb2579eb (patch)
treef3d0f586a5d9fa21fd1a64e8a5a96c9ca2b58771 /proto/bgp/packets.c
parenta6ee026693a9c24c71dcf846abd32508782e0249 (diff)
Fixes handling of 'next hop self' and 'source address' configuration
options.
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 1370ee70..93cabbec 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;