FreeBSD Bugzilla – Attachment 92894 Details for
Bug 130657
[ip6] [patch] ipv6 class option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.83 KB, created by
Alfred Perlstein
on 2009-01-17 20:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alfred Perlstein
Created:
2009-01-17 20:30:01 UTC
Size:
1.83 KB
patch
obsolete
>diff -p -u -r1.24 tcp_syncache.c >--- bsd/sys/netinet/tcp_syncache.c 29 Jul 2008 17:07:43 -0000 1.24 >+++ bsd/sys/netinet/tcp_syncache.c 16 Dec 2008 19:23:31 -0000 >@@ -1271,6 +1271,7 @@ syncache_respond(sc, m) > struct inpcb *inp; > #ifdef INET6 > struct ip6_hdr *ip6 = NULL; >+ int inp_tclass; > #endif > struct rt_nexthop *minmtu_nh; > struct route_table *rtb = NULL; >@@ -1387,6 +1388,12 @@ syncache_respond(sc, m) > /* ip6_hlim is set after checksum */ > ip6->ip6_flow &= ~IPV6_FLOWLABEL_MASK; > ip6->ip6_flow |= sc->sc_flowlabel; >+ /* Set the TC for IPv6 just like TOS for IPv4 */ >+ ip6->ip6_flow &= ~IPV6_CLASS_MASK; >+ if (inp) { >+ inp_tclass = IPV6_GET_CLASS(inp->in6p_flowinfo); >+ ip6->ip6_flow |= IPV6_SET_CLASS(inp_tclass); >+ } > > th = (struct tcphdr *)(ip6 + 1); > } else
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 130657
: 92894