mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-23 01:51:58 +00:00
gcc3 compatibility: removed ARP_NET_PROTOCOL().
This commit is contained in:
parent
d2bdf81505
commit
68e33224ef
@ -26,13 +26,8 @@ struct arp_net_protocol {
|
||||
const void *net_addr );
|
||||
};
|
||||
|
||||
/**
|
||||
* Register an ARP protocol
|
||||
*
|
||||
* @v protocol ARP protocol
|
||||
*/
|
||||
#define ARP_NET_PROTOCOL( protocol ) \
|
||||
struct arp_net_protocol protocol __table ( arp_net_protocols, 01 )
|
||||
/** Declare an ARP protocol */
|
||||
#define __arp_net_protocol __table ( arp_net_protocols, 01 )
|
||||
|
||||
extern int arp_resolve ( struct net_device *netdev,
|
||||
struct net_protocol *net_protocol,
|
||||
|
@ -530,9 +530,7 @@ struct tcpip_net_protocol ipv4_tcpip_protocol = {
|
||||
TCPIP_NET_PROTOCOL ( ipv4_tcpip_protocol );
|
||||
|
||||
/** IPv4 ARP protocol */
|
||||
struct arp_net_protocol ipv4_arp_protocol = {
|
||||
struct arp_net_protocol ipv4_arp_protocol __arp_net_protocol = {
|
||||
.net_protocol = &ipv4_protocol,
|
||||
.check = ipv4_arp_check,
|
||||
};
|
||||
|
||||
ARP_NET_PROTOCOL ( ipv4_arp_protocol );
|
||||
|
Loading…
Reference in New Issue
Block a user