summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/ip.h
diff options
context:
space:
mode:
authorMichael Brown2007-01-10 21:38:20 +0100
committerMichael Brown2007-01-10 21:38:20 +0100
commitd9ba8f790b2b0ad7e22b96e46dc5e0946815e512 (patch)
tree21c185a7baf98f25fc00b2803b90903926e0f0df /src/include/gpxe/ip.h
parentTry booting from the "boot" network device first (i.e. the one which we (diff)
downloadipxe-d9ba8f790b2b0ad7e22b96e46dc5e0946815e512.tar.gz
ipxe-d9ba8f790b2b0ad7e22b96e46dc5e0946815e512.tar.xz
ipxe-d9ba8f790b2b0ad7e22b96e46dc5e0946815e512.zip
Add route() function to display routing table.
Diffstat (limited to 'src/include/gpxe/ip.h')
-rw-r--r--src/include/gpxe/ip.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/gpxe/ip.h b/src/include/gpxe/ip.h
index 352cf643..d212b3ef 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,