core.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* This program is free software; you can redistribute it and/or modify
  2. * it under the terms of the GNU General Public License version 2
  3. * as published by the Free Software Foundation.
  4. *
  5. * This program is distributed in the hope that it will be useful,
  6. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. * GNU General Public License for more details.
  9. *
  10. * Authors:
  11. * (C) 2015 Pengutronix, Alexander Aring <aar@pengutronix.de>
  12. */
  13. #include <linux/module.h>
  14. #include <net/6lowpan.h>
  15. void lowpan_netdev_setup(struct net_device *dev, enum lowpan_lltypes lltype)
  16. {
  17. lowpan_priv(dev)->lltype = lltype;
  18. }
  19. EXPORT_SYMBOL(lowpan_netdev_setup);
  20. static int __init lowpan_module_init(void)
  21. {
  22. request_module_nowait("ipv6");
  23. request_module_nowait("nhc_dest");
  24. request_module_nowait("nhc_fragment");
  25. request_module_nowait("nhc_hop");
  26. request_module_nowait("nhc_ipv6");
  27. request_module_nowait("nhc_mobility");
  28. request_module_nowait("nhc_routing");
  29. request_module_nowait("nhc_udp");
  30. return 0;
  31. }
  32. module_init(lowpan_module_init);
  33. MODULE_LICENSE("GPL");