[Settings] Use a settings applicator to configure IPv4 routes.

This commit is contained in:
Michael Brown
2008-03-21 00:01:27 +00:00
parent eae6ac3d0b
commit aec9b8a41b
7 changed files with 51 additions and 86 deletions

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 );