/[cvs]/eggdrop1.9/src/dns.h
ViewVC logotype

Contents of /eggdrop1.9/src/dns.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download) (as text)
Wed Oct 10 10:44:04 2001 UTC (18 years, 3 months ago) by tothwolf
Branch: MAIN
Changes since 1.7: +1 -2 lines
File MIME type: text/x-csrc
all expmem functions and support removed
all memory status/debugging code removed
all #ifdef DEBUG_MEM code removed

nmalloc macro/n_malloc function removed, use malloc() now
mod_malloc function removed
my_strdup function removed, use malloc_strcpy macro now
channel_malloc removed, use malloc_memset macro now
n_malloc_null function removed, use malloc_memset macro now
user_malloc macro/_user_malloc function removed, use malloc() now

nrealloc macro/n_realloc function removed, use realloc() now
mod_realloc function removed

nfree macro/n_free function removed, use free() now
mod_free function removed
my_free macro removed, use free_null macro now
Tcl_Free compat macro now uses free() instead of removed n_free function

malloc->strcpy now uses malloc_strcpy macro
free(ptr);ptr=NULL; now uses free_null macro
malloc->bzero now uses malloc_memset macro
get_data_ptr macro/_get_data_ptr function removed, use malloc_memset macro now

compat memcpy removed
compat memset removed
egg_memcpy/my_memcpy misuse/mess changed to memcpy
egg_bzero/bzero macro removed, use memset() now

many uninitialized pointers now default to NULL

match.c is now compiled on it's own instead of being included into tclhash.c
match.c cleanup, removed broken/incomplete ircII compat code
wild_match macro removed, _wild_match function renamed to wild_match
wild_match_per function no longer declared static
added prototypes for wild_match and wild_match_per functions

Major function/macro changes:
  nmalloc -> malloc()
  nrealloc -> realloc()
  nfree -> free()

Bugs found and fixed during audit:
  buffer overflow in adduser()

Bugs fixed when code was removed:
  typo in filedb3.c: EBUG_MEM -> DEBUG_MEM
  extra egg_bzero call from filesys.c

1 /*
2 * dns.h
3 * stuff used by dns.c
4 *
5 * $Id: dns.h,v 1.7 2001/07/26 17:04:33 drummer Exp $
6 */
7 /*
8 * Written by Fabian Knittel <fknittel@gmx.de>
9 *
10 * Copyright (C) 1999, 2000, 2001 Eggheads Development Team
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
27 #ifndef _EGG_DNS_H
28 #define _EGG_DNS_H
29
30 typedef struct {
31 char *name;
32 void (*event)(char *, char *, int, void *);
33 } devent_type;
34
35 typedef struct {
36 char *proc; /* Tcl proc */
37 char *paras; /* Additional parameters */
38 } devent_tclinfo_t;
39
40 typedef struct devent_str {
41 struct devent_str *next; /* Pointer to next dns_event */
42 devent_type *type;
43 u_8bit_t lookup; /* RES_IPBYHOST or RES_HOSTBYIP */
44 char *hostname; /* Hostname or IP address (as string) */
45 void *other; /* Data specific to the event type */
46 } devent_t;
47
48 #define DNS_CHECK_IPV4 1
49 #define DNS_CHECK_IPV6 2
50 #define DNS_CHECK_BOTH 3
51
52 #endif /* _EGG_DNS_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23