Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146497625
D53346.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
591 B
Referenced Files
None
Subscribers
None
D53346.id.diff
View Options
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1172,7 +1172,19 @@
else
INP_RLOCK(inp);
NET_EPOCH_ENTER(et);
+#ifdef INET6
+ if ((flags & PRUS_IPV6) != 0) {
+ if ((inp->in6p_outputopts != NULL) &&
+ (inp->in6p_outputopts->ip6po_tclass != -1))
+ tos = (u_char)inp->in6p_outputopts->ip6po_tclass;
+ else
+ tos = 0;
+ } else {
+ tos = inp->inp_ip_tos;
+ }
+#else
tos = inp->inp_ip_tos;
+#endif
if (control != NULL) {
/*
* XXX: Currently, we assume all the optional information is
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 4, 4:04 AM (5 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29226168
Default Alt Text
D53346.id.diff (591 B)
Attached To
Mode
D53346: udp: honor IPV6_TCLASS socket option for UDP/IPv4 packets
Attached
Detach File
Event Timeline
Log In to Comment