Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157371926
D23687.id68329.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1014 B
Referenced Files
None
Subscribers
None
D23687.id68329.diff
View Options
Index: sys/netinet/tcp_hostcache.c
===================================================================
--- sys/netinet/tcp_hostcache.c
+++ sys/netinet/tcp_hostcache.c
@@ -437,8 +437,10 @@
{
struct hc_metrics *hc_entry;
- if (!V_tcp_use_hostcache)
+ if (!V_tcp_use_hostcache) {
+ bzero(hc_metrics_lite, sizeof(*hc_metrics_lite));
return;
+ }
/*
* Find the right bucket.
Index: sys/netinet/tcp_input.c
===================================================================
--- sys/netinet/tcp_input.c
+++ sys/netinet/tcp_input.c
@@ -372,7 +372,7 @@
void
cc_conn_init(struct tcpcb *tp)
{
- struct hc_metrics_lite metrics;
+ struct hc_metrics_lite metrics = { 0 };
struct inpcb *inp = tp->t_inpcb;
u_int maxseg;
int rtt;
@@ -3507,7 +3507,7 @@
int mss = 0;
uint32_t maxmtu = 0;
struct inpcb *inp = tp->t_inpcb;
- struct hc_metrics_lite metrics;
+ struct hc_metrics_lite metrics = { 0 };
#ifdef INET6
int isipv6 = ((inp->inp_vflag & INP_IPV6) != 0) ? 1 : 0;
size_t min_protoh = isipv6 ?
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 5:48 PM (5 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33400979
Default Alt Text
D23687.id68329.diff (1014 B)
Attached To
Mode
D23687: Fix sporadic odd MSS values when TCP HostCache is not in use
Attached
Detach File
Event Timeline
Log In to Comment