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
Reworked the IPStack tInterface structure
[tpg/acess2.git]
/
Modules
/
IPStack
/
main.c
diff --git
a/Modules/IPStack/main.c
b/Modules/IPStack/main.c
index
577cd38
..
585f8c3
100644
(file)
--- a/
Modules/IPStack/main.c
+++ b/
Modules/IPStack/main.c
@@
-88,13
+88,19
@@
int IPStack_GetAddressSize(int AddressType)
{
switch(AddressType)
{
- default:
+ case -1: // -1 = maximum
+ return sizeof(tIPv6);
+
case AF_NULL:
return 0;
+
case AF_INET4:
return sizeof(tIPv4);
case AF_INET6:
return sizeof(tIPv6);
+
+ default:
+ return 0;
}
}
UCC
git Repository :: git.ucc.asn.au