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
Tools/NetTest - Fixed ip checksum, pcap packet trace, cleanup
[tpg/acess2.git]
/
Tools
/
NetTest_Runner
/
tcp.c
diff --git
a/Tools/NetTest_Runner/tcp.c
b/Tools/NetTest_Runner/tcp.c
index
0bf0a67
..
22a21a1
100644
(file)
--- a/
Tools/NetTest_Runner/tcp.c
+++ b/
Tools/NetTest_Runner/tcp.c
@@
-28,6
+28,9
@@
uint16_t TCP_int_GetPseudoHeader(int AF, const void *SrcAddr, const void *DstAdd
phdr[8] = 0;
phdr[9] = pctl;
*(uint16_t*)(phdr+10) = htons(Len);
+
+ //test_trace_hexdump("TCP IPv4 PHdr", phdr, sizeof(phdr));
+
return IP_Checksum(IP_CHECKSUM_START, 12, phdr);
}
else {
UCC
git Repository :: git.ucc.asn.au