inet_diag.c (b242a60206881559bb3102110048762422e6b74e) inet_diag.c (b7c6ba6eb1234e35a74fb8ba8123232a7b1ba9e4)
1/*
2 * inet_diag.c Module for monitoring INET transport protocols sockets.
3 *
4 * Version: $Id: inet_diag.c,v 1.3 2002/02/01 22:01:04 davem Exp $
5 *
6 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
7 *
8 * This program is free software; you can redistribute it and/or

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

930 return err;
931out_free_table:
932 kfree(inet_diag_table);
933 goto out;
934}
935
936static void __exit inet_diag_exit(void)
937{
1/*
2 * inet_diag.c Module for monitoring INET transport protocols sockets.
3 *
4 * Version: $Id: inet_diag.c,v 1.3 2002/02/01 22:01:04 davem Exp $
5 *
6 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
7 *
8 * This program is free software; you can redistribute it and/or

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

930 return err;
931out_free_table:
932 kfree(inet_diag_table);
933 goto out;
934}
935
936static void __exit inet_diag_exit(void)
937{
938 sock_release(idiagnl->sk_socket);
938 netlink_kernel_release(idiagnl);
939 kfree(inet_diag_table);
940}
941
942module_init(inet_diag_init);
943module_exit(inet_diag_exit);
944MODULE_LICENSE("GPL");
945MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_INET_DIAG);
939 kfree(inet_diag_table);
940}
941
942module_init(inet_diag_init);
943module_exit(inet_diag_exit);
944MODULE_LICENSE("GPL");
945MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_INET_DIAG);