moodns-cvs Mailing List for moodns (Page 8)
Status: Alpha
Brought to you by:
mawolf
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(19) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(47) |
Feb
(71) |
Mar
(11) |
Apr
|
May
|
Jun
(18) |
Jul
(20) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Michael W. <ma...@us...> - 2001-12-29 12:10:23
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv6686/src Modified Files: cache.c Log Message: Dumb changes. Index: cache.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/cache.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cache.c 2001/12/21 13:28:34 1.2 --- cache.c 2001/12/29 12:10:20 1.3 *************** *** 1,21 **** /* Copyright (c) 2001 Michael Wolf. All rights reserved. ! ! This file is part of moodns. ! ! moodns is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! moodns is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with moodns; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! ! */ /* $Header$ */ --- 1,20 ---- /* Copyright (c) 2001 Michael Wolf. All rights reserved. ! * ! * This file is part of moodns. ! * ! * moodns is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * moodns is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with moodns; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ /* $Header$ */ *************** *** 31,35 **** #if HAVE_CONFIG_H ! #include "../config.h" #endif --- 30,34 ---- #if HAVE_CONFIG_H ! #include "../config.h" #endif *************** *** 54,58 **** #if WITH_DMALLOC ! #include <dmalloc.h> #endif --- 53,57 ---- #if WITH_DMALLOC ! #include <dmalloc.h> #endif |
From: Michael W. <ma...@us...> - 2001-12-29 12:09:17
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv6514/src Added Files: auth_data.c Log Message: New. I hate the name. --- NEW FILE: auth_data.c --- /* Copyright (c) 2001 Michael Wolf. All rights reserved. * * This file is part of moodns. * * moodns is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * moodns is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with moodns; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Header: /cvsroot/moodns/moodns/src/auth_data.c,v 1.1 2001/12/29 12:09:14 mawolf Exp $ */ /* Uses a format similar to that of djbdns' tinydns. Maybe even the same. Based on documentation presented at http://cr.yp.to/djbdns/tinydns-data.html. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <ctype.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include "misc.h" #include "record.h" // #include "protocol.h" #include "xmalloc.h" // typedef enum { DOMAIN, SERVER, CNAME, A, MX } type_t; // struct record { // type_t type; // char *domain; // u32 ip; // // Something // int ttl; // // blah; blah; blah; // }; void _break(char *, int *); void _strip(char *, int *); void load_auth_data(char *path) { FILE *f; char *line, *line2; char *pt1, *pt2; int type; int pos, whitesp, cols; struct record *rec1, *rec2, *rec3; f = fopen(path, "r"); while ((line = afgetln(f)) != NULL) { line2 = line; _strip(line2, &pos); _break(line2, &cols); switch (*line) { /* Need to figure out how many colons are valid for a given type of of record. */ case '.': printf(". - NS, A, and SOA records\n"); rec1 = (struct record *) xcalloc(1, sizeof(struct record)); rec2 = (struct record *) xcalloc(1, sizeof(struct record)); rec3 = (struct record *) xcalloc(1, sizeof(struct record)); rec1->type = A; rec1->ip = rec2->type = NS; rec3->type = SOA; ++line; printf("Now we have %d cols\n", cols); rec1->name = xstrdup(line); line += strlen(line); line += 1; if (cols >= 1) { printf("now we havce '%s'\n", line); rec1->ip = inet_addr(line); // strtoul(line, NULL, 10); rec2->ip = inet_addr(line); printf("rec1->ip is %d\n", rec1->ip); line += strlen(line); line += 1; } if (cols >= 2) { line += strlen(line); line += 1; printf("hmmph\n"); } if (cols >= 3) { rec1->ttl = strtoul(line, NULL, 10); printf("rec1->ttl is %d\n", rec1->ttl); } break; case '&': printf("& - NS and A records\n"); rec1->type = A; rec2->type = NS; break; case '=': printf("= - A record and a reverse PTR record\n"); rec1->type = A; rec2->type = PTR; break; case '+': printf("+ - A record (no reverse PTR record)\n"); rec1->type = A; ++line; printf("Now we have '%s'\n", line); pt1 = strchr(line, ':'); if (pt1 == NULL) break; *pt1++ = '\0'; printf("now we have '%s' and '%s'\n", line, pt1); pt2 = strchr(line, ':'); if (pt2 == NULL) break; *pt2++ = '\0'; break; case '@': printf("@ - MX record and A record (to foo.mx.fqdn)\n"); rec1->type = MX; break; case '\'': printf("' - TXT record\n"); rec1->type = TXT; break; case '^': printf("^ - PTR record\n"); rec1->type = PTR; break; case 'C': printf("C - CNAME record\n"); rec1->type = CNAME; break; case 'Z': printf("SOA record\n"); rec1->type = SOA; break; case ':': printf("Generic record. Hrm.\n"); break; case '-': printf("ignored\n"); break; default: printf("unknown\n"); break; } free(line2); } fclose(f); } void _break(char *str, int *no_colons) { int len, i; assert(str != NULL); *no_colons = 0; len = strlen(str); for (i = 0; i < len; ++i) { if (str[i] == ':') { str[i] = '\0'; ++*no_colons; } } } /* Get rid of comments and trailing whitespace. */ void _strip(char *str, int *pos) { char *c; *pos = -1; for (c = str; *c != '\0'; ++c) { if (*c == '#' || isspace(*c)) { *pos = c - str; break; } } } #ifdef TEST int main(int argc, char **argv) { load_auth_data("../doc/data"); return (0); } #endif |
From: Michael W. <ma...@us...> - 2001-12-29 12:08:26
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv6389/src Added Files: afgetln.c Log Message: It's back! --- NEW FILE: afgetln.c --- /* Copyright (C) 2001 Michael Wolf (mi...@do...) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* This file is based on an implementation of fgetln() distributed with lukemftp, by Luke Mewburn. The original implementation and copyright notice are included at the bottom of the file. */ /* $Header: /cvsroot/moodns/moodns/src/afgetln.c,v 1.1 2001/12/29 12:08:21 mawolf Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "xmalloc.h" #ifdef DMALLOC #include <dmalloc.h> #endif /* Probably a good idea to do something with real checking. */ //#define xmalloc malloc //#define xcalloc calloc //#define xrealloc realloc //#define xfree free #define BUFCHUNKS 1024 char * afgetln(FILE *fp) { char *retval; size_t bufsize; size_t buflen; char curbuf[BUFCHUNKS]; char *p; bufsize = BUFCHUNKS; retval = (char *) xcalloc(bufsize, sizeof(char)); buflen = 0; while ((p = fgets(curbuf, sizeof(curbuf), fp)) != NULL) { size_t l; l = strlen(p); if (bufsize < buflen + l) { bufsize += BUFCHUNKS; retval = (char *) xrealloc(retval, bufsize); } strcpy(retval + buflen, p); buflen += l; if (p[l - 1] == '\n') { p[l - 1] = '\0'; break; } } if (p == NULL && *retval == '\0') { xfree(retval); retval = NULL; } else { p = strchr(retval, '\n'); if (p != NULL) *p = '\0'; /* hmmm... */ } return (retval); } #ifdef TEST int main(int argc, char **argv) { FILE *n; char *x; int l, c; int ret; #ifndef DMALLOC extern char *malloc_options; malloc_options = "Z"; #endif x = NULL; l = c = 0; // while (1) { n = fopen("COPYING", "r"); if (n == NULL) { perror("unable to open the file"); abort(); } while (!feof(n)) { x = afgetln(n); if (x != NULL) { printf("(%d) we got %d bytes that time\n", ++c, strlen(x)); free(x); } } if ((ret = fclose(n)) != 0) { perror("fclose() failed"); abort(); } // } return 0; } #endif /* * Copyright 1999 Luke Mewburn <lu...@ne...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #if 0 char * fgetln(FILE *fp, size_t *len) { static char *buf; static size_t bufsize; size_t buflen; char curbuf[BUFCHUNKS]; char *p; if (buf == NULL) { bufsize = BUFCHUNKS; buf = (char *) xmalloc(bufsize); } *buf = '\0'; buflen = 0; while ((p = fgets(curbuf, sizeof(curbuf), fp)) != NULL) { size_t l; l = strlen(p); if (bufsize < buflen + l) { bufsize += BUFCHUNKS; buf = (char *) xrealloc(buf, bufsize); } strcpy(buf + buflen, p); buflen += l; if (p[l - 1] == '\n') break; } if (p == NULL && *buf == '\0') return (NULL); *len = strlen(buf); return (buf); } #endif |
From: Michael W. <ma...@us...> - 2001-12-29 12:08:09
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv6339/src Modified Files: Makefile.in Log Message: Concomitant changes to those in src/Makefile.am Index: Makefile.in =================================================================== RCS file: /cvsroot/moodns/moodns/src/Makefile.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.in 2001/12/21 05:33:02 1.2 --- Makefile.in 2001/12/29 12:08:06 1.3 *************** *** 1,3 **** ! # Makefile.in generated automatically by automake 1.4-p4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. --- 1,3 ---- ! # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. *************** *** 84,88 **** bin_PROGRAMS = moodns ! moodns_SOURCES = main.c misc.h cache.c cache.h heap.c heap.h ht.c ht.h pool.c pool.h protocol.c protocol.h record.c record.h recursive_mutex.c recursive_mutex.h socket.c socket.h wpthread.c wpthread.h xmalloc.c xmalloc.h log.c log.h options.c options.h security.c security.h --- 84,88 ---- bin_PROGRAMS = moodns ! moodns_SOURCES = main.c misc.h cache.c cache.h heap.c heap.h ht.c ht.h pool.c pool.h protocol.c protocol.h record.c record.h recursive_mutex.c recursive_mutex.h socket.c socket.h wpthread.c wpthread.h xmalloc.c xmalloc.h log.c log.h options.c options.h security.c security.h afgetln.c auth_data.c mtime.c mtime.h *************** *** 102,106 **** ht.$(OBJEXT) pool.$(OBJEXT) protocol.$(OBJEXT) record.$(OBJEXT) \ recursive_mutex.$(OBJEXT) socket.$(OBJEXT) wpthread.$(OBJEXT) \ ! xmalloc.$(OBJEXT) log.$(OBJEXT) options.$(OBJEXT) security.$(OBJEXT) moodns_DEPENDENCIES = moodns_LDFLAGS = --- 102,107 ---- ht.$(OBJEXT) pool.$(OBJEXT) protocol.$(OBJEXT) record.$(OBJEXT) \ recursive_mutex.$(OBJEXT) socket.$(OBJEXT) wpthread.$(OBJEXT) \ ! xmalloc.$(OBJEXT) log.$(OBJEXT) options.$(OBJEXT) security.$(OBJEXT) \ ! afgetln.$(OBJEXT) auth_data.$(OBJEXT) mtime.$(OBJEXT) moodns_DEPENDENCIES = moodns_LDFLAGS = *************** *** 116,122 **** TAR = tar GZIP_ENV = --best ! DEP_FILES = .deps/cache.P .deps/heap.P .deps/ht.P .deps/log.P \ ! .deps/main.P .deps/options.P .deps/pool.P .deps/protocol.P \ ! .deps/record.P .deps/recursive_mutex.P .deps/security.P .deps/socket.P \ .deps/wpthread.P .deps/xmalloc.P SOURCES = $(moodns_SOURCES) --- 117,124 ---- TAR = tar GZIP_ENV = --best ! DEP_FILES = .deps/afgetln.P .deps/auth_data.P .deps/cache.P \ ! .deps/heap.P .deps/ht.P .deps/log.P .deps/main.P .deps/mtime.P \ ! .deps/options.P .deps/pool.P .deps/protocol.P .deps/record.P \ ! .deps/recursive_mutex.P .deps/security.P .deps/socket.P \ .deps/wpthread.P .deps/xmalloc.P SOURCES = $(moodns_SOURCES) *************** *** 359,362 **** --- 361,378 ---- mostlyclean distclean maintainer-clean + + test: log.test auth_data.test + + log.test: log.c xmalloc.o + $(CC) $(CFLAGS) -DTEST log.c xmalloc.o -o log.test + + # options.test: options.c xmalloc.o heap.o ht.o main.o + # $(CC) $(CFLAGS) -DTEST -I.. options.c xmalloc.o heap.o ht.o main.o -o options.test + + protocol.test: protocol.c xmalloc.o + $(CC) $(CFLAGS) -DTEST protocol.c xmalloc.o -o protocol.test + + auth_data.test: auth_data.c xmalloc.o afgetln.o + $(CC) $(CFLAGS) -DTEST auth_data.c xmalloc.o afgetln.o -o auth_data.test # Tell versions [3.59,3.63) of GNU make to not export all variables. |
From: Michael W. <ma...@us...> - 2001-12-29 12:07:16
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv6223/src Modified Files: Makefile.am Log Message: New files added. Index: Makefile.am =================================================================== RCS file: /cvsroot/moodns/moodns/src/Makefile.am,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Makefile.am 2001/12/21 02:42:53 1.1.1.1 --- Makefile.am 2001/12/29 12:07:13 1.2 *************** *** 15,19 **** log.c log.h \ options.c options.h \ ! security.c security.h moodns_LDADD = $(PTHREAD_LIBS) $(DMALLOC_LIBS) --- 15,35 ---- log.c log.h \ options.c options.h \ ! security.c security.h \ ! afgetln.c auth_data.c \ ! mtime.c mtime.h moodns_LDADD = $(PTHREAD_LIBS) $(DMALLOC_LIBS) + + test: log.test auth_data.test + + log.test: log.c xmalloc.o + $(CC) $(CFLAGS) -DTEST log.c xmalloc.o -o log.test + + # options.test: options.c xmalloc.o heap.o ht.o main.o + # $(CC) $(CFLAGS) -DTEST -I.. options.c xmalloc.o heap.o ht.o main.o -o options.test + + protocol.test: protocol.c xmalloc.o + $(CC) $(CFLAGS) -DTEST protocol.c xmalloc.o -o protocol.test + + auth_data.test: auth_data.c xmalloc.o afgetln.o + $(CC) $(CFLAGS) -DTEST auth_data.c xmalloc.o afgetln.o -o auth_data.test |
From: Michael W. <ma...@us...> - 2001-12-29 12:06:35
|
Update of /cvsroot/moodns/moodns/doc In directory usw-pr-cvs1:/tmp/cvs-serv6127/doc Added Files: data Log Message: New file. Currently inadequate for teaching or even for testing. --- NEW FILE: data --- # .:1.2.3.4 &schemes.dodgysoftware.net:a.ns.schemes.dodgysoftware.net:a:259200 =osgiliath.schemes.dodgysoftware.net:192.168.0.15:4321 #commented +a.ns.schemes.dodgysoftware.net:osgiliath.schemes.dodgysoftware.net:86400 @doobar.com:1.2.3.4:a::86400 @doobar.com:1.2.3.5:b::86400 .schemes.dodgysoftware.net:192.168.0.15:a:259200 .schemes.dodgysoftware.net:192.168.0.12 &towers.schemes.dodgysoftware.net:192.168.4.131:a:259200 +towers.schemes.dodgysoftware.net:192.168.0.15:86400 |
From: Michael W. <ma...@us...> - 2001-12-29 12:05:59
|
Update of /cvsroot/moodns/moodns/doc In directory usw-pr-cvs1:/tmp/cvs-serv6041/doc Modified Files: TODO Log Message: Small change. Index: TODO =================================================================== RCS file: /cvsroot/moodns/moodns/doc/TODO,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TODO 2001/12/21 05:33:02 1.1 --- TODO 2001/12/29 12:05:56 1.2 *************** *** 19,23 **** Think of a better name. :) I was thinking sdns, where s stands for ! "secure", "strayn", "super", etc. mode Lots of configuration options. --- 19,24 ---- Think of a better name. :) I was thinking sdns, where s stands for ! "secure", "strayn", "super", etc. mode - DONE. Now it's called ! moodns. Lots of configuration options. |
From: Michael W. <ma...@us...> - 2001-12-29 12:05:02
|
Update of /cvsroot/moodns/moodns In directory usw-pr-cvs1:/tmp/cvs-serv5817 Modified Files: configure Log Message: Changes resulting from being regenerated from configure.in Index: configure =================================================================== RCS file: /cvsroot/moodns/moodns/configure,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configure 2001/12/21 05:33:01 1.2 --- configure 2001/12/29 12:04:59 1.3 *************** *** 1,11 **** #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated by Autoconf 2.50. # - # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 - # Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Find the correct PATH separator. Usually this is `:', but [...9014 lines suppressed...] ! mv conftest.h $ac_file fi ! fi; done ! EOF ! cat >> $CONFIG_STATUS <<EOF EOF ! cat >> $CONFIG_STATUS <<\EOF ! test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ! exit 0 EOF chmod +x $CONFIG_STATUS ! rm -fr confdefs* $ac_clean_files ! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 ! |
From: Michael W. <ma...@us...> - 2001-12-29 12:03:55
|
Update of /cvsroot/moodns/moodns In directory usw-pr-cvs1:/tmp/cvs-serv5729 Modified Files: configure.in Log Message: Some changes - now checks for more things. Index: configure.in =================================================================== RCS file: /cvsroot/moodns/moodns/configure.in,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** configure.in 2001/12/21 02:42:02 1.1.1.1 --- configure.in 2001/12/29 12:03:52 1.2 *************** *** 12,25 **** AM_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_MAKE_SET AC_HEADER_STDC AC_C_CONST ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" AM_PROG_LIBTOOL ! AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]], if eval "test x$enable_debug = xyes"; then DEBUGFLAG="-g" fi) AC_SUBST(PACKAGE) --- 12,37 ---- AM_PROG_CC_STDC AC_PROG_INSTALL + AC_FUNC_ALLOCA AC_PROG_MAKE_SET AC_HEADER_STDC + AC_TYPE_SIGNAL + AC_FUNC_VPRINTF + AC_TYPE_PID_T + AC_TYPE_SIZE_T + AC_HEADER_TIME AC_C_CONST ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" AM_PROG_LIBTOOL ! AC_CHECK_FUNCS(for while do) AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]], if eval "test x$enable_debug = xyes"; then DEBUGFLAG="-g" fi) + + dnl Look for some headers. + AC_CHECK_HEADERS(fcntl.h sys/file.h syslog.h unistd.h sys/types.h sys/stat.h) + AC_CHECK_HEADERS(signal.h assert.h errno.h sys/time.h) + + AC_CHECK_HEADERS(beer.h) AC_SUBST(PACKAGE) |
From: Michael W. <ma...@us...> - 2001-12-29 12:02:51
|
Update of /cvsroot/moodns/moodns In directory usw-pr-cvs1:/tmp/cvs-serv5579 Modified Files: Makefile.in Log Message: Some changes. Index: Makefile.in =================================================================== RCS file: /cvsroot/moodns/moodns/Makefile.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.in 2001/12/21 05:33:01 1.2 --- Makefile.in 2001/12/29 12:02:48 1.3 *************** *** 1,3 **** ! # Makefile.in generated automatically by automake 1.4-p4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. --- 1,3 ---- ! # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. *************** *** 108,112 **** cd $(srcdir) && $(ACLOCAL) ! config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) --- 108,112 ---- cd $(srcdir) && $(ACLOCAL) ! config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) |
From: Michael W. <ma...@us...> - 2001-12-21 13:36:24
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv8367 Modified Files: protocol.c Log Message: Added some crap so protocol.c compiles on freebsd. Index: protocol.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/protocol.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** protocol.c 2001/12/21 13:28:34 1.7 --- protocol.c 2001/12/21 13:36:21 1.8 *************** *** 35,39 **** --- 35,41 ---- #include <string.h> #include <stdlib.h> + #include <sys/types.h> #include <netinet/in.h> + #include <sys/param.h> /* FreeBSD needs this for htons etc */ #include "xmalloc.h" |
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv6763 Modified Files: cache.c cache.h log.c log.h main.c misc.h options.c options.h pool.c pool.h protocol.c protocol.h record.c record.h recursive_mutex.c recursive_mutex.h security.c security.h socket.c socket.h wpthread.c wpthread.h xmalloc.c xmalloc.h Log Message: Lots of crap about copyright notices. Woohoo. Index: cache.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/cache.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** cache.c 2001/12/21 02:42:58 1.1.1.1 --- cache.c 2001/12/21 13:28:34 1.2 *************** *** 1,4 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* This cache knows almost nothing about what it's storing. It doesn't know how to talk to the network. --- 1,24 ---- ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. ! ! This file is part of moodns. ! ! moodns is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! moodns is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + /* $Header$ */ + /* This cache knows almost nothing about what it's storing. It doesn't know how to talk to the network. Index: cache.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/cache.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** cache.h 2001/12/21 02:42:59 1.1.1.1 --- cache.h 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + #ifndef CACHE_H #define CACHE_H Index: log.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/log.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** log.c 2001/12/21 05:14:11 1.3 --- log.c 2001/12/21 13:28:34 1.4 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + /* $Header$ */ Index: log.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/log.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** log.h 2001/12/21 02:43:10 1.1.1.1 --- log.h 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + /* $Header$ */ + #ifndef LOG_G #define LOG_H Index: main.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/main.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** main.c 2001/12/21 06:45:32 1.3 --- main.c 2001/12/21 13:28:34 1.4 *************** *** 1,3 **** ! /* Copyright (c) 2001 Omar Kilani, Michael Wolf. All rights reserved. */ /* $Header$ */ --- 1,23 ---- ! /* Copyright (c) 2001 Omar Kilani, Michael Wolf. All rights reserved. ! ! This file is part of moodns. ! ! moodns is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! moodns is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with moodns; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! ! */ ! ! /* $Header$ */ Index: misc.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/misc.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** misc.h 2001/12/21 02:42:58 1.1.1.1 --- misc.h 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Michael Wolf, Omar Kilani All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + #ifndef MISC_H #define MISC_H Index: options.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/options.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** options.c 2001/12/21 05:14:11 1.3 --- options.c 2001/12/21 13:28:34 1.4 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* $Header$ */ --- 1,24 ---- ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. ! ! This file is part of moodns. ! ! moodns is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! moodns is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with moodns; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! ! */ ! ! ! /* $Header$ */ Index: options.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/options.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** options.h 2001/12/21 02:43:08 1.1.1.1 --- options.h 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + /* $Header$ */ + #ifndef OPTIONS_H #define OPTIONS_H Index: pool.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/pool.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pool.c 2001/12/21 03:39:27 1.2 --- pool.c 2001/12/21 13:28:34 1.3 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* $Header$ */ --- 1,30 ---- ! /* ! * Part of the pthread_utils package. ! * ! * Copyright (c) 2001 Michael Wolf. All rights reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in the ! * documentation and/or other materials provided with the distribution. ! * 3. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. ! * ! * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ! * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ! * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS ! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE ! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ! */ ! /* $Header$ */ *************** *** 6,11 **** if it is asked to. */ ! /* ! pool_init - initialises a pool structure */ #include <stdlib.h> --- 33,37 ---- if it is asked to. */ ! /* pool_init - initialises a pool structure */ #include <stdlib.h> *************** *** 124,127 **** --- 150,154 ---- int i; + retval = 0; self = wpthread_self(); Index: pool.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/pool.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** pool.h 2001/12/21 02:43:04 1.1.1.1 --- pool.h 2001/12/21 13:28:34 1.2 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* $Header$ */ --- 1,29 ---- ! /* ! * Part of the pthread_utils package. ! * ! * Copyright (c) 2001 Michael Wolf. All rights reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in the ! * documentation and/or other materials provided with the distribution. ! * 3. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. ! * ! * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ! * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ! * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS ! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE ! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ! */ /* $Header$ */ Index: protocol.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/protocol.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** protocol.c 2001/12/21 06:45:32 1.6 --- protocol.c 2001/12/21 13:28:34 1.7 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf, Omar Kilani. All rights reserved. */ /* $Header$ */ --- 1,21 ---- ! /* Copyright (c) 2001 Michael Wolf, Omar Kilani. All rights reserved. ! ! This file is part of moodns. ! ! moodns is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! moodns is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with moodns; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! ! */ /* $Header$ */ *************** *** 33,37 **** a Sparc and a PowerPC. And also need to check that data from one works on the other. Then I WIN! */ ! int header_pack(struct header *orig, struct header_packed *packed) { assert(orig != NULL && packed != NULL); --- 51,56 ---- a Sparc and a PowerPC. And also need to check that data from one works on the other. Then I WIN! */ ! int ! header_pack(struct header *orig, struct header_packed *packed) { assert(orig != NULL && packed != NULL); *************** *** 72,76 **** } ! int header_unpack(struct header *unpacked, struct header_packed *orig) { assert(unpacked != NULL && orig != NULL); --- 91,96 ---- } ! int ! header_unpack(struct header *unpacked, struct header_packed *orig) { assert(unpacked != NULL && orig != NULL); *************** *** 95,101 **** } ! packet ! * packet_create(u32 id, u32 qr, u32 opcode, u32 aa, u32 tc, u32 rd, ! u32 ra, u32 z, u32 rcode) { packet *p = xmalloc(sizeof(packet)); --- 115,121 ---- } ! packet * ! packet_create(u32 id, u32 qr, u32 opcode, u32 aa, u32 tc, u32 rd, ! u32 ra, u32 z, u32 rcode) { packet *p = xmalloc(sizeof(packet)); *************** *** 126,130 **** } ! packet * packet_create_from_data(u8 * data, u32 len) { packet *p; --- 146,151 ---- } ! packet * ! packet_create_from_data(u8 *data, u32 len) { packet *p; *************** *** 179,183 **** } ! int byte_array_cat(byte_array * orig, byte_array * tail) { orig->data = (u8 *) realloc(orig->data, orig->len + tail->len); --- 200,205 ---- } ! int ! byte_array_cat(byte_array * orig, byte_array * tail) { orig->data = (u8 *) realloc(orig->data, orig->len + tail->len); *************** *** 187,191 **** } ! int byte_array_cats(byte_array * orig, u8 * data, int len) { orig->data = (u8 *) realloc(orig->data, orig->len + len); --- 209,214 ---- } ! int ! byte_array_cats(byte_array * orig, u8 * data, int len) { orig->data = (u8 *) realloc(orig->data, orig->len + len); *************** *** 195,199 **** } ! byte_array * packet_convert_to_data(packet * p) { byte_array *out; --- 218,223 ---- } ! byte_array * ! packet_convert_to_data(packet * p) { byte_array *out; *************** *** 237,241 **** } ! byte_array * packet_convert_question_to_data(packet * p, int idx) { byte_array *out; --- 261,266 ---- } ! byte_array * ! packet_convert_question_to_data(packet * p, int idx) { byte_array *out; *************** *** 259,263 **** } ! byte_array * packet_convert_answer_to_data(packet * p, int idx) { byte_array *out; --- 284,289 ---- } ! byte_array * ! packet_convert_answer_to_data(packet * p, int idx) { byte_array *out; *************** *** 269,273 **** } ! byte_array * packet_convert_authoritive_to_data(packet * p, int idx) { byte_array *out; --- 295,300 ---- } ! byte_array * ! packet_convert_authoritive_to_data(packet * p, int idx) { byte_array *out; *************** *** 279,283 **** } ! byte_array * packet_convert_additional_to_data(packet * p, int idx) { byte_array *out; --- 306,311 ---- } ! byte_array * ! packet_convert_additional_to_data(packet * p, int idx) { byte_array *out; *************** *** 296,305 **** } ! int packet_add_rr_from_data(packet * p, u8 * data, int idx) { return 0; } ! int packet_add_question(packet * p, u8 * qname, u32 qtype, u32 qclass) { size_t len; --- 324,335 ---- } ! int ! packet_add_rr_from_data(packet * p, u8 * data, int idx) { return 0; } ! int ! packet_add_question(packet *p, u8 *qname, u32 qtype, u32 qclass) { size_t len; *************** *** 322,326 **** } ! int packet_add_question_from_data(packet * p, u8 * data, int idx) { u8 *save; --- 352,357 ---- } ! int ! packet_add_question_from_data(packet *p, u8 *data, int idx) { u8 *save; *************** *** 361,365 **** } ! int packet_add_answer_from_data(packet * p, u8 * data, int idx) { return packet_add_rr_from_data(p, data, idx); --- 392,397 ---- } ! int ! packet_add_answer_from_data(packet *p, u8 *data, int idx) { return packet_add_rr_from_data(p, data, idx); *************** *** 367,381 **** ! int packet_add_authoritive_from_data(packet * p, u8 * data, int idx) { return packet_add_rr_from_data(p, data, idx); } ! int packet_add_additional_from_data(packet * p, u8 * data, int idx) { return packet_add_rr_from_data(p, data, idx); } ! void packet_free(packet * p) { int i; --- 399,416 ---- ! int ! packet_add_authoritive_from_data(packet *p, u8 *data, int idx) { return packet_add_rr_from_data(p, data, idx); } ! int ! packet_add_additional_from_data(packet *p, u8 *data, int idx) { return packet_add_rr_from_data(p, data, idx); } ! void ! packet_free(packet *p) { int i; Index: protocol.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/protocol.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** protocol.h 2001/12/21 05:33:02 1.2 --- protocol.h 2001/12/21 13:28:34 1.3 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf, Omar Kilani. All rights reserved. */ #ifndef PROTOCOL_H --- 1,22 ---- ! /* Copyright (c) 2001 Michael Wolf, Omar Kilani. All rights reserved. ! ! This file is part of moodns. ! ! moodns is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! moodns is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with moodns; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! ! */ ! #ifndef PROTOCOL_H Index: record.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/record.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** record.c 2001/12/21 02:43:05 1.1.1.1 --- record.c 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + #include <stdlib.h> #include <string.h> Index: record.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/record.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** record.h 2001/12/21 02:43:05 1.1.1.1 --- record.h 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + /* A simplified model of what we'll be storing and retrieving, at least in Index: recursive_mutex.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/recursive_mutex.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** recursive_mutex.c 2001/12/21 02:43:07 1.1.1.1 --- recursive_mutex.c 2001/12/21 13:28:34 1.2 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* $Header$ */ --- 1,29 ---- ! /* ! * Part of the pthread_utils package. ! * ! * Copyright (c) 2001 Michael Wolf. All rights reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in the ! * documentation and/or other materials provided with the distribution. ! * 3. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. ! * ! * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ! * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ! * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS ! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE ! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ! */ /* $Header$ */ Index: recursive_mutex.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/recursive_mutex.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** recursive_mutex.h 2001/12/21 02:43:07 1.1.1.1 --- recursive_mutex.h 2001/12/21 13:28:34 1.2 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ #ifndef RECURSIVE_MUTEX_H --- 1,31 ---- ! /* ! * Part of the pthread_utils package. ! * ! * Copyright (c) 2001 Michael Wolf. All rights reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in the ! * documentation and/or other materials provided with the distribution. ! * 3. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. ! * ! * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ! * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ! * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS ! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE ! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ! */ ! ! /* $Header$ */ #ifndef RECURSIVE_MUTEX_H Index: security.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/security.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** security.c 2001/12/21 02:43:10 1.1.1.1 --- security.c 2001/12/21 13:28:34 1.2 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* It's important that everything that's done here is done in the correct --- 1,22 ---- ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. ! ! This file is part of moodns. ! ! moodns is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! moodns is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with moodns; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! ! */ ! /* It's important that everything that's done here is done in the correct Index: security.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/security.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** security.h 2001/12/21 02:43:10 1.1.1.1 --- security.h 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + #ifndef SECURITY_H #define SECURITY_H Index: socket.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/socket.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** socket.c 2001/12/21 02:43:07 1.1.1.1 --- socket.c 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Omar Kilani. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + #if HAVE_CONFIG_H #include "../config.h" Index: socket.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/socket.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** socket.h 2001/12/21 02:43:07 1.1.1.1 --- socket.h 2001/12/21 13:28:34 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* Copyright (c) 2001 Michael Wolf. All rights reserved. + + This file is part of moodns. + + moodns is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + moodns is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with moodns; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + + #ifndef SOCKET_H #define SOCKET_H Index: wpthread.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/wpthread.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** wpthread.c 2001/12/21 02:43:07 1.1.1.1 --- wpthread.c 2001/12/21 13:28:34 1.2 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* $Header$ */ --- 1,29 ---- ! /* ! * Part of the pthread_utils package. ! * ! * Copyright (c) 2001 Michael Wolf. All rights reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in the ! * documentation and/or other materials provided with the distribution. ! * 3. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. ! * ! * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ! * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ! * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS ! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE ! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ! */ /* $Header$ */ Index: wpthread.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/wpthread.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** wpthread.h 2001/12/21 02:43:08 1.1.1.1 --- wpthread.h 2001/12/21 13:28:34 1.2 *************** *** 1,3 **** ! /* Copyright (c) 2001 Michael Wolf. All rights reserved. */ /* $Header$ */ --- 1,29 ---- ! /* ! * Part of the pthread_utils package. ! * ! * Copyright (c) 2001 Michael Wolf. All rights reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in the ! * documentation and/or other materials provided with the distribution. ! * 3. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. ! * ! * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ! * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ! * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS ! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE ! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ! */ /* $Header$ */ Index: xmalloc.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/xmalloc.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** xmalloc.c 2001/12/21 02:43:08 1.1.1.1 --- xmalloc.c 2001/12/21 13:28:34 1.2 *************** *** 1,13 **** ! /* This file is part of Dodgy Software Scheme. ! ! Copyright (c) 2001 Michael A Wolf (mi...@do...) ! All rights reserved. ! Dodgy Software Scheme is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ! Dodgy Software Scheme is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --- 1,10 ---- ! /* Copyright (c) 2001 Michael A Wolf. All rights reserved. ! This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ! This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *************** *** 15,19 **** You should have received a copy of the GNU General Public License along ! with Dodgy Software Scheme; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ --- 12,16 ---- You should have received a copy of the GNU General Public License along ! with this file; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Index: xmalloc.h =================================================================== RCS file: /cvsroot/moodns/moodns/src/xmalloc.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** xmalloc.h 2001/12/21 02:43:08 1.1.1.1 --- xmalloc.h 2001/12/21 13:28:34 1.2 *************** *** 1,13 **** ! /* This file is part of Dodgy Software Scheme. ! ! Copyright (c) 2001 Michael A Wolf (mi...@do...) ! All rights reserved. ! Dodgy Software Scheme is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ! Dodgy Software Scheme is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --- 1,10 ---- ! /* Copyright (c) 2001 Michael A Wolf. All rights reserved. ! This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ! This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *************** *** 15,19 **** You should have received a copy of the GNU General Public License along ! with Dodgy Software Scheme; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ --- 12,16 ---- You should have received a copy of the GNU General Public License along ! with this file; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
From: Michael W. <ma...@us...> - 2001-12-21 06:45:34
|
Update of /cvsroot/moodns/moodns/src In directory usw-pr-cvs1:/tmp/cvs-serv22945 Modified Files: main.c protocol.c Log Message: Adding $Header$ is really cool too. Index: main.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.c 2001/12/21 05:33:02 1.2 --- main.c 2001/12/21 06:45:32 1.3 *************** *** 1,10 **** /* Copyright (c) 2001 Omar Kilani, Michael Wolf. All rights reserved. */ #ifndef _REENTRANT ! #define _REENTRANT #endif #if HAVE_CONFIG_H ! #include "../config.h" #endif --- 1,12 ---- /* Copyright (c) 2001 Omar Kilani, Michael Wolf. All rights reserved. */ + /* $Header$ */ + #ifndef _REENTRANT ! #define _REENTRANT #endif #if HAVE_CONFIG_H ! #include "../config.h" #endif *************** *** 39,43 **** #if WITH_DMALLOC ! #include <dmalloc.h> #endif --- 41,45 ---- #if WITH_DMALLOC ! #include <dmalloc.h> #endif *************** *** 71,91 **** struct connection_wrappers sh; int i; - // struct passwd *pw; - - /* drop root, change to use mike */ - // pw = getpwnam("mike"); - // if (pw == NULL) { - // printf("ps is null\n"); - // } - // printf("we'll change to %d\n", pw->pw_uid); - // setuid(pw->pw_uid); - // printf("Now we're user %d\n", getuid()); - puts("hello 1"); options_init(); - puts("hello 2"); - - memset(&sh, 0, sizeof(struct connection_wrappers)); sh.tcp = socket_listener(53, SOCKET_TCP); --- 73,79 ---- *************** *** 94,99 **** drop_privs(); - // drop_root(); - wpthread_mutex_init(&sh.mutex, NULL); wpthread_cond_init(&sh.cv, NULL); --- 82,85 ---- *************** *** 209,215 **** out = packet_convert_to_data(p); if (memcmp(out->data, buf, len) == 0) { ! fprintf(stderr, "DEBUG: buf matches out->data.\n"); } else { ! fprintf(stderr, "DEBUG: buf does not match out->data.\n"); } --- 195,201 ---- out = packet_convert_to_data(p); if (memcmp(out->data, buf, len) == 0) { ! fprintf(stderr, "DEBUG: buf matches out->data.\n"); } else { ! fprintf(stderr, "DEBUG: buf does not match out->data.\n"); } Index: protocol.c =================================================================== RCS file: /cvsroot/moodns/moodns/src/protocol.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** protocol.c 2001/12/21 06:40:08 1.5 --- protocol.c 2001/12/21 06:45:32 1.6 *************** *** 1,4 **** --- 1,6 ---- /* Copyright (c) 2001 Michael Wolf, Omar Kilani. All rights reserved. */ + /* $Header$ */ + /* Based on information presented in RFC 1035, by P Mockapetris. */ |