git: 326f4556250d - main - tcp: forward declare struct tcpcb in the TCP logging header
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Nov 2022 18:32:44 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=326f4556250d92ab6ba208c5c92f2894900d36ab commit 326f4556250d92ab6ba208c5c92f2894900d36ab Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2022-11-08 18:32:29 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2022-11-08 18:32:29 +0000 tcp: forward declare struct tcpcb in the TCP logging header This allows to include tcp_log_buf.h without including tcp_var.h. --- sys/netinet/tcp_log_buf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/tcp_log_buf.h b/sys/netinet/tcp_log_buf.h index c11757099c5d..48bc584aa0dc 100644 --- a/sys/netinet/tcp_log_buf.h +++ b/sys/netinet/tcp_log_buf.h @@ -330,6 +330,7 @@ struct tcp_log_dev_log_queue { * len indicates the length of the packet. If no packet, use 0. * stackinfo is optional; if present, it will appear in the record. */ +struct tcpcb; #ifdef TCP_LOG_FORCEVERBOSE #define TCP_LOG_EVENT TCP_LOG_EVENT_VERBOSE #else