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
nexedi
linux
Commits
f226e7de
Commit
f226e7de
authored
Feb 08, 2004
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4/IGMP]: Use LL_RESERVED_SPACE() where applicable.
parent
e9e8089c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/ipv4/igmp.c
net/ipv4/igmp.c
+2
-2
No files found.
net/ipv4/igmp.c
View file @
f226e7de
...
...
@@ -276,7 +276,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size)
struct
iphdr
*
pip
;
struct
igmpv3_report
*
pig
;
skb
=
alloc_skb
(
size
+
dev
->
hard_header_len
+
15
,
GFP_ATOMIC
);
skb
=
alloc_skb
(
size
+
LL_RESERVED_SPACE
(
dev
)
,
GFP_ATOMIC
);
if
(
skb
==
NULL
)
return
0
;
...
...
@@ -298,7 +298,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size)
skb
->
dst
=
&
rt
->
u
.
dst
;
skb
->
dev
=
dev
;
skb_reserve
(
skb
,
(
dev
->
hard_header_len
+
15
)
&~
15
);
skb_reserve
(
skb
,
LL_RESERVED_SPACE
(
dev
)
);
skb
->
nh
.
iph
=
pip
=
(
struct
iphdr
*
)
skb_put
(
skb
,
sizeof
(
struct
iphdr
)
+
4
);
...
...
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