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
e5cd84c9
Commit
e5cd84c9
authored
Jul 07, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Type qualifiers, such as const, are ignored on function return type.
parent
d93b7e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/net/tcp.h
include/net/tcp.h
+3
-3
No files found.
include/net/tcp.h
View file @
e5cd84c9
...
@@ -272,20 +272,20 @@ static __inline__ int tw_del_dead_node(struct tcp_tw_bucket *tw)
...
@@ -272,20 +272,20 @@ static __inline__ int tw_del_dead_node(struct tcp_tw_bucket *tw)
#define tcptw_sk(__sk) ((struct tcp_tw_bucket *)(__sk))
#define tcptw_sk(__sk) ((struct tcp_tw_bucket *)(__sk))
static
inline
const
u32
tcp_v4_rcv_saddr
(
const
struct
sock
*
sk
)
static
inline
u32
tcp_v4_rcv_saddr
(
const
struct
sock
*
sk
)
{
{
return
likely
(
sk
->
sk_state
!=
TCP_TIME_WAIT
)
?
return
likely
(
sk
->
sk_state
!=
TCP_TIME_WAIT
)
?
inet_sk
(
sk
)
->
rcv_saddr
:
tcptw_sk
(
sk
)
->
tw_rcv_saddr
;
inet_sk
(
sk
)
->
rcv_saddr
:
tcptw_sk
(
sk
)
->
tw_rcv_saddr
;
}
}
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
static
inline
const
struct
in6_addr
*
__tcp_v6_rcv_saddr
(
const
struct
sock
*
sk
)
static
inline
struct
in6_addr
*
__tcp_v6_rcv_saddr
(
const
struct
sock
*
sk
)
{
{
return
likely
(
sk
->
sk_state
!=
TCP_TIME_WAIT
)
?
return
likely
(
sk
->
sk_state
!=
TCP_TIME_WAIT
)
?
&
inet6_sk
(
sk
)
->
rcv_saddr
:
&
tcptw_sk
(
sk
)
->
tw_v6_rcv_saddr
;
&
inet6_sk
(
sk
)
->
rcv_saddr
:
&
tcptw_sk
(
sk
)
->
tw_v6_rcv_saddr
;
}
}
static
inline
const
struct
in6_addr
*
tcp_v6_rcv_saddr
(
const
struct
sock
*
sk
)
static
inline
struct
in6_addr
*
tcp_v6_rcv_saddr
(
const
struct
sock
*
sk
)
{
{
return
sk
->
sk_family
==
AF_INET6
?
__tcp_v6_rcv_saddr
(
sk
)
:
NULL
;
return
sk
->
sk_family
==
AF_INET6
?
__tcp_v6_rcv_saddr
(
sk
)
:
NULL
;
}
}
...
...
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