diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-06-19 01:47:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-19 01:47:21 -0400 |
commit | 60236fdd08b2169045a3bbfc5ffe1576e6c3c17b (patch) | |
tree | 4541c682cc72daf560ec516e2b5868089a88b6ea /net/ipv4/tcp_minisocks.c | |
parent | 2e6599cb899ba4b133f42cbf9d2b1883d2dc583a (diff) |
[NET] Rename open_request to request_sock
Ok, this one just renames some stuff to have a better namespace and to
dissassociate it from TCP:
struct open_request -> struct request_sock
tcp_openreq_alloc -> reqsk_alloc
tcp_openreq_free -> reqsk_free
tcp_openreq_fastfree -> __reqsk_free
With this most of the infrastructure closely resembles a struct
sock methods subset.
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 1037401c7cc..0e6d525a834 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -684,7 +684,7 @@ out: | |||
684 | * Actually, we could lots of memory writes here. tp of listening | 684 | * Actually, we could lots of memory writes here. tp of listening |
685 | * socket contains all necessary default parameters. | 685 | * socket contains all necessary default parameters. |
686 | */ | 686 | */ |
687 | struct sock *tcp_create_openreq_child(struct sock *sk, struct open_request *req, struct sk_buff *skb) | 687 | struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, struct sk_buff *skb) |
688 | { | 688 | { |
689 | /* allocate the newsk from the same slab of the master sock, | 689 | /* allocate the newsk from the same slab of the master sock, |
690 | * if not, at sk_free time we'll try to free it from the wrong | 690 | * if not, at sk_free time we'll try to free it from the wrong |
@@ -853,12 +853,12 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct open_request *req, | |||
853 | 853 | ||
854 | /* | 854 | /* |
855 | * Process an incoming packet for SYN_RECV sockets represented | 855 | * Process an incoming packet for SYN_RECV sockets represented |
856 | * as an open_request. | 856 | * as a request_sock. |
857 | */ | 857 | */ |
858 | 858 | ||
859 | struct sock *tcp_check_req(struct sock *sk,struct sk_buff *skb, | 859 | struct sock *tcp_check_req(struct sock *sk,struct sk_buff *skb, |
860 | struct open_request *req, | 860 | struct request_sock *req, |
861 | struct open_request **prev) | 861 | struct request_sock **prev) |
862 | { | 862 | { |
863 | struct tcphdr *th = skb->h.th; | 863 | struct tcphdr *th = skb->h.th; |
864 | struct tcp_sock *tp = tcp_sk(sk); | 864 | struct tcp_sock *tp = tcp_sk(sk); |
@@ -903,7 +903,7 @@ struct sock *tcp_check_req(struct sock *sk,struct sk_buff *skb, | |||
903 | * Enforce "SYN-ACK" according to figure 8, figure 6 | 903 | * Enforce "SYN-ACK" according to figure 8, figure 6 |
904 | * of RFC793, fixed by RFC1122. | 904 | * of RFC793, fixed by RFC1122. |
905 | */ | 905 | */ |
906 | req->class->rtx_syn_ack(sk, req, NULL); | 906 | req->rsk_ops->rtx_syn_ack(sk, req, NULL); |
907 | return NULL; | 907 | return NULL; |
908 | } | 908 | } |
909 | 909 | ||
@@ -975,7 +975,7 @@ struct sock *tcp_check_req(struct sock *sk,struct sk_buff *skb, | |||
975 | tcp_rsk(req)->rcv_isn + 1, tcp_rsk(req)->rcv_isn + 1 + req->rcv_wnd)) { | 975 | tcp_rsk(req)->rcv_isn + 1, tcp_rsk(req)->rcv_isn + 1 + req->rcv_wnd)) { |
976 | /* Out of window: send ACK and drop. */ | 976 | /* Out of window: send ACK and drop. */ |
977 | if (!(flg & TCP_FLAG_RST)) | 977 | if (!(flg & TCP_FLAG_RST)) |
978 | req->class->send_ack(skb, req); | 978 | req->rsk_ops->send_ack(skb, req); |
979 | if (paws_reject) | 979 | if (paws_reject) |
980 | NET_INC_STATS_BH(LINUX_MIB_PAWSESTABREJECTED); | 980 | NET_INC_STATS_BH(LINUX_MIB_PAWSESTABREJECTED); |
981 | return NULL; | 981 | return NULL; |
@@ -1035,7 +1035,7 @@ struct sock *tcp_check_req(struct sock *sk,struct sk_buff *skb, | |||
1035 | embryonic_reset: | 1035 | embryonic_reset: |
1036 | NET_INC_STATS_BH(LINUX_MIB_EMBRYONICRSTS); | 1036 | NET_INC_STATS_BH(LINUX_MIB_EMBRYONICRSTS); |
1037 | if (!(flg & TCP_FLAG_RST)) | 1037 | if (!(flg & TCP_FLAG_RST)) |
1038 | req->class->send_reset(skb); | 1038 | req->rsk_ops->send_reset(skb); |
1039 | 1039 | ||
1040 | tcp_synq_drop(sk, req, prev); | 1040 | tcp_synq_drop(sk, req, prev); |
1041 | return NULL; | 1041 | return NULL; |