From da052d1dd3cb9faecb3123e427cd6ee469a11b7c Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 29 Oct 2026 08:21:50 +0100 Subject: [PATCH] netinet6: allocate correct size for ip6_fwdtag struct; closes #342 Looks like this has been the case ever since if_index was introduced. While IPv4 was updated correctly it was forgotten for IPv6. Submitted by: @pletch --- sys/netinet6/ip6_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 331412eab3c..36051109cc6 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -3389,7 +3389,7 @@ ip6_set_fwdtag(struct mbuf *m, const struct sockaddr_in6 *dst, const struct ifne m_tag_unlink(m, fwd_tag); } else { - fwd_tag = m_tag_get(PACKET_TAG_IPFORWARD, sizeof(*dst), + fwd_tag = m_tag_get(PACKET_TAG_IPFORWARD, sizeof(*fwd_info), M_NOWAIT); if (fwd_tag == NULL) { return (ENOBUFS);