git: 7ea8d0279805 - main - Update various sys/netinet source files to conform with the style(9) guide on how to label FALLTHOUGH in switch statements.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jun 2023 21:26:13 UTC
The branch main has been updated by rscheff:
URL: https://cgit.FreeBSD.org/src/commit/?id=7ea8d02798055068682e80d8791556d3f81bda82
commit 7ea8d02798055068682e80d8791556d3f81bda82
Author: Richard Scheffenegger <rscheff@FreeBSD.org>
AuthorDate: 2023-06-20 21:23:01 +0000
Commit: Richard Scheffenegger <rscheff@FreeBSD.org>
CommitDate: 2023-06-20 21:23:19 +0000
Update various sys/netinet source files to conform with the style(9)
guide on how to label FALLTHOUGH in switch statements.
No functional chance.
Reviewed By: tuexen, cc, #transport
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D40622
---
sys/netinet/libalias/alias_sctp.c | 2 +-
sys/netinet/sctp_output.c | 2 +-
sys/netinet/tcp_ecn.c | 8 ++++----
sys/netinet/tcp_log_buf.c | 2 +-
sys/netinet/tcp_stacks/bbr.c | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/sys/netinet/libalias/alias_sctp.c b/sys/netinet/libalias/alias_sctp.c
index da59694a4e16..4a9fb0214e2a 100644
--- a/sys/netinet/libalias/alias_sctp.c
+++ b/sys/netinet/libalias/alias_sctp.c
@@ -1952,7 +1952,7 @@ UP_process(struct libalias *la, int direction, struct sctp_nat_assoc *assoc, str
RmGlobalIPAddresses(sm, assoc, direction);
break;
}
- /* fall through to default */
+ /* FALLTHROUGH */
default:
sctp_ResetTimeOut(la,assoc, SN_U_T(la));
return (SN_NAT_PKT); /* forward packet */
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index fdea88002194..5b4fbb28e089 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -5041,7 +5041,7 @@ sctp_arethere_unrecognized_parameters(struct mbuf *in_initpkt,
break;
case SCTP_HAS_NAT_SUPPORT:
*nat_friendly = 1;
- /* fall through */
+ /* FALLTHROUGH */
case SCTP_PRSCTP_SUPPORTED:
if (padded_size != sizeof(struct sctp_paramhdr)) {
SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error prsctp/nat support %d\n", plen);
diff --git a/sys/netinet/tcp_ecn.c b/sys/netinet/tcp_ecn.c
index 579c0b407ae1..b0902ec31272 100644
--- a/sys/netinet/tcp_ecn.c
+++ b/sys/netinet/tcp_ecn.c
@@ -318,10 +318,10 @@ tcp_ecn_input_segment(struct tcpcb *tp, uint16_t thflags, int tlen, int pkts, in
switch (tcp_ecn_get_ace(thflags)) {
case 0b010:
/* nonECT SYN or SYN,ACK */
- /* Fallthrough */
+ /* FALLTHROUGH */
case 0b011:
/* ECT1 SYN or SYN,ACK */
- /* Fallthrough */
+ /* FALLTHROUGH */
case 0b100:
/* ECT0 SYN or SYN,ACK */
tp->t_scep = 5;
@@ -467,9 +467,9 @@ tcp_ecn_syncache_socket(struct tcpcb *tp, struct syncache *sc)
tp->t_flags2 |= TF2_ECN_PERMIT;
break;
case SCF_ACE_N:
- /* Fallthrough */
+ /* FALLTHROUGH */
case SCF_ACE_0:
- /* Fallthrough */
+ /* FALLTHROUGH */
case SCF_ACE_1:
tp->t_flags2 |= TF2_ACE_PERMIT;
tp->t_scep = 5;
diff --git a/sys/netinet/tcp_log_buf.c b/sys/netinet/tcp_log_buf.c
index e0334c69b46f..be15c6735fca 100644
--- a/sys/netinet/tcp_log_buf.c
+++ b/sys/netinet/tcp_log_buf.c
@@ -1928,7 +1928,7 @@ tcp_log_state_change(struct tcpcb *tp, int state)
case TCP_LOG_STATE_CLEAR:
while ((log_entry = STAILQ_FIRST(&tp->t_logs)) != NULL)
tcp_log_remove_log_head(tp, log_entry);
- /* Fall through */
+ /* FALLTHROUGH */
case TCP_LOG_STATE_OFF:
tp->_t_logstate = TCP_LOG_STATE_OFF;
diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
index 1e8053afc45c..d9952ba6bd14 100644
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -13807,7 +13807,7 @@ nomore:
}
case EPERM:
tp->t_softerror = error;
- /* Fall through */
+ /* FALLTHROUGH */
case EHOSTDOWN:
case EHOSTUNREACH:
case ENETDOWN: