ipv4.c (2457552d1e6f3183cd93f81c49a8da5fe8bb0e42) ipv4.c (2c8c1e7297e19bdef3c178c3ea41d898a7716e3e)
1/*
2 * net/dccp/ipv4.c
3 *
4 * An implementation of the DCCP protocol
5 * Arnaldo Carvalho de Melo <acme@conectiva.com.br>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 982 unchanged lines hidden (view full) ---

991 .type = SOCK_DCCP,
992 .protocol = IPPROTO_DCCP,
993 .prot = &dccp_v4_prot,
994 .ops = &inet_dccp_ops,
995 .no_check = 0,
996 .flags = INET_PROTOSW_ICSK,
997};
998
1/*
2 * net/dccp/ipv4.c
3 *
4 * An implementation of the DCCP protocol
5 * Arnaldo Carvalho de Melo <acme@conectiva.com.br>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 982 unchanged lines hidden (view full) ---

991 .type = SOCK_DCCP,
992 .protocol = IPPROTO_DCCP,
993 .prot = &dccp_v4_prot,
994 .ops = &inet_dccp_ops,
995 .no_check = 0,
996 .flags = INET_PROTOSW_ICSK,
997};
998
999static int dccp_v4_init_net(struct net *net)
999static int __net_init dccp_v4_init_net(struct net *net)
1000{
1001 int err;
1002
1003 err = inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET,
1004 SOCK_DCCP, IPPROTO_DCCP, net);
1005 return err;
1006}
1007
1000{
1001 int err;
1002
1003 err = inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET,
1004 SOCK_DCCP, IPPROTO_DCCP, net);
1005 return err;
1006}
1007
1008static void dccp_v4_exit_net(struct net *net)
1008static void __net_exit dccp_v4_exit_net(struct net *net)
1009{
1010 inet_ctl_sock_destroy(net->dccp.v4_ctl_sk);
1011}
1012
1013static struct pernet_operations dccp_v4_ops = {
1014 .init = dccp_v4_init_net,
1015 .exit = dccp_v4_exit_net,
1016};

--- 48 unchanged lines hidden ---
1009{
1010 inet_ctl_sock_destroy(net->dccp.v4_ctl_sk);
1011}
1012
1013static struct pernet_operations dccp_v4_ops = {
1014 .init = dccp_v4_init_net,
1015 .exit = dccp_v4_exit_net,
1016};

--- 48 unchanged lines hidden ---