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
Enabled heaps of debug in ATA driver to try and solve Qemu issue
[tpg/acess2.git]
/
Modules
/
IPStack
/
ipstack.h
diff --git
a/Modules/IPStack/ipstack.h
b/Modules/IPStack/ipstack.h
index
54d8fb8
..
78faf66
100644
(file)
--- a/
Modules/IPStack/ipstack.h
+++ b/
Modules/IPStack/ipstack.h
@@
-61,6
+61,7
@@
struct sAdapter {
int NRef;
tMacAddr MacAddr;
int NRef;
tMacAddr MacAddr;
+ int DeviceLen;
char Device[];
};
char Device[];
};
@@
-81,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