選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _USR_ROUTE_H
  2. #define _USR_ROUTE_H
  3. /** @file
  4. *
  5. * Routing management
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #include <ipxe/tables.h>
  10. /** A routing family */
  11. struct routing_family {
  12. /**
  13. * Print routes for a network device
  14. *
  15. * @v netdev Network device
  16. */
  17. void ( * print ) ( struct net_device *netdev );
  18. };
  19. /** Routing family table */
  20. #define ROUTING_FAMILIES __table ( struct routing_family, "routing_families" )
  21. /** Declare a routing family */
  22. #define __routing_family( order ) __table_entry ( ROUTING_FAMILIES, order )
  23. #define ROUTING_IPV4 01
  24. #define ROUTING_IPV6 02
  25. extern void route ( void );
  26. #endif /* _USR_ROUTE_H */