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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/bootloaders/orpmon/services
    from Rev 246 to Rev 405
    Reverse comparison

Rev 246 → Rev 405

/net.c
122,7 → 122,7
int
NetLoop(proto_t protocol)
{
#if 1
 
if (!NetTxPacket) {
int i;
printf("NetTxPacket begin setup\n");
264,7 → 264,7
return 0;
}
}
#endif
 
}
 
/**********************************************************************/
460,11 → 460,11
printf("Got IP\n");
#endif
if (len < IP_HDR_SIZE) {
debug ("len bad %d < %d\n", len, IP_HDR_SIZE);
debug ("ip header len bad %d < %d\n", len, IP_HDR_SIZE);
return;
}
if (len < SWAP16(ip->ip_len)) {
printf("len bad %d < %d\n", len, SWAP16(ip->ip_len));
printf("ip header (swap) len bad %d < %d\n", len, SWAP16(ip->ip_len));
return;
}
len = SWAP16(ip->ip_len);
/tftp.c
268,6 → 268,7
TftpServerPort = src;
TftpLastBlock = 0;
 
 
if (TftpBlock != 1) { /* Assertion */
printf ("\nTFTP error: "
"First block is not block 1 (%d)\n"
277,8 → 278,11
break;
}
}
 
if (TftpBlock == TftpLastBlock) {
#ifdef ET_DEBUG
printf("block %d - repeated\n",TftpLastBlock);
#endif
/*
* Same block again; resend ack (maybe got lost last time)
*/
287,6 → 291,9
}
else
{
#ifdef ET_DEBUG
printf("block %d - OK\n",TftpLastBlock);
#endif
TftpLastBlock = TftpBlock;
NetSetTimeout (TIMEOUT * TICKS_PER_SEC, TftpTimeout);

powered by: WebSVN 2.1.0

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