OpenCores
URL https://opencores.org/ocsvn/plasma/plasma/trunk

Subversion Repositories plasma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 325 to Rev 326
    Reverse comparison

Rev 325 → Rev 326

/trunk/kernel/tcpip.c
152,7 → 152,6
 
static void IPClose2(IPSocket *Socket);
 
static uint8 ethernetAddressNull[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static uint8 ethernetAddressGateway[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
#ifndef WIN32
static uint8 ethernetAddressPlasma[] = {0x00, 0x10, 0xdd, 0xce, 0x15, 0xd4};
912,8 → 911,7
}
 
//Check if ARP request
if(memcmp(packet+ETHERNET_DEST, ethernetAddressNull, 6) ||
packet[ARP_OP] != 0 || packet[ARP_OP+1] != 1 ||
if(packet[ARP_OP] != 0 || packet[ARP_OP+1] != 1 ||
memcmp(packet+ARP_IP_TARGET, ipAddressPlasma, 4))
return 0;
//Create ARP response
1521,6 → 1519,9
static unsigned long ticksPrev=0, ticksPrev2=0;
 
ticks = OS_ThreadTime();
#ifdef WIN32
ticks = ticksPrev + 100;
#endif
if(ticks - ticksPrev >= 95)
{
if(IPVerbose && (Seconds % 60) == 0)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.