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
586a9859
Commit
586a9859
authored
Sep 29, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: In arp_rcv(), inspect skb->nh.arph after pskb_may_pull() not before.
parent
525e26f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
net/ipv4/arp.c
net/ipv4/arp.c
+2
-1
No files found.
net/ipv4/arp.c
View file @
586a9859
...
...
@@ -829,7 +829,7 @@ int arp_process(struct sk_buff *skb)
int
arp_rcv
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
struct
packet_type
*
pt
)
{
struct
arphdr
*
arp
=
skb
->
nh
.
arph
;
struct
arphdr
*
arp
;
/* ARP header, plus 2 device addresses, plus 2 IP addresses. */
if
(
!
pskb_may_pull
(
skb
,
(
sizeof
(
struct
arphdr
)
+
...
...
@@ -837,6 +837,7 @@ int arp_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt)
(
2
*
sizeof
(
u32
)))))
goto
freeskb
;
arp
=
skb
->
nh
.
arph
;
if
(
arp
->
ar_hln
!=
dev
->
addr_len
||
dev
->
flags
&
IFF_NOARP
||
skb
->
pkt_type
==
PACKET_OTHERHOST
||
...
...
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