From 81a706924773a461c2944ef5b4181db917b7619d Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 7 Jun 2024 08:02:17 +0000 Subject: [PATCH] remove unused packet header length defines --- sys/netinet/tcp_input.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 328521d6f01..9ba66ae6d8e 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.405 2024/04/17 20:48:51 bluhm Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.406 2024/06/07 08:02:17 jsg Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -106,11 +106,6 @@ int tcp_flush_queue(struct tcpcb *); #ifdef INET6 #include #include - -/* for the packet header length in the mbuf */ -#define M_PH_LEN(m) (((struct mbuf *)(m))->m_pkthdr.len) -#define M_V6_LEN(m) (M_PH_LEN(m) - sizeof(struct ip6_hdr)) -#define M_V4_LEN(m) (M_PH_LEN(m) - sizeof(struct ip)) #endif /* INET6 */ int tcprexmtthresh = 3; -- 2.20.1