af_key.c (2457552d1e6f3183cd93f81c49a8da5fe8bb0e42) af_key.c (2c8c1e7297e19bdef3c178c3ea41d898a7716e3e)
1/*
2 * net/key/af_key.c An implementation of PF_KEYv2 sockets.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

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

3733
3734 e = proc_net_fops_create(net, "pfkey", 0, &pfkey_proc_ops);
3735 if (e == NULL)
3736 return -ENOMEM;
3737
3738 return 0;
3739}
3740
1/*
2 * net/key/af_key.c An implementation of PF_KEYv2 sockets.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

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

3733
3734 e = proc_net_fops_create(net, "pfkey", 0, &pfkey_proc_ops);
3735 if (e == NULL)
3736 return -ENOMEM;
3737
3738 return 0;
3739}
3740
3741static void pfkey_exit_proc(struct net *net)
3741static void __net_exit pfkey_exit_proc(struct net *net)
3742{
3743 proc_net_remove(net, "pfkey");
3744}
3745#else
3742{
3743 proc_net_remove(net, "pfkey");
3744}
3745#else
3746static int __net_init pfkey_init_proc(struct net *net)
3746static inline int pfkey_init_proc(struct net *net)
3747{
3748 return 0;
3749}
3750
3747{
3748 return 0;
3749}
3750
3751static void pfkey_exit_proc(struct net *net)
3751static inline void pfkey_exit_proc(struct net *net)
3752{
3753}
3754#endif
3755
3756static struct xfrm_mgr pfkeyv2_mgr =
3757{
3758 .id = "pfkeyv2",
3759 .notify = pfkey_send_notify,

--- 74 unchanged lines hidden ---
3752{
3753}
3754#endif
3755
3756static struct xfrm_mgr pfkeyv2_mgr =
3757{
3758 .id = "pfkeyv2",
3759 .notify = pfkey_send_notify,

--- 74 unchanged lines hidden ---