mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 18:42:53 +03:00
[Settings] Use a settings applicator to configure IPv4 routes.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user