Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b9c7862d
Commit
b9c7862d
authored
Jun 14, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Make sure tcp_tw_bucket tw_daddr is aligned properly.
parent
e34410f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
include/net/tcp.h
include/net/tcp.h
+8
-1
No files found.
include/net/tcp.h
View file @
b9c7862d
...
...
@@ -160,6 +160,12 @@ static __inline__ int tcp_bhashfn(__u16 lport)
extern
void
tcp_bind_hash
(
struct
sock
*
sk
,
struct
tcp_bind_bucket
*
tb
,
unsigned
short
snum
);
#if (BITS_PER_LONG == 64)
#define TCP_ADDRCMP_ALIGN_BYTES 8
#else
#define TCP_ADDRCMP_ALIGN_BYTES 4
#endif
/* This is a TIME_WAIT bucket. It works around the memory consumption
* problems of sockets in such a state on heavily loaded servers, but
* without violating the protocol specification.
...
...
@@ -184,7 +190,8 @@ struct tcp_tw_bucket {
__u16
tw_sport
;
/* Socket demultiplex comparisons on incoming packets. */
/* these five are in inet_opt */
__u32
tw_daddr
;
__u32
tw_daddr
__attribute__
((
aligned
(
TCP_ADDRCMP_ALIGN_BYTES
)));
__u32
tw_rcv_saddr
;
__u16
tw_dport
;
__u16
tw_num
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment