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
98dc7039
Commit
98dc7039
authored
Sep 29, 2004
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6] Fix skb allocation size for RST and ACK.
Signed-off-by:
Hideaki YOSHIFUJI
<
yoshfuji@linux-ipv6.org
>
parent
89277f98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+9
-7
No files found.
net/ipv6/tcp_ipv6.c
View file @
98dc7039
...
...
@@ -1003,11 +1003,12 @@ static void tcp_v6_send_reset(struct sk_buff *skb)
* and then put it into the queue to be sent.
*/
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
),
GFP_ATOMIC
);
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
sizeof
(
struct
tcphdr
),
GFP_ATOMIC
);
if
(
buff
==
NULL
)
return
;
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
));
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
sizeof
(
struct
tcphdr
)
);
t1
=
(
struct
tcphdr
*
)
skb_push
(
buff
,
sizeof
(
struct
tcphdr
));
...
...
@@ -1065,14 +1066,15 @@ static void tcp_v6_send_ack(struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32
struct
flowi
fl
;
int
tot_len
=
sizeof
(
struct
tcphdr
);
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
),
GFP_ATOMIC
);
if
(
ts
)
tot_len
+=
3
*
4
;
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
tot_len
,
GFP_ATOMIC
);
if
(
buff
==
NULL
)
return
;
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
));
if
(
ts
)
tot_len
+=
3
*
4
;
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
tot_len
);
t1
=
(
struct
tcphdr
*
)
skb_push
(
buff
,
tot_len
);
...
...
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