extern tInterface *gIP_Interfaces;
extern void ICMP_Initialise();
extern int ICMP_Ping(tInterface *Interface, tIPv4 Addr);
-extern void UDP_Initialise();
extern tMacAddr ARP_Resolve4(tInterface *Interface, tIPv4 Address);
// === PROTOTYPES ===
int IPv4_Initialise()
{
ICMP_Initialise();
- UDP_Initialise();
Link_RegisterType(IPV4_ETHERNET_ID, IPv4_int_GetPacket);
return 1;
}
data = &hdr->Options[0];
// Send it on
- gaIPv4_Callbacks[hdr->Protocol] (iface, &hdr->Source, dataLength, data);
+ if( gaIPv4_Callbacks[hdr->Protocol] )
+ gaIPv4_Callbacks[hdr->Protocol] (iface, &hdr->Source, dataLength, data);
+ else
+ Log("[IPv4 ] Unknown Protocol %i", hdr->Protocol);
}
/**