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
6a91395f
Commit
6a91395f
authored
Mar 07, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipv4: Make ip_rcv_options() return bool.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
ba57b4db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net/ipv4/ip_input.c
net/ipv4/ip_input.c
+3
-3
No files found.
net/ipv4/ip_input.c
View file @
6a91395f
...
...
@@ -265,7 +265,7 @@ int ip_local_deliver(struct sk_buff *skb)
ip_local_deliver_finish
);
}
static
inline
int
ip_rcv_options
(
struct
sk_buff
*
skb
)
static
inline
bool
ip_rcv_options
(
struct
sk_buff
*
skb
)
{
struct
ip_options
*
opt
;
const
struct
iphdr
*
iph
;
...
...
@@ -309,9 +309,9 @@ static inline int ip_rcv_options(struct sk_buff *skb)
goto
drop
;
}
return
0
;
return
false
;
drop:
return
-
1
;
return
true
;
}
static
int
ip_rcv_finish
(
struct
sk_buff
*
skb
)
...
...
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