diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-17 19:03:46 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-17 19:16:53 -0400 | 
| commit | f90f65a242e18ad2ae1229853f904227cc36900a (patch) | |
| tree | 72cab69e512d4c8d3e2c40533e728a6973e92411 /eigrpd/eigrp_hello.c | |
| parent | 9c273c6d28345cb6c3d88aef2ab69a0eec264be3 (diff) | |
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_hello.c')
| -rw-r--r-- | eigrpd/eigrp_hello.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c index 4654ead434..67f75c536b 100644 --- a/eigrpd/eigrp_hello.c +++ b/eigrpd/eigrp_hello.c @@ -707,7 +707,7 @@ void eigrp_hello_send_ack(struct eigrp_neighbor *nbr)  				   inet_ntoa(nbr->src));  		/* Add packet to the top of the interface output queue*/ -		eigrp_fifo_push_head(nbr->ei->obuf, ep); +		eigrp_fifo_push(nbr->ei->obuf, ep);  		/* Hook thread to write packet. */  		if (nbr->ei->on_write_q == 0) { @@ -755,7 +755,7 @@ void eigrp_hello_send(struct eigrp_interface *ei, u_char flags,  	if (ep) {  		// Add packet to the top of the interface output queue -		eigrp_fifo_push_head(ei->obuf, ep); +		eigrp_fifo_push(ei->obuf, ep);  		/* Hook thread to write packet. */  		if (ei->on_write_q == 0) {  | 
