git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nearly completed physical init
[tpg/acess2.git]
/
Modules
/
IPStack
/
icmp.c
diff --git
a/Modules/IPStack/icmp.c
b/Modules/IPStack/icmp.c
index
cdc7126
..
088caaa
100644
(file)
--- a/
Modules/IPStack/icmp.c
+++ b/
Modules/IPStack/icmp.c
@@
-54,7
+54,7
@@
void ICMP_GetPacket(tInterface *Interface, void *Address, int Length, void *Buff
}
if(hdr->ID != (Uint16)~hdr->Sequence) {
Warning("[ICMP ] ID and Sequence values do not match");
}
if(hdr->ID != (Uint16)~hdr->Sequence) {
Warning("[ICMP ] ID and Sequence values do not match");
- return ;
+
//
return ;
}
gICMP_PingSlots[hdr->ID].bArrived = 1;
break;
}
gICMP_PingSlots[hdr->ID].bArrived = 1;
break;
@@
-70,6
+70,7
@@
void ICMP_GetPacket(tInterface *Interface, void *Address, int Length, void *Buff
Log("[ICMP ] Destination Unreachable (Code %i)", hdr->Code);
break;
}
Log("[ICMP ] Destination Unreachable (Code %i)", hdr->Code);
break;
}
+// IPv4_Unreachable( Interface, hdr->Code, htons(hdr->Length)-sizeof(tICMPHeader), hdr->Data );
break;
// -- 8: Echo Request
break;
// -- 8: Echo Request
@@
-110,7
+111,7
@@
int ICMP_Ping(tInterface *Interface, tIPv4 Addr)
{
if(gICMP_PingSlots[i].Interface == NULL) break;
}
{
if(gICMP_PingSlots[i].Interface == NULL) break;
}
- if(
gICMP_PingSlots[i].Interface == NULL)
break;
+ if(
i < PING_SLOTS )
break;
Threads_Yield();
}
gICMP_PingSlots[i].Interface = Interface;
Threads_Yield();
}
gICMP_PingSlots[i].Interface = Interface;
UCC
git Repository :: git.ucc.asn.au