2
0
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:
Michael Brown 2006-08-08 17:44:25 +00:00
parent d2bdf81505
commit 68e33224ef
2 changed files with 3 additions and 10 deletions

View File

@ -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,

View File

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