dummy.c 795 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * lib/route/link/dummy.c Dummy Interfaces
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation version 2.1
  7. * of the License.
  8. *
  9. * Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
  10. */
  11. /**
  12. * @ingroup link
  13. * @defgroup dummy Dummy
  14. *
  15. * @details
  16. * \b Link Type Name: "dummy"
  17. *
  18. * @{
  19. */
  20. #include <netlink-private/netlink.h>
  21. #include <netlink/netlink.h>
  22. #include <netlink-private/route/link/api.h>
  23. static struct rtnl_link_info_ops dummy_info_ops = {
  24. .io_name = "dummy",
  25. };
  26. static void __init dummy_init(void)
  27. {
  28. rtnl_link_register_info(&dummy_info_ops);
  29. }
  30. static void __exit dummy_exit(void)
  31. {
  32. rtnl_link_unregister_info(&dummy_info_ops);
  33. }
  34. /** @} */