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
This commit is contained in:
Franco Fichtner 2026-10-29 08:21:50 +01:00
parent c962f76493
commit da052d1dd3

View file

@ -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);