diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/ip.h | 21 | ||||
| -rw-r--r-- | src/include/usr/route.h | 12 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/include/gpxe/ip.h b/src/include/gpxe/ip.h index 352cf6435..d212b3ef7 100644 --- a/src/include/gpxe/ip.h +++ b/src/include/gpxe/ip.h @@ -9,6 +9,7 @@ #include <ip.h> #include <gpxe/retry.h> +#include <gpxe/hotplug.h> /* IP constants */ @@ -36,6 +37,24 @@ struct ipv4_pseudo_header { uint16_t len; }; +/** An IPv4 address/routing table entry */ +struct ipv4_miniroute { + /** List of miniroutes */ + struct list_head list; + + /** Network device */ + struct net_device *netdev; + /** Reference to network device */ + struct reference netdev_ref; + + /** IPv4 address */ + struct in_addr address; + /** Subnet mask */ + struct in_addr netmask; + /** Gateway address */ + struct in_addr gateway; +}; + /* Fragment reassembly buffer */ struct frag_buffer { /* Identification number */ @@ -57,6 +76,8 @@ struct net_device; struct net_protocol; struct tcpip_protocol; +extern struct list_head ipv4_miniroutes; + extern struct net_protocol ipv4_protocol; extern int add_ipv4_address ( struct net_device *netdev, diff --git a/src/include/usr/route.h b/src/include/usr/route.h new file mode 100644 index 000000000..fc8558926 --- /dev/null +++ b/src/include/usr/route.h @@ -0,0 +1,12 @@ +#ifndef _USR_ROUTE_H +#define _USR_ROUTE_H + +/** @file + * + * Routing table management + * + */ + +extern void route ( void ); + +#endif /* _USR_ROUTE_H */ |
