Commit 6a27f5ea authored by David S. Miller's avatar David S. Miller Committed by Sridhar Samudrala

[TCP]: Named struct initializers and tabbing fixes.

parent a7280d6a
......@@ -2049,14 +2049,14 @@ int tcp_v4_tw_remember_stamp(struct tcp_tw_bucket *tw)
struct tcp_func ipv4_specific = {
.queue_xmit = ip_queue_xmit,
.send_check = tcp_v4_send_check,
.rebuild_header =tcp_v4_rebuild_header,
.rebuild_header = tcp_v4_rebuild_header,
.conn_request = tcp_v4_conn_request,
.syn_recv_sock =tcp_v4_syn_recv_sock,
.remember_stamp =tcp_v4_remember_stamp,
.net_header_len =sizeof(struct iphdr),
.syn_recv_sock = tcp_v4_syn_recv_sock,
.remember_stamp = tcp_v4_remember_stamp,
.net_header_len = sizeof(struct iphdr),
.setsockopt = ip_setsockopt,
.getsockopt = ip_getsockopt,
.addr2sockaddr =v4_addr2sockaddr,
.addr2sockaddr = v4_addr2sockaddr,
.sockaddr_len = sizeof(struct sockaddr_in),
};
......
......@@ -934,11 +934,11 @@ static void tcp_v6_or_free(struct open_request *req)
}
static struct or_calltable or_ipv6 = {
AF_INET6,
tcp_v6_send_synack,
tcp_v6_or_send_ack,
tcp_v6_or_free,
tcp_v6_send_reset
.family = AF_INET6,
.rtx_syn_ack = tcp_v6_send_synack,
.send_ack = tcp_v6_or_send_ack,
.destructor = tcp_v6_or_free,
.send_reset = tcp_v6_send_reset
};
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)
}
static struct tcp_func ipv6_specific = {
tcp_v6_xmit,
tcp_v6_send_check,
tcp_v6_rebuild_header,
tcp_v6_conn_request,
tcp_v6_syn_recv_sock,
tcp_v6_remember_stamp,
sizeof(struct ipv6hdr),
ipv6_setsockopt,
ipv6_getsockopt,
v6_addr2sockaddr,
sizeof(struct sockaddr_in6)
.queue_xmit = tcp_v6_xmit,
.send_check = tcp_v6_send_check,
.rebuild_header = tcp_v6_rebuild_header,
.conn_request = tcp_v6_conn_request,
.syn_recv_sock = tcp_v6_syn_recv_sock,
.remember_stamp = tcp_v6_remember_stamp,
.net_header_len = sizeof(struct ipv6hdr),
.setsockopt = ipv6_setsockopt,
.getsockopt = ipv6_getsockopt,
.addr2sockaddr = v6_addr2sockaddr,
.sockaddr_len = sizeof(struct sockaddr_in6)
};
/*
......@@ -1831,18 +1831,18 @@ static struct tcp_func ipv6_specific = {
*/
static struct tcp_func ipv6_mapped = {
ip_queue_xmit,
tcp_v4_send_check,
tcp_v4_rebuild_header,
tcp_v6_conn_request,
tcp_v6_syn_recv_sock,
tcp_v4_remember_stamp,
sizeof(struct iphdr),
ipv6_setsockopt,
ipv6_getsockopt,
v6_addr2sockaddr,
sizeof(struct sockaddr_in6)
.queue_xmit = ip_queue_xmit,
.send_check = tcp_v4_send_check,
.rebuild_header = tcp_v4_rebuild_header,
.conn_request = tcp_v6_conn_request,
.syn_recv_sock = tcp_v6_syn_recv_sock,
.remember_stamp = tcp_v4_remember_stamp,
.net_header_len = sizeof(struct iphdr),
.setsockopt = ipv6_setsockopt,
.getsockopt = ipv6_getsockopt,
.addr2sockaddr = v6_addr2sockaddr,
.sockaddr_len = sizeof(struct sockaddr_in6)
};
......@@ -2188,7 +2188,7 @@ static struct inet_protosw tcpv6_protosw = {
.protocol = IPPROTO_TCP,
.prot = &tcpv6_prot,
.ops = &inet6_stream_ops,
.capability =-1,
.capability = -1,
.no_check = 0,
.flags = INET_PROTOSW_PERMANENT,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment