Skip to content

Commit 34ca686

Browse files
Arnaldo Carvalho de MeloDavid S. Miller
authored andcommitted
[DCCP]: Just rename dccp_v4_prot to dccp_prot
To match TCP equivalent. Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3cf3dc6 commit 34ca686

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

net/dccp/dccp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extern void dccp_time_wait(struct sock *sk, int state, int timeo);
5959

6060
#define DCCP_RTO_MAX ((unsigned)(120 * HZ)) /* FIXME: using TCP value */
6161

62-
extern struct proto dccp_v4_prot;
62+
extern struct proto dccp_prot;
6363

6464
/* is seq1 < seq2 ? */
6565
static inline int before48(const u64 seq1, const u64 seq2)

net/dccp/ipv4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ static struct request_sock_ops dccp_request_sock_ops = {
13171317
.send_reset = dccp_v4_ctl_send_reset,
13181318
};
13191319

1320-
struct proto dccp_v4_prot = {
1320+
struct proto dccp_prot = {
13211321
.name = "DCCP",
13221322
.owner = THIS_MODULE,
13231323
.close = dccp_close,

net/dccp/proto.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ extern struct net_proto_family inet_family_ops;
684684
static struct inet_protosw dccp_v4_protosw = {
685685
.type = SOCK_DCCP,
686686
.protocol = IPPROTO_DCCP,
687-
.prot = &dccp_v4_prot,
687+
.prot = &dccp_prot,
688688
.ops = &inet_dccp_ops,
689689
.capability = -1,
690690
.no_check = 0,
@@ -769,7 +769,7 @@ static int __init dccp_init(void)
769769
{
770770
unsigned long goal;
771771
int ehash_order, bhash_order, i;
772-
int rc = proto_register(&dccp_v4_prot, 1);
772+
int rc = proto_register(&dccp_prot, 1);
773773

774774
if (rc)
775775
goto out;
@@ -872,7 +872,7 @@ static int __init dccp_init(void)
872872
kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);
873873
dccp_hashinfo.bind_bucket_cachep = NULL;
874874
out_proto_unregister:
875-
proto_unregister(&dccp_v4_prot);
875+
proto_unregister(&dccp_prot);
876876
goto out;
877877
}
878878

@@ -895,7 +895,7 @@ static void __exit dccp_fini(void)
895895
get_order(dccp_hashinfo.ehash_size *
896896
sizeof(struct inet_ehash_bucket)));
897897
kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);
898-
proto_unregister(&dccp_v4_prot);
898+
proto_unregister(&dccp_prot);
899899
}
900900

901901
module_init(dccp_init);

0 commit comments

Comments
 (0)