summaryrefslogtreecommitdiffstats
path: root/proto/bgp
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-06-01 14:07:13 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-06-01 14:07:13 +0200
commitf98e2915794e8641f0704b22cbd9b574514f5b23 (patch)
treede8aa4df32a205df1c093c089d44a790cf3bafde /proto/bgp
parent2d45e09f58c4ce857e10c241cf0e89b51b9ec49c (diff)
downloadbird-f98e2915794e8641f0704b22cbd9b574514f5b23.tar
bird-f98e2915794e8641f0704b22cbd9b574514f5b23.zip
The pipe cleanup.
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/packets.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 27adc16..d5397f5 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -705,7 +705,7 @@ bgp_do_rx_update(struct bgp_conn *conn,
DECODE_PREFIX(withdrawn, withdrawn_len);
DBG("Withdraw %I/%d\n", prefix, pxlen);
if (n = net_find(p->p.table, prefix, pxlen))
- rte_update(p->p.table, n, &p->p, NULL);
+ rte_update(p->p.table, n, &p->p, &p->p, NULL);
}
if (!attr_len && !nlri_len) /* shortcut */
@@ -724,7 +724,7 @@ bgp_do_rx_update(struct bgp_conn *conn,
n = net_get(p->p.table, prefix, pxlen);
e->net = n;
e->pflags = 0;
- rte_update(p->p.table, n, &p->p, e);
+ rte_update(p->p.table, n, &p->p, &p->p, e);
}
}
bad:
@@ -783,7 +783,7 @@ bgp_do_rx_update(struct bgp_conn *conn,
DECODE_PREFIX(x, len);
DBG("Withdraw %I/%d\n", prefix, pxlen);
if (n = net_find(p->p.table, prefix, pxlen))
- rte_update(p->p.table, n, &p->p, NULL);
+ rte_update(p->p.table, n, &p->p, &p->p, NULL);
}
}
@@ -824,7 +824,7 @@ bgp_do_rx_update(struct bgp_conn *conn,
n = net_get(p->p.table, prefix, pxlen);
e->net = n;
e->pflags = 0;
- rte_update(p->p.table, n, &p->p, e);
+ rte_update(p->p.table, n, &p->p, &p->p, e);
}
rta_free(a);
}