URL
https://opencores.org/ocsvn/plasma/plasma/trunk
[/] [plasma/] [trunk/] [kernel/] [tcpip.c] - Diff between revs 361 and 367
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 361 |
Rev 367 |
Line 957... |
Line 957... |
//Check if correct destination address
|
//Check if correct destination address
|
if(memcmp(packet+ETHERNET_DEST, ethernetAddressPlasma, 6) ||
|
if(memcmp(packet+ETHERNET_DEST, ethernetAddressPlasma, 6) ||
|
memcmp(packet+IP_DEST, ipAddressPlasma, 4))
|
memcmp(packet+IP_DEST, ipAddressPlasma, 4))
|
return 0;
|
return 0;
|
rc = EthernetVerifyChecksums(packet, frameIn->length);
|
rc = EthernetVerifyChecksums(packet, frameIn->length);
|
//if(rc)
|
#ifndef WIN32
|
//{
|
if(rc && FrameSendFunc)
|
// printf("C ");
|
{
|
// return;
|
printf("C ");
|
//}
|
return 0;
|
|
}
|
|
#endif
|
|
|
//PING request?
|
//PING request?
|
if(packet[IP_PROTOCOL] == 1)
|
if(packet[IP_PROTOCOL] == 1)
|
{
|
{
|
if(packet[PING_TYPE] == 0) //PING reply
|
if(packet[PING_TYPE] == 0) //PING reply
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.