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
7ed96284
Commit
7ed96284
authored
Feb 08, 2004
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILER/ipt_REJECT]: Use LL_RESERVED_SPACE() where applicable.
parent
f226e7de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net/ipv4/netfilter/ipt_REJECT.c
net/ipv4/netfilter/ipt_REJECT.c
+3
-3
No files found.
net/ipv4/netfilter/ipt_REJECT.c
View file @
7ed96284
...
...
@@ -117,7 +117,7 @@ static void send_reset(struct sk_buff *oldskb, int hook)
if
((
rt
=
route_reverse
(
oldskb
,
hook
))
==
NULL
)
return
;
hh_len
=
(
rt
->
u
.
dst
.
dev
->
hard_header_len
+
15
)
&~
15
;
hh_len
=
LL_RESERVED_SPACE
(
rt
->
u
.
dst
.
dev
)
;
/* We need a linear, writeable skb. We also need to expand
headroom in case hh_len of incoming interface < hh_len of
...
...
@@ -305,9 +305,9 @@ static void send_unreach(struct sk_buff *skb_in, int code)
if
(
length
>
576
)
length
=
576
;
hh_len
=
(
rt
->
u
.
dst
.
dev
->
hard_header_len
+
15
)
&~
15
;
hh_len
=
LL_RESERVED_SPACE
(
rt
->
u
.
dst
.
dev
)
;
nskb
=
alloc_skb
(
hh_len
+
15
+
length
,
GFP_ATOMIC
);
nskb
=
alloc_skb
(
hh_len
+
length
,
GFP_ATOMIC
);
if
(
!
nskb
)
{
ip_rt_put
(
rt
);
return
;
...
...
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