mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 10:32:52 +03:00
Simplify RX data path.
Kill off the static single net device and move to proper dynamic registration (which we need with the new device model). Break the (flawed) assumption that all network-layer protocols can use ARP; such network-layer protocols (i.e. IPv4) must now register as an ARP protocol using ARP_NET_PROTOCOL() and provide a single method for checking the existence of a local network-layer address.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <ip.h>
|
||||
|
||||
struct net_protocol;
|
||||
|
||||
extern struct net_protocol ipv4_protocol;
|
||||
@@ -15,6 +17,6 @@ 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 );
|
||||
extern int ipv4_uip_transmit ( struct pk_buff *pkb );
|
||||
extern int ipv4_uip_tx ( struct pk_buff *pkb );
|
||||
|
||||
#endif /* _GPXE_IP_H */
|
||||
|
||||
Reference in New Issue
Block a user