Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154344811
D5584.id14517.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
895 B
Referenced Files
None
Subscribers
None
D5584.id14517.diff
View Options
Index: head/sys/netinet/tcp_output.c
===================================================================
--- head/sys/netinet/tcp_output.c
+++ head/sys/netinet/tcp_output.c
@@ -1652,7 +1652,7 @@
int
tcp_addoptions(struct tcpopt *to, u_char *optp)
{
- u_int mask, optlen = 0;
+ u_int32_t mask, optlen = 0;
for (mask = 1; mask < TOF_MAXOPT; mask <<= 1) {
if ((to->to_flags & mask) != mask)
Index: head/sys/netinet/tcp_var.h
===================================================================
--- head/sys/netinet/tcp_var.h
+++ head/sys/netinet/tcp_var.h
@@ -364,7 +364,7 @@
* options in tcp_addoptions.
*/
struct tcpopt {
- u_int64_t to_flags; /* which options are present */
+ u_int32_t to_flags; /* which options are present */
#define TOF_MSS 0x0001 /* maximum segment size */
#define TOF_SCALE 0x0002 /* window scaling */
#define TOF_SACKPERM 0x0004 /* SACK permitted */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 11:57 PM (15 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32313107
Default Alt Text
D5584.id14517.diff (895 B)
Attached To
Mode
D5584: Use 32-bit integer for TCP options flags
Attached
Detach File
Event Timeline
Log In to Comment