FreeBSD Bugzilla – Attachment 148780 Details for
Bug 194697
incoming IP TOS bits get zeroed on mbufs that need checksumming
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
save & restore IP TOS field when computing TCP checksum
file_194697.txt (text/plain), 748 bytes, created by
Sebastian Kuzminsky
on 2014-10-29 23:15:44 UTC
(
hide
)
Description:
save & restore IP TOS field when computing TCP checksum
Filename:
MIME Type:
Creator:
Sebastian Kuzminsky
Created:
2014-10-29 23:15:44 UTC
Size:
748 bytes
patch
obsolete
>--- a/sys/netinet/tcp_input.c >+++ b/sys/netinet/tcp_input.c >@@ -675,12 +675,14 @@ tcp_input(struct mbuf **mp, int *offp, int proto) > /* > * Checksum extended TCP header and data. > */ >+ u_int8_t tos = ip->ip_tos; > len = off0 + tlen; > bzero(ipov->ih_x1, sizeof(ipov->ih_x1)); > ipov->ih_len = htons(tlen); > th->th_sum = in_cksum(m, len); > /* Reset length for SDT probes. */ > ip->ip_len = htons(tlen + off0); >+ ip->ip_tos = tos; > } > > if (th->th_sum) {
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 Raw
Actions:
View
Attachments on
bug 194697
: 148780