summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2008-03-21 01:01:27 +0100
committerMichael Brown2008-03-21 01:01:27 +0100
commitaec9b8a41b6cad1b257c4e3a7f043f35871aafd0 (patch)
treed75b982ed496f3f5142f5b6c02fcbd3cea868f6e /src/include
parent[Settings] Convert code in src/usr to use settings API. (diff)
downloadipxe-aec9b8a41b6cad1b257c4e3a7f043f35871aafd0.tar.gz
ipxe-aec9b8a41b6cad1b257c4e3a7f043f35871aafd0.tar.xz
ipxe-aec9b8a41b6cad1b257c4e3a7f043f35871aafd0.zip
[Settings] Use a settings applicator to configure IPv4 routes.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/dhcp.h3
-rw-r--r--src/include/gpxe/ip.h5
-rw-r--r--src/include/gpxe/netdevice.h11
3 files changed, 11 insertions, 8 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h
index a8fa811f..de10cc98 100644
--- a/src/include/gpxe/dhcp.h
+++ b/src/include/gpxe/dhcp.h
@@ -557,7 +557,4 @@ extern int create_dhcp_response ( struct net_device *netdev, int msgtype,
extern int start_dhcp ( struct job_interface *job, struct net_device *netdev,
int (*register_options) ( struct net_device *,
struct dhcp_option_block * ));
-extern int dhcp_configure_netdev ( struct net_device *netdev,
- struct dhcp_option_block *options );
-
#endif /* _GPXE_DHCP_H */
diff --git a/src/include/gpxe/ip.h b/src/include/gpxe/ip.h
index a6844093..0a23565b 100644
--- a/src/include/gpxe/ip.h
+++ b/src/include/gpxe/ip.h
@@ -77,9 +77,4 @@ extern struct list_head ipv4_miniroutes;
extern struct net_protocol ipv4_protocol;
-extern int add_ipv4_address ( struct net_device *netdev,
- struct in_addr address, struct in_addr netmask,
- struct in_addr gateway );
-extern void del_ipv4_address ( struct net_device *netdev );
-
#endif /* _GPXE_IP_H */
diff --git a/src/include/gpxe/netdevice.h b/src/include/gpxe/netdevice.h
index 6f5c06f9..4abada7a 100644
--- a/src/include/gpxe/netdevice.h
+++ b/src/include/gpxe/netdevice.h
@@ -341,6 +341,17 @@ netdev_priv ( struct net_device *netdev ) {
return netdev->priv;
}
+/**
+ * Get per-netdevice configuration settings block
+ *
+ * @v netdev Network device
+ * @ret settings Settings block
+ */
+static inline __attribute__ (( always_inline )) struct settings *
+netdev_settings ( struct net_device *netdev ) {
+ return &netdev->settings;
+}
+
extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf );
extern void netdev_tx_complete_err ( struct net_device *netdev,
struct io_buffer *iobuf, int rc );