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
Fixed some bugs in ARP and TCP Code
[tpg/acess2.git]
/
Modules
/
IPStack
/
ipstack.h
diff --git
a/Modules/IPStack/ipstack.h
b/Modules/IPStack/ipstack.h
index
95f93c4
..
78faf66
100644
(file)
--- a/
Modules/IPStack/ipstack.h
+++ b/
Modules/IPStack/ipstack.h
@@
-82,9
+82,9
@@
static const tMacAddr cMAC_BROADCAST = {{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}};
#define IP4_SET(t,v) (t).L = (v).L;
#define IP6_SET(t,v) memcpy(&(t),&(v),sizeof(tIPv6))
#define IP4_SET(t,v) (t).L = (v).L;
#define IP6_SET(t,v) memcpy(&(t),&(v),sizeof(tIPv6))
-#define MAC_EQU(a,b)
memcmp(&(a),&(b),sizeof(tMacAddr)
)
+#define MAC_EQU(a,b)
(memcmp(&(a),&(b),sizeof(tMacAddr))==0
)
#define IP4_EQU(a,b) ((a).L==(b).L)
#define IP4_EQU(a,b) ((a).L==(b).L)
-#define IP6_EQU(a,b)
memcmp(&(a),&(b),sizeof(tIPv6)
)
+#define IP6_EQU(a,b)
(memcmp(&(a),&(b),sizeof(tIPv6))==0
)
// === FUNCTIONS ===
#define htonb(v) (v)
// === FUNCTIONS ===
#define htonb(v) (v)
UCC
git Repository :: git.ucc.asn.au