FreeBSD Bugzilla – Attachment 193614 Details for
Bug 228068
tclass is not used when sending to IPv4 mapped address via IPv6 socket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to set tos interval value when tclass is set
tclass_tos.diff (text/plain), 1.44 KB, created by
Paul Reynolds
on 2018-05-22 14:57:01 UTC
(
hide
)
Description:
Patch to set tos interval value when tclass is set
Filename:
MIME Type:
Creator:
Paul Reynolds
Created:
2018-05-22 14:57:01 UTC
Size:
1.44 KB
patch
obsolete
>Index: sys/netinet6/ip6_output.c >=================================================================== >--- sys/netinet6/ip6_output.c (revision 45243) >+++ sys/netinet6/ip6_output.c (working copy) >@@ -1718,6 +1718,24 @@ > break; > > case IPV6_TCLASS: >+ if (optlen != sizeof(optval)) { >+ error = EINVAL; >+ break; >+ } >+ error = sooptcopyin(sopt, &optval, >+ sizeof optval, sizeof optval); >+ if (error) >+ break; >+ { >+ in6p->inp_ip_tos = optval; >+ struct ip6_pktopts **optp; >+ optp = &in6p->in6p_outputopts; >+ error = ip6_pcbopt(optname, >+ (u_char *)&optval, sizeof(optval), >+ optp, (td != NULL) ? td->td_ucred : >+ NULL, uproto); >+ break; >+ } > case IPV6_DONTFRAG: > case IPV6_USE_MIN_MTU: > case IPV6_PREFER_TEMPADDR:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228068
: 193614