Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet it's spelled struct tcphdr, not struct tcp_hdr
details: https://anonhg.NetBSD.org/src/rev/479eead5c403
branches: trunk
changeset: 959576:479eead5c403
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri Feb 19 15:43:56 2021 +0000
description:
it's spelled struct tcphdr, not struct tcp_hdr
diffstat:
sys/netinet/tcp_input.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 9fd3bfed256a -r 479eead5c403 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Fri Feb 19 14:51:59 2021 +0000
+++ b/sys/netinet/tcp_input.c Fri Feb 19 15:43:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.426 2021/02/19 14:51:59 christos Exp $ */
+/* $NetBSD: tcp_input.c,v 1.427 2021/02/19 15:43:56 jakllsch Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.426 2021/02/19 14:51:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.427 2021/02/19 15:43:56 jakllsch Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1274,7 +1274,7 @@
* Enforce alignment requirements that are violated in
* some cases, see kern/50766 for details.
*/
- if (ACCESSIBLE_POINTER(th, struct tcp_hdr) == 0) {
+ if (ACCESSIBLE_POINTER(th, struct tcphdr) == 0) {
m = m_copyup(m, off + sizeof(struct tcphdr), 0);
if (m == NULL) {
TCP_STATINC(TCP_STAT_RCVSHORT);
@@ -1282,7 +1282,7 @@
}
th = (struct tcphdr *)(mtod(m, char *) + off);
}
- KASSERT(ACCESSIBLE_POINTER(th, struct tcp_hdr));
+ KASSERT(ACCESSIBLE_POINTER(th, struct tcphdr));
/*
* Get IP and TCP header.
@@ -1362,7 +1362,7 @@
TCP_STATINC(TCP_STAT_RCVSHORT);
return;
}
- KASSERT(ACCESSIBLE_POINTER(th, struct tcp_hdr));
+ KASSERT(ACCESSIBLE_POINTER(th, struct tcphdr));
optlen = thlen - sizeof(struct tcphdr);
optp = ((u_int8_t *)th) + sizeof(struct tcphdr);
Home |
Main Index |
Thread Index |
Old Index