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
6a27f5ea
Commit
6a27f5ea
authored
Jan 20, 2003
by
David S. Miller
Committed by
Sridhar Samudrala
Jan 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Named struct initializers and tabbing fixes.
parent
a7280d6a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
97 additions
and
97 deletions
+97
-97
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+44
-44
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+53
-53
No files found.
net/ipv4/tcp_ipv4.c
View file @
6a27f5ea
...
@@ -2049,14 +2049,14 @@ int tcp_v4_tw_remember_stamp(struct tcp_tw_bucket *tw)
...
@@ -2049,14 +2049,14 @@ int tcp_v4_tw_remember_stamp(struct tcp_tw_bucket *tw)
struct
tcp_func
ipv4_specific
=
{
struct
tcp_func
ipv4_specific
=
{
.
queue_xmit
=
ip_queue_xmit
,
.
queue_xmit
=
ip_queue_xmit
,
.
send_check
=
tcp_v4_send_check
,
.
send_check
=
tcp_v4_send_check
,
.
rebuild_header
=
tcp_v4_rebuild_header
,
.
rebuild_header
=
tcp_v4_rebuild_header
,
.
conn_request
=
tcp_v4_conn_request
,
.
conn_request
=
tcp_v4_conn_request
,
.
syn_recv_sock
=
tcp_v4_syn_recv_sock
,
.
syn_recv_sock
=
tcp_v4_syn_recv_sock
,
.
remember_stamp
=
tcp_v4_remember_stamp
,
.
remember_stamp
=
tcp_v4_remember_stamp
,
.
net_header_len
=
sizeof
(
struct
iphdr
),
.
net_header_len
=
sizeof
(
struct
iphdr
),
.
setsockopt
=
ip_setsockopt
,
.
setsockopt
=
ip_setsockopt
,
.
getsockopt
=
ip_getsockopt
,
.
getsockopt
=
ip_getsockopt
,
.
addr2sockaddr
=
v4_addr2sockaddr
,
.
addr2sockaddr
=
v4_addr2sockaddr
,
.
sockaddr_len
=
sizeof
(
struct
sockaddr_in
),
.
sockaddr_len
=
sizeof
(
struct
sockaddr_in
),
};
};
...
...
net/ipv6/tcp_ipv6.c
View file @
6a27f5ea
...
@@ -934,11 +934,11 @@ static void tcp_v6_or_free(struct open_request *req)
...
@@ -934,11 +934,11 @@ static void tcp_v6_or_free(struct open_request *req)
}
}
static
struct
or_calltable
or_ipv6
=
{
static
struct
or_calltable
or_ipv6
=
{
AF_INET6
,
.
family
=
AF_INET6
,
tcp_v6_send_synack
,
.
rtx_syn_ack
=
tcp_v6_send_synack
,
tcp_v6_or_send_ack
,
.
send_ack
=
tcp_v6_or_send_ack
,
tcp_v6_or_free
,
.
destructor
=
tcp_v6_or_free
,
tcp_v6_send_reset
.
send_reset
=
tcp_v6_send_reset
};
};
static
int
ipv6_opt_accepted
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
static
int
ipv6_opt_accepted
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
...
@@ -1812,18 +1812,18 @@ static int tcp_v6_remember_stamp(struct sock *sk)
...
@@ -1812,18 +1812,18 @@ static int tcp_v6_remember_stamp(struct sock *sk)
}
}
static
struct
tcp_func
ipv6_specific
=
{
static
struct
tcp_func
ipv6_specific
=
{
tcp_v6_xmit
,
.
queue_xmit
=
tcp_v6_xmit
,
tcp_v6_send_check
,
.
send_check
=
tcp_v6_send_check
,
tcp_v6_rebuild_header
,
.
rebuild_header
=
tcp_v6_rebuild_header
,
tcp_v6_conn_request
,
.
conn_request
=
tcp_v6_conn_request
,
tcp_v6_syn_recv_sock
,
.
syn_recv_sock
=
tcp_v6_syn_recv_sock
,
tcp_v6_remember_stamp
,
.
remember_stamp
=
tcp_v6_remember_stamp
,
sizeof
(
struct
ipv6hdr
),
.
net_header_len
=
sizeof
(
struct
ipv6hdr
),
ipv6_setsockopt
,
.
setsockopt
=
ipv6_setsockopt
,
ipv6_getsockopt
,
.
getsockopt
=
ipv6_getsockopt
,
v6_addr2sockaddr
,
.
addr2sockaddr
=
v6_addr2sockaddr
,
sizeof
(
struct
sockaddr_in6
)
.
sockaddr_len
=
sizeof
(
struct
sockaddr_in6
)
};
};
/*
/*
...
@@ -1831,18 +1831,18 @@ static struct tcp_func ipv6_specific = {
...
@@ -1831,18 +1831,18 @@ static struct tcp_func ipv6_specific = {
*/
*/
static
struct
tcp_func
ipv6_mapped
=
{
static
struct
tcp_func
ipv6_mapped
=
{
ip_queue_xmit
,
.
queue_xmit
=
ip_queue_xmit
,
tcp_v4_send_check
,
.
send_check
=
tcp_v4_send_check
,
tcp_v4_rebuild_header
,
.
rebuild_header
=
tcp_v4_rebuild_header
,
tcp_v6_conn_request
,
.
conn_request
=
tcp_v6_conn_request
,
tcp_v6_syn_recv_sock
,
.
syn_recv_sock
=
tcp_v6_syn_recv_sock
,
tcp_v4_remember_stamp
,
.
remember_stamp
=
tcp_v4_remember_stamp
,
sizeof
(
struct
iphdr
),
.
net_header_len
=
sizeof
(
struct
iphdr
),
ipv6_setsockopt
,
.
setsockopt
=
ipv6_setsockopt
,
ipv6_getsockopt
,
.
getsockopt
=
ipv6_getsockopt
,
v6_addr2sockaddr
,
.
addr2sockaddr
=
v6_addr2sockaddr
,
sizeof
(
struct
sockaddr_in6
)
.
sockaddr_len
=
sizeof
(
struct
sockaddr_in6
)
};
};
...
@@ -2188,7 +2188,7 @@ static struct inet_protosw tcpv6_protosw = {
...
@@ -2188,7 +2188,7 @@ static struct inet_protosw tcpv6_protosw = {
.
protocol
=
IPPROTO_TCP
,
.
protocol
=
IPPROTO_TCP
,
.
prot
=
&
tcpv6_prot
,
.
prot
=
&
tcpv6_prot
,
.
ops
=
&
inet6_stream_ops
,
.
ops
=
&
inet6_stream_ops
,
.
capability
=
-
1
,
.
capability
=
-
1
,
.
no_check
=
0
,
.
no_check
=
0
,
.
flags
=
INET_PROTOSW_PERMANENT
,
.
flags
=
INET_PROTOSW_PERMANENT
,
};
};
...
...
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