summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_siareply.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-18 01:03:46 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-18 01:16:53 +0200
commitf90f65a242e18ad2ae1229853f904227cc36900a (patch)
tree72cab69e512d4c8d3e2c40533e728a6973e92411 /eigrpd/eigrp_siareply.c
parenteigrpd: Rework ack sent to neighbor (diff)
downloadfrr-f90f65a242e18ad2ae1229853f904227cc36900a.tar.xz
frr-f90f65a242e18ad2ae1229853f904227cc36900a.zip
eigrpd: Cleanup FIFO
The FIFO really was a LIFO for some reason. Push new packets onto the top, always pull from the bottom. This allows eigrp neighbors to come up. Topotests eigrp-topo1( in a topotest PR ) now form neighbors with itself. With this commit. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_siareply.c')
-rw-r--r--eigrpd/eigrp_siareply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_siareply.c b/eigrpd/eigrp_siareply.c
index 0b684b498..32f0c8be3 100644
--- a/eigrpd/eigrp_siareply.c
+++ b/eigrpd/eigrp_siareply.c
@@ -152,7 +152,7 @@ void eigrp_send_siareply(struct eigrp_neighbor *nbr,
if (nbr->state == EIGRP_NEIGHBOR_UP) {
/*Put packet to retransmission queue*/
- eigrp_fifo_push_head(nbr->retrans_queue, ep);
+ eigrp_fifo_push(nbr->retrans_queue, ep);
if (nbr->retrans_queue->count == 1) {
eigrp_send_packet_reliably(nbr);