Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146634220
D24822.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24822.id.diff
View Options
Index: head/sys/netinet6/ip6_output.c
===================================================================
--- head/sys/netinet6/ip6_output.c
+++ head/sys/netinet6/ip6_output.c
@@ -322,7 +322,8 @@
static int
ip6_output_send(struct inpcb *inp, struct ifnet *ifp, struct ifnet *origifp,
- struct mbuf *m, struct sockaddr_in6 *dst, struct route_in6 *ro)
+ struct mbuf *m, struct sockaddr_in6 *dst, struct route_in6 *ro,
+ bool stamp_tag)
{
#ifdef KERN_TLS
struct ktls_session *tls = NULL;
@@ -353,6 +354,10 @@
error = EAGAIN;
goto done;
}
+ /*
+ * Always stamp tags that include NIC ktls.
+ */
+ stamp_tag = true;
}
#endif
#ifdef RATELIMIT
@@ -366,7 +371,7 @@
mst = inp->inp_snd_tag;
}
#endif
- if (mst != NULL) {
+ if (stamp_tag && mst != NULL) {
KASSERT(m->m_pkthdr.rcvif == NULL,
("trying to add a send tag to a forwarded packet"));
if (mst->ifp != ifp) {
@@ -1165,7 +1170,8 @@
m->m_pkthdr.len);
ifa_free(&ia6->ia_ifa);
}
- error = ip6_output_send(inp, ifp, origifp, m, dst, ro);
+ error = ip6_output_send(inp, ifp, origifp, m, dst, ro,
+ (flags & IP_NO_SND_TAG_RL) ? false : true);
goto done;
}
@@ -1256,7 +1262,8 @@
counter_u64_add(ia->ia_ifa.ifa_obytes,
m->m_pkthdr.len);
}
- error = ip6_output_send(inp, ifp, origifp, m, dst, ro);
+ error = ip6_output_send(inp, ifp, origifp, m, dst, ro,
+ true);
} else
m_freem(m);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 5, 7:14 AM (4 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29276059
Default Alt Text
D24822.id.diff (1 KB)
Attached To
Mode
D24822: IPv6: sync IP_NO_SND_TAG_RL support from IPv4
Attached
Detach File
Event Timeline
Log In to Comment