From 4c3099bb6c186786858887730b896c6b96415b2a Mon Sep 17 00:00:00 2001 From: ai4rei Date: Fri, 28 Jan 2011 01:38:33 +0000 Subject: * Resolving allow/deny IP rules not working (bugreport:2632). - Fixed 'mask' being filled with 'ip' when standard mask was specified (since r9647). - Fixed 'ip' and 'mask' (bit mask) being stored in wrong byte order (network order instead of host order) (since r10162). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14683 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/socket.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/socket.h') diff --git a/src/common/socket.h b/src/common/socket.h index 93a5dd796..0a740a63f 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -135,6 +135,7 @@ uint32 host2ip(const char* hostname); const char* ip2str(uint32 ip, char ip_str[16]); uint32 str2ip(const char* ip_str); #define CONVIP(ip) ((ip)>>24)&0xFF,((ip)>>16)&0xFF,((ip)>>8)&0xFF,((ip)>>0)&0xFF +#define MAKEIP(a,b,c,d) (uint32)( ( ( (a)&0xFF ) << 24 ) | ( ( (b)&0xFF ) << 16 ) | ( ( (c)&0xFF ) << 8 ) | ( ( (d)&0xFF ) << 0 ) ) uint16 ntows(uint16 netshort); int socket_getips(uint32* ips, int max); -- cgit v1.2.3-60-g2f50