00001 /*************************************************************************** 00002 match.h - description 00003 ------------------- 00004 begin : Thu Dec 9 2004 00005 copyright : (C) 2004 by VooDooMan 00006 email : vdmfun@hotmail.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 00011 VooDoo cIRCle - an IRC (ro)bot 00012 Copyright (C) 2004 by Marian VooDooMan Meravy (vdmfun@hotmail.com) 00013 00014 This program is free software; you can redistribute it and/or 00015 modify it under the terms of the GNU General Public License 00016 as published by the Free Software Foundation; either version 2 00017 of the License, or (at your option) any later version. 00018 00019 This program is distributed in the hope that it will be useful, 00020 but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 GNU General Public License for more details. 00023 00024 You should have received a copy of the GNU General Public License 00025 along with this program; if not, write to the Free Software 00026 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00027 00028 ****************************************************************************/ 00029 00030 /*! 00031 \file 00032 \brief Provides wildcard checks 00033 */ 00034 00035 #ifndef _MATCH_H_ 00036 #define _MATCH_H_ 00037 00038 #include "sock_shared.h" 00039 #include "win_sock.h" 00040 00041 int match(char* mask, char* name); 00042 int match_ipmask(char *mask, char* username, in_addr6_ u_addr, int maskwithusername); 00043 const char *inet_ntop6 (const u_char *src, char *dst, size_t size); 00044 int inetpton(int af, const char *src, void *dst); 00045 int inet_pton(int af, const char *src, void *dst); 00046 00047 const char * inet_ntop (int af, const void *src, char *dst, size_t size); 00048 00049 const char* ipv6_decompress(char* src); 00050 00051 #endif 00052