summaryrefslogtreecommitdiff
path: root/ospfd/ospf_packet.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-14 16:48:01 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-14 16:59:43 +0200
commitacd738fc7f5a8ca637e691e45346d74a149b75c9 (patch)
tree62d1445b34e13fdfab132fa31cfb0ff9145b73ae /ospfd/ospf_packet.c
parent888efdbb5ec4e895f44f0307348a02fd6c61b579 (diff)
*: fix GCC 7 switch/case fallthrough warnings
Need a comment on these. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r--ospfd/ospf_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index f33e0338ac..951304c4d1 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -1152,6 +1152,7 @@ ospf_db_desc_proc (struct stream *s, struct ospf_interface *oi,
case -1:
/* Neighbour has a more recent LSA, we must request it */
ospf_ls_request_add (nbr, new);
+ /* fallthru */
case 0:
/* If we have a copy of this LSA, it's either less recent
* and we're requesting it from neighbour (the case above), or
@@ -1327,6 +1328,7 @@ ospf_db_desc (struct ip *iph, struct ospf_header *ospfh,
through to case ExStart below. */
if (nbr->state != NSM_ExStart)
break;
+ /* fallthru */
case NSM_ExStart:
/* Initial DBD */
if ((IS_SET_DD_ALL (dd->flags) == OSPF_DD_FLAG_ALL) &&