| 1 | /* |
| 2 | * Copyright (C) 2000 Gediminas ([email protected]) |
| 3 | * Copyright (C) 2002 Bartomiej Butyn ([email protected]) |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version 2 |
| 8 | * of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | */ |
| 19 | #ifndef INCLUDED_IPBAN_TYPES |
| 20 | #define INCLUDED_IPBAN_TYPEScxx . . $ `src/bnetd/ipban.h:20:9`! |
| 21 | |
| 22 | #ifdef IPBAN_INTERNAL_ACCESScxx . . $ `src/bnetd/ipban.cpp:20:9`! |
| 23 | |
| 24 | #include <ctime> |
| 25 | |
| 26 | #define MAX_FUNC_LENcxx . . $ `src/bnetd/ipban.h:26:9`! 10 |
| 27 | #define MAX_IP_STRcxx . . $ `src/bnetd/ipban.h:27:9`! 32 |
| 28 | #define MAX_TIME_STRcxx . . $ `src/bnetd/ipban.h:28:9`! 9 |
| 29 | |
| 30 | #define IPBAN_FUNC_ADDcxx . . $ `src/bnetd/ipban.h:30:9`! 1 |
| 31 | #define IPBAN_FUNC_DELcxx . . $ `src/bnetd/ipban.h:31:9`! 2 |
| 32 | #define IPBAN_FUNC_LISTcxx . . $ `src/bnetd/ipban.h:32:9`! 3 |
| 33 | #define IPBAN_FUNC_CHECKcxx . . $ `src/bnetd/ipban.h:33:9`! 4 |
| 34 | #define IPBAN_FUNC_UNKNOWNcxx . . $ `src/bnetd/ipban.h:34:9`! 5 |
| 35 | |
| 36 | |
| 37 | namespace pvpgncxx . . $ pvpgn/ |
| 38 | { |
| 39 | |
| 40 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 41 | { |
| 42 | |
| 43 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_7964defb23ce40c4_0# |
| 44 | { |
| 45 | ipban_type_exactcxx . . $ pvpgn/bnetd/ipban_type_exact., /* 192.168.0.10 */ |
| 46 | ipban_type_wildcardcxx . . $ pvpgn/bnetd/ipban_type_wildcard., /* 192.168.*.* */ |
| 47 | ipban_type_rangecxx . . $ pvpgn/bnetd/ipban_type_range., /* 192.168.0.10-192.168.0.25 */ |
| 48 | ipban_type_netmaskcxx . . $ pvpgn/bnetd/ipban_type_netmask., /* 192.168.0.0/255.255.0.0 */ |
| 49 | ipban_type_prefixcxx . . $ pvpgn/bnetd/ipban_type_prefix. /* 192.168.0.0/16 */ |
| 50 | } t_ipban_typecxx . . $ pvpgn/bnetd/t_ipban_type#; |
| 51 | |
| 52 | typedef struct ipban_entry_structcxx . . $ pvpgn/bnetd/ipban_entry_struct# |
| 53 | { |
| 54 | char * info1cxx . . $ pvpgn/bnetd/ipban_entry_struct#info1.; /* third octet */ |
| 55 | char * info2cxx . . $ pvpgn/bnetd/ipban_entry_struct#info2.; /* third octet */ |
| 56 | char * info3cxx . . $ pvpgn/bnetd/ipban_entry_struct#info3.; /* third octet */ |
| 57 | char * info4cxx . . $ pvpgn/bnetd/ipban_entry_struct#info4.; /* fourth octet */ |
| 58 | int typecxx . . $ pvpgn/bnetd/ipban_entry_struct#type.; |
| 59 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# endtimecxx . . $ pvpgn/bnetd/ipban_entry_struct#endtime.; |
| 60 | } t_ipban_entrycxx . . $ pvpgn/bnetd/t_ipban_entry#; |
| 61 | |
| 62 | } |
| 63 | |
| 64 | } |
| 65 | |
| 66 | #endif |
| 67 | |
| 68 | #endif |
| 69 | |
| 70 | |
| 71 | /*****/ |
| 72 | #ifndef JUST_NEED_TYPES |
| 73 | #ifndef INCLUDED_IPBAN_PROTOS |
| 74 | #define INCLUDED_IPBAN_PROTOScxx . . $ `src/bnetd/ipban.h:74:9`! |
| 75 | |
| 76 | #include <ctime> |
| 77 | |
| 78 | #define JUST_NEED_TYPEScxx . . $ `src/bnetd/ipban.h:78:9`! |
| 79 | #include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/ |
| 80 | #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/ipban.h:78:9`! |
| 81 | |
| 82 | namespace pvpgncxx . . $ pvpgn/ |
| 83 | { |
| 84 | |
| 85 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 86 | { |
| 87 | |
| 88 | extern int ipbanlist_createcxx . . $ pvpgn/bnetd/ipbanlist_create(b126dc7c1de90089).(void); |
| 89 | extern int ipbanlist_destroycxx . . $ pvpgn/bnetd/ipbanlist_destroy(b126dc7c1de90089).(void); |
| 90 | extern int ipbanlist_loadcxx . . $ pvpgn/bnetd/ipbanlist_load(5c4306d8553b3696).(char const * filename); |
| 91 | extern int ipbanlist_savecxx . . $ pvpgn/bnetd/ipbanlist_save(5c4306d8553b3696).(char const * filename); |
| 92 | extern int ipbanlist_checkcxx . . $ pvpgn/bnetd/ipbanlist_check(5c4306d8553b3696).(char const * addr); |
| 93 | extern int ipbanlist_addcxx . . $ pvpgn/bnetd/ipbanlist_add(648564aa43f2d1f5).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * cp, stdcxx . . $ std/::time_tcxx . . $ std/time_t# endtime); |
| 94 | extern int ipbanlist_unload_expiredcxx . . $ pvpgn/bnetd/ipbanlist_unload_expired(b126dc7c1de90089).(void); |
| 95 | extern stdcxx . . $ std/::time_tcxx . . $ std/time_t# ipbanlist_str_to_time_tcxx . . $ pvpgn/bnetd/ipbanlist_str_to_time_t(5248ec5b220e07bd).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * timestr); |
| 96 | extern int handle_ipban_commandcxx . . $ pvpgn/bnetd/handle_ipban_command(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * text); |
| 97 | |
| 98 | } |
| 99 | |
| 100 | } |
| 101 | |
| 102 | #endif |
| 103 | #endif |