ipv6.c (2457552d1e6f3183cd93f81c49a8da5fe8bb0e42) ipv6.c (2c8c1e7297e19bdef3c178c3ea41d898a7716e3e)
1/*
2 * DCCP over IPv6
3 * Linux INET6 implementation
4 *
5 * Based on net/dccp6/ipv6.c
6 *
7 * Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
8 *

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

1184static struct inet_protosw dccp_v6_protosw = {
1185 .type = SOCK_DCCP,
1186 .protocol = IPPROTO_DCCP,
1187 .prot = &dccp_v6_prot,
1188 .ops = &inet6_dccp_ops,
1189 .flags = INET_PROTOSW_ICSK,
1190};
1191
1/*
2 * DCCP over IPv6
3 * Linux INET6 implementation
4 *
5 * Based on net/dccp6/ipv6.c
6 *
7 * Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
8 *

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

1184static struct inet_protosw dccp_v6_protosw = {
1185 .type = SOCK_DCCP,
1186 .protocol = IPPROTO_DCCP,
1187 .prot = &dccp_v6_prot,
1188 .ops = &inet6_dccp_ops,
1189 .flags = INET_PROTOSW_ICSK,
1190};
1191
1192static int dccp_v6_init_net(struct net *net)
1192static int __net_init dccp_v6_init_net(struct net *net)
1193{
1194 int err;
1195
1196 err = inet_ctl_sock_create(&net->dccp.v6_ctl_sk, PF_INET6,
1197 SOCK_DCCP, IPPROTO_DCCP, net);
1198 return err;
1199}
1200
1193{
1194 int err;
1195
1196 err = inet_ctl_sock_create(&net->dccp.v6_ctl_sk, PF_INET6,
1197 SOCK_DCCP, IPPROTO_DCCP, net);
1198 return err;
1199}
1200
1201static void dccp_v6_exit_net(struct net *net)
1201static void __net_exit dccp_v6_exit_net(struct net *net)
1202{
1203 inet_ctl_sock_destroy(net->dccp.v6_ctl_sk);
1204}
1205
1206static struct pernet_operations dccp_v6_ops = {
1207 .init = dccp_v6_init_net,
1208 .exit = dccp_v6_exit_net,
1209};

--- 49 unchanged lines hidden ---
1202{
1203 inet_ctl_sock_destroy(net->dccp.v6_ctl_sk);
1204}
1205
1206static struct pernet_operations dccp_v6_ops = {
1207 .init = dccp_v6_init_net,
1208 .exit = dccp_v6_exit_net,
1209};

--- 49 unchanged lines hidden ---