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
ba57b4db
Commit
ba57b4db
authored
Mar 07, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipv4: Make ip_call_ra_chain() return bool.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
b2d3298e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/net/ip.h
include/net/ip.h
+1
-1
net/ipv4/ip_input.c
net/ipv4/ip_input.c
+4
-4
No files found.
include/net/ip.h
View file @
ba57b4db
...
...
@@ -388,7 +388,7 @@ static inline int sk_mc_loop(struct sock *sk)
return
1
;
}
extern
int
ip_call_ra_chain
(
struct
sk_buff
*
skb
);
extern
bool
ip_call_ra_chain
(
struct
sk_buff
*
skb
);
/*
* Functions provided by ip_fragment.c
...
...
net/ipv4/ip_input.c
View file @
ba57b4db
...
...
@@ -148,7 +148,7 @@
/*
* Process Router Attention IP option (RFC 2113)
*/
int
ip_call_ra_chain
(
struct
sk_buff
*
skb
)
bool
ip_call_ra_chain
(
struct
sk_buff
*
skb
)
{
struct
ip_ra_chain
*
ra
;
u8
protocol
=
ip_hdr
(
skb
)
->
protocol
;
...
...
@@ -167,7 +167,7 @@ int ip_call_ra_chain(struct sk_buff *skb)
net_eq
(
sock_net
(
sk
),
dev_net
(
dev
)))
{
if
(
ip_is_fragment
(
ip_hdr
(
skb
)))
{
if
(
ip_defrag
(
skb
,
IP_DEFRAG_CALL_RA_CHAIN
))
return
1
;
return
true
;
}
if
(
last
)
{
struct
sk_buff
*
skb2
=
skb_clone
(
skb
,
GFP_ATOMIC
);
...
...
@@ -180,9 +180,9 @@ int ip_call_ra_chain(struct sk_buff *skb)
if
(
last
)
{
raw_rcv
(
last
,
skb
);
return
1
;
return
true
;
}
return
0
;
return
false
;
}
static
int
ip_local_deliver_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