|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 24.52 GB of 70.42 GB (34.82%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
courier-0.66.1/
rfc1035/
- drwxrwxrwx
|
Viewing file: rfc1035sameip.c (1.19 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 1998 - 2000 Double Precision, Inc. ** See COPYING for distribution information. */ #include "config.h" #include "rfc1035.h" #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <errno.h> #include <string.h>
/* ** We have two socket addresses. Did they come from the same IP ** address? */
#if RFC1035_IPV6
int rfc1035_same_ip(const void *a, int al, const void *b, int bl) { char bufa[INET6_ADDRSTRLEN]; char bufb[INET6_ADDRSTRLEN]; struct in6_addr in6a; struct in6_addr in6b; const char *as, *bs;
if (rfc1035_sockaddrip(a, al, &in6a) || rfc1035_sockaddrip(b, bl, &in6b) || (as=inet_ntop(AF_INET6, &in6a, bufa, sizeof(bufa))) == 0 || (bs=inet_ntop(AF_INET6, &in6b, bufb, sizeof(bufb))) == 0 || strcmp(as, bs)) return (0); return (1); }
#else
int rfc1035_same_ip(const void *a, int al, const void *b, int bl) { if ( ((const struct sockaddr_in *)a)->sin_family != AF_INET || ((const struct sockaddr_in *)b)->sin_family != AF_INET || al < sizeof(struct sockaddr_in) || bl < sizeof(struct sockaddr_in)) { return (0); }
return ( ((const struct sockaddr_in *)a)->sin_addr.s_addr == ((const struct sockaddr_in *)b)->sin_addr.s_addr); }
#endif
|