kern/167357: [cc_htcp] cc_htcp(4) module sysctl variables
overwritten
Adri Koppes
adrik at salesmanager.nl
Tue May 8 09:40:11 UTC 2012
The following reply was made to PR kern/167357; it has been noted by GNATS.
From: "Adri Koppes" <adrik at salesmanager.nl>
To: <bug-followup at FreeBSD.org>
Cc:
Subject: Re: kern/167357: [cc_htcp] cc_htcp(4) module sysctl variables overwritten
Date: Tue, 8 May 2012 11:34:28 +0200
This is a multi-part message in MIME format.
------_=_NextPart_001_01CD2CFD.C3D6CF76
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
The following patch fixes the problem:
=20
--- cc_htcp.c.orig 2012-04-09 18:18:55.117275946 +0200
+++ cc_htcp.c 2012-05-08 11:21:14.513094522 +0200
@@ -168,8 +168,8 @@
static int htcp_max_diff =3D INT_MAX / ((1 << HTCP_ALPHA_INC_SHIFT) * =
10);
/* Per-netstack vars. */
-static VNET_DEFINE(uint8_t, htcp_adaptive_backoff) =3D 0;
-static VNET_DEFINE(uint8_t, htcp_rtt_scaling) =3D 0;
+static VNET_DEFINE(u_int, htcp_adaptive_backoff) =3D 0;
+static VNET_DEFINE(u_int, htcp_rtt_scaling) =3D 0;
#define V_htcp_adaptive_backoff
VNET(htcp_adaptive_backoff)
#define V_htcp_rtt_scaling VNET(htcp_rtt_scaling)
=20
=20
------_=_NextPart_001_01CD2CFD.C3D6CF76
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DNL link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-US>The following patch fixes the =
problem:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p> </o:p></span></p><p class=3DMsoNormal>--- =
cc_htcp.c.orig  =
; 2012-04-09 18:18:55.117275946 +0200<o:p></o:p></p><p =
class=3DMsoNormal>+++ cc_htcp.c 2012-05-08 =
11:21:14.513094522 +0200<o:p></o:p></p><p class=3DMsoNormal><span =
lang=3DEN-US>@@ -168,8 +168,8 @@<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US> static int htcp_max_diff =3D =
INT_MAX / ((1 << HTCP_ALPHA_INC_SHIFT) * =
10);<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US> =
<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US> /* =
Per-netstack vars. */<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>-static VNET_DEFINE(uint8_t, htcp_adaptive_backoff) =3D =
0;<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US>-static =
VNET_DEFINE(uint8_t, htcp_rtt_scaling) =3D 0;<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>+static VNET_DEFINE(u_int, =
htcp_adaptive_backoff) =3D 0;<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>+static VNET_DEFINE(u_int, =
htcp_rtt_scaling) =3D 0;<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US> =
#define =
V_htcp_adaptive_backoff =
VNET(htcp_adaptive_backoff)<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US> =
#define =
V_htcp_rtt_scaling =
VNET(htcp_rtt_scaling)<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p> </o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p> </o:p></span></p></div></body></html>
------_=_NextPart_001_01CD2CFD.C3D6CF76--
More information about the freebsd-bugs
mailing list