summaryrefslogtreecommitdiff
path: root/eigrpd/eigrp_query.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-13 12:08:38 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-13 12:08:38 -0400
commit1f35b46a2f35d59b86ed3ee557aa1c9fcf2fcac9 (patch)
tree27de606b3510b126766ac7a0ac9eb8ddf4573ab0 /eigrpd/eigrp_query.c
parentd47ae3db4cf14c72d8468d61113ac88e19235791 (diff)
parentc1a003878246ccc84ab5986558ca959f4545f738 (diff)
Merge branch 'master' into docuser
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_query.c')
-rw-r--r--eigrpd/eigrp_query.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/eigrpd/eigrp_query.c b/eigrpd/eigrp_query.c
index 1fe70b60e8..72780f7a03 100644
--- a/eigrpd/eigrp_query.c
+++ b/eigrpd/eigrp_query.c
@@ -142,13 +142,13 @@ void eigrp_query_receive(struct eigrp *eigrp, struct ip *iph,
break;
case EIGRP_TLV_IPv4_EXT:
- /* DVS: processing of external routes needs packet and fsm work.
- * for now, lets just not creash the box
- */
+ /* DVS: processing of external routes needs packet and fsm work.
+ * for now, lets just not creash the box
+ */
default:
length = stream_getw(s);
// -2 for type, -2 for len
- for (length-=4; length ; length--) {
+ for (length -= 4; length; length--) {
(void)stream_getc(s);
}
}
@@ -177,16 +177,15 @@ void eigrp_send_query(struct eigrp_interface *ei)
ep = eigrp_packet_new(ei->ifp->mtu, NULL);
/* Prepare EIGRP INIT UPDATE header */
- eigrp_packet_header_init(EIGRP_OPC_QUERY,
- ei->eigrp, ep->s, 0,
+ eigrp_packet_header_init(EIGRP_OPC_QUERY, ei->eigrp,
+ ep->s, 0,
ei->eigrp->sequence_number, 0);
// encode Authentication TLV, if needed
if ((ei->params.auth_type == EIGRP_AUTH_TYPE_MD5)
&& (ei->params.auth_keychain != NULL)) {
- length +=
- eigrp_add_authTLV_MD5_to_stream(ep->s,
- ei);
+ length += eigrp_add_authTLV_MD5_to_stream(ep->s,
+ ei);
}
new_packet = false;
}