]>
git.ipfire.org Git - thirdparty/ldns.git/log
Jelte Jansen [Wed, 22 Dec 2004 11:59:46 +0000 (11:59 +0000)]
lint options
Jelte Jansen [Wed, 22 Dec 2004 11:52:15 +0000 (11:52 +0000)]
added prefixes in packet.[ch]
some more 2buffer functions
Miek Gieben [Wed, 22 Dec 2004 11:38:34 +0000 (11:38 +0000)]
killed local var updated vim syntax
Erik Rozendaal [Wed, 22 Dec 2004 11:09:12 +0000 (11:09 +0000)]
buffer.c: Check for allocation failures. (ldns_buffer_export) Mark the buffer
fixed and return a pointer to the data. (ldns_buffer_free) Only free the
buffer data if the buffer is not fixed.
Miek Gieben [Tue, 21 Dec 2004 15:22:26 +0000 (15:22 +0000)]
__X define gone
Miek Gieben [Tue, 21 Dec 2004 15:01:36 +0000 (15:01 +0000)]
still leave out the htons
Miek Gieben [Tue, 21 Dec 2004 14:32:58 +0000 (14:32 +0000)]
do not use htons for now
Erik Rozendaal [Tue, 21 Dec 2004 14:30:02 +0000 (14:30 +0000)]
Include sys/types.h.
Erik Rozendaal [Tue, 21 Dec 2004 14:27:18 +0000 (14:27 +0000)]
Remove checks for int8_t, etc.
Erik Rozendaal [Tue, 21 Dec 2004 14:26:25 +0000 (14:26 +0000)]
Stop being pedantic.
Erik Rozendaal [Tue, 21 Dec 2004 14:22:58 +0000 (14:22 +0000)]
Check for u_char, u_short, u_long types so htons can be used with
POSIX_SOURCE C code.
Jelte Jansen [Tue, 21 Dec 2004 14:22:55 +0000 (14:22 +0000)]
added some functions to buffer.c (destroy and export)
host2str shaken, not stirred, rdf conversions use buffers now, and there are (or will be) 2str wrappers for different levels (rdata, rr, packet?)
Erik Rozendaal [Tue, 21 Dec 2004 14:16:02 +0000 (14:16 +0000)]
Needed for htons.
Miek Gieben [Tue, 21 Dec 2004 14:07:44 +0000 (14:07 +0000)]
it compiles ok on Linux
Miek Gieben [Tue, 21 Dec 2004 14:06:17 +0000 (14:06 +0000)]
get it to compile on linux first
Miek Gieben [Tue, 21 Dec 2004 13:51:10 +0000 (13:51 +0000)]
first start made for str2host conversion. Ugly as hell - not sure if it even works
Miek Gieben [Tue, 21 Dec 2004 13:31:28 +0000 (13:31 +0000)]
direct copy from zonec.c from NSD
Erik Rozendaal [Tue, 21 Dec 2004 13:26:55 +0000 (13:26 +0000)]
buf.h: Removed. Use buffer.h.
Miek Gieben [Tue, 21 Dec 2004 13:17:13 +0000 (13:17 +0000)]
conversion2str for A
Jelte Jansen [Tue, 21 Dec 2004 13:12:22 +0000 (13:12 +0000)]
backported vsnprintf fix from nsd
Jelte Jansen [Tue, 21 Dec 2004 12:54:00 +0000 (12:54 +0000)]
added ldns-ified nsd buffers for easy buffer manupulation
made a very first start with 2str functions (:p)
Jelte Jansen [Tue, 21 Dec 2004 12:16:26 +0000 (12:16 +0000)]
other way to combine lint and static inlines
Miek Gieben [Tue, 21 Dec 2004 12:15:46 +0000 (12:15 +0000)]
comments removed
Erik Rozendaal [Tue, 21 Dec 2004 10:19:09 +0000 (10:19 +0000)]
configure.ac: libdns uses -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600.
Jelte Jansen [Mon, 20 Dec 2004 14:23:07 +0000 (14:23 +0000)]
enum for packet sections
Jelte Jansen [Mon, 20 Dec 2004 13:51:11 +0000 (13:51 +0000)]
got some beauty tips from erik
Jelte Jansen [Mon, 20 Dec 2004 13:35:22 +0000 (13:35 +0000)]
added wire2rdata
wire2* now takes pointer to pointer to type, and allocates memory itself (if parsing of wire succeeds)
Jelte Jansen [Mon, 20 Dec 2004 09:43:18 +0000 (09:43 +0000)]
added access functions
added looping pointer check
Erik Rozendaal [Thu, 16 Dec 2004 15:22:31 +0000 (15:22 +0000)]
rr.c: (ldns_wire2dname) Free allocated memory and return error code if
call to ldns_rdf_new() fails.
Miek Gieben [Thu, 16 Dec 2004 15:13:13 +0000 (15:13 +0000)]
gcc is te dom om mijn gedachten te lezen
Miek Gieben [Thu, 16 Dec 2004 15:12:35 +0000 (15:12 +0000)]
MALLOC checks, and statuscode
Jelte Jansen [Thu, 16 Dec 2004 15:09:08 +0000 (15:09 +0000)]
removed rest of _
renamed function ldns_rdf_type() to ldns_rdf_get_type() because of conflict with type ldns_rdf_type
Jelte Jansen [Thu, 16 Dec 2004 15:01:01 +0000 (15:01 +0000)]
2dname uses rdf_new()
_ldns_rdf_new -> ldns_rdf_new + added to .h
Jelte Jansen [Thu, 16 Dec 2004 14:50:58 +0000 (14:50 +0000)]
:p
Jelte Jansen [Thu, 16 Dec 2004 14:35:07 +0000 (14:35 +0000)]
off by 1 :p
Miek Gieben [Thu, 16 Dec 2004 14:27:46 +0000 (14:27 +0000)]
malloc -> XMALLOC and other shallow fixes
Erik Rozendaal [Thu, 16 Dec 2004 14:23:42 +0000 (14:23 +0000)]
wire2host.c: (ldns_wire2dname) Removed unneeded memcpy.
Erik Rozendaal [Thu, 16 Dec 2004 14:21:37 +0000 (14:21 +0000)]
wire2host.c: (ldns_wire2dname) Use the stack, Luke!
Jelte Jansen [Thu, 16 Dec 2004 14:19:53 +0000 (14:19 +0000)]
fixed errors on bsd
Jelte Jansen [Thu, 16 Dec 2004 14:00:46 +0000 (14:00 +0000)]
forgot to add, my bad
Jelte Jansen [Thu, 16 Dec 2004 13:59:42 +0000 (13:59 +0000)]
wire2dname now allocates data itself
wire2dname now puts dname in ldns_rdf
made start with status returns in wire2 functions
moved wire2packet, wire2rr and wire2dname to wire2host.c
added wire2host to makefile
Erik Rozendaal [Thu, 16 Dec 2004 12:50:48 +0000 (12:50 +0000)]
svn:ignore: Ignore .gdb_history.
Miek Gieben [Thu, 16 Dec 2004 12:20:04 +0000 (12:20 +0000)]
libdnsified
Erik Rozendaal [Thu, 16 Dec 2004 12:17:52 +0000 (12:17 +0000)]
rr.h: (ldns_rr_class, ldns_rr_type) New enumerations.
rdata.h: (ldns_rdf_type) Prefix enum members with LDNS.
Miek Gieben [Thu, 16 Dec 2004 12:11:39 +0000 (12:11 +0000)]
buf.h added, we need some kind of holding place of dns data
Miek Gieben [Thu, 16 Dec 2004 12:03:10 +0000 (12:03 +0000)]
copied from NSD - nothing changed yet
Miek Gieben [Thu, 16 Dec 2004 11:55:10 +0000 (11:55 +0000)]
conversion file placeholders
Miek Gieben [Thu, 16 Dec 2004 11:47:35 +0000 (11:47 +0000)]
exit exit
Erik Rozendaal [Thu, 16 Dec 2004 11:23:34 +0000 (11:23 +0000)]
rdata.h: Renamed RDF type constants.
Miek Gieben [Thu, 16 Dec 2004 11:19:35 +0000 (11:19 +0000)]
last 2 fixes
Miek Gieben [Thu, 16 Dec 2004 11:13:06 +0000 (11:13 +0000)]
types and function names conversion
Erik Rozendaal [Thu, 16 Dec 2004 11:01:56 +0000 (11:01 +0000)]
ldns/ldns.h: Include ldns/error.h.
Jelte Jansen [Thu, 16 Dec 2004 10:43:46 +0000 (10:43 +0000)]
packet2wire now uses read_uint16
doxygen: javadoc style briefs (first line until . is always read as brief)
doxygen: ldns/ is also read now (as well as all other subdirectories)
Erik Rozendaal [Thu, 16 Dec 2004 10:40:03 +0000 (10:40 +0000)]
CodingStyle: Added standard abbreviation list. Minor other changes.
Erik Rozendaal [Thu, 16 Dec 2004 09:07:43 +0000 (09:07 +0000)]
util.h: Shut up splint.
Erik Rozendaal [Thu, 16 Dec 2004 09:02:45 +0000 (09:02 +0000)]
Makefile.in: Allow 'lint' outside of source directory.
Erik Rozendaal [Thu, 16 Dec 2004 09:00:11 +0000 (09:00 +0000)]
Makefile.in: Allow building outside of source directory.
Erik Rozendaal [Thu, 16 Dec 2004 08:55:20 +0000 (08:55 +0000)]
Makefile.in: Don't pass CPPFLAGS to lint, just '-I.'.
Erik Rozendaal [Thu, 16 Dec 2004 08:50:59 +0000 (08:50 +0000)]
configure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
keywords. (OURCPPFLAGS) New. (OURCFLAGS) Moved from Makefile.in.
Makefile.in: Removed OURCFLAGS.
util.h: (read_uint16, read_uint32) Copied from NSD.
rr.c: Use read_uint16 and read_uint32.
Erik Rozendaal [Thu, 16 Dec 2004 08:50:56 +0000 (08:50 +0000)]
configure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
keywords. (OURCPPFLAGS) New. (OURCFLAGS) Moved from Makefile.in.
Makefile.in: Removed OURCFLAGS.
util.h: (read_uint16, read_uint32) Copied from NSD.
rr.c: Use read_uint16 and read_uint32.
Erik Rozendaal [Thu, 16 Dec 2004 08:50:53 +0000 (08:50 +0000)]
configure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
keywords. (OURCPPFLAGS) New. (OURCFLAGS) Moved from Makefile.in.
Makefile.in: Removed OURCFLAGS.
util.h: (read_uint16, read_uint32) Copied from NSD.
rr.c: Use read_uint16 and read_uint32.
Erik Rozendaal [Thu, 16 Dec 2004 08:50:50 +0000 (08:50 +0000)]
configure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
keywords. (OURCPPFLAGS) New. (OURCFLAGS) Moved from Makefile.in.
Makefile.in: Removed OURCFLAGS.
util.h: (read_uint16, read_uint32) Copied from NSD.
rr.c: Use read_uint16 and read_uint32.
Jelte Jansen [Wed, 15 Dec 2004 14:46:48 +0000 (14:46 +0000)]
added ldns_wire2dname and ldns_wire2rr (without rdata, but with lots of TODO :p)
put a bigger test packet in run-test0.c (response packet to drill www.kanariepiet.com)
Erik Rozendaal [Wed, 15 Dec 2004 13:08:55 +0000 (13:08 +0000)]
Bad splint.
Erik Rozendaal [Wed, 15 Dec 2004 13:07:32 +0000 (13:07 +0000)]
Makefile.in: Fixed LIBDNS_HEADERS.
Miek Gieben [Wed, 15 Dec 2004 13:01:18 +0000 (13:01 +0000)]
moved stuff around - CodingStyle fixes
Jelte Jansen [Wed, 15 Dec 2004 12:47:26 +0000 (12:47 +0000)]
t_rr -> ldns_rr_type
Miek Gieben [Wed, 15 Dec 2004 12:34:17 +0000 (12:34 +0000)]
error.h started, used in rdata.c _ldns_octet
Miek Gieben [Wed, 15 Dec 2004 11:32:29 +0000 (11:32 +0000)]
vim syntax file. Added to repo for personal convience
Jelte Jansen [Wed, 15 Dec 2004 11:27:18 +0000 (11:27 +0000)]
initial ldns_packet_free()
Erik Rozendaal [Wed, 15 Dec 2004 10:05:17 +0000 (10:05 +0000)]
rr.c: (ldns_rr_descriptor_maximum) Return UINT_MAX instead of SIZE_MAX
for portability.
Erik Rozendaal [Wed, 15 Dec 2004 10:00:07 +0000 (10:00 +0000)]
Updated RR rdata field descriptor table to be able to deal with variable
number of rdata fields. Moved the table from rdata.{c,h} to rr.{c,h}.
Erik Rozendaal [Wed, 15 Dec 2004 09:58:46 +0000 (09:58 +0000)]
Emacs configuration.
Jelte Jansen [Wed, 15 Dec 2004 08:55:43 +0000 (08:55 +0000)]
t_header -> ldns_header_type
t_packet -> ldns_packet_type
Erik Rozendaal [Wed, 15 Dec 2004 08:53:32 +0000 (08:53 +0000)]
rr.c: (ldns_rr_push_rd_field) Return true on success.
Jelte Jansen [Wed, 15 Dec 2004 08:50:39 +0000 (08:50 +0000)]
removed double #define for header byte size
Erik Rozendaal [Wed, 15 Dec 2004 08:50:30 +0000 (08:50 +0000)]
rr.c: (ldns_rr_push_rd_field) Check result of XREALLOC and return false on
failure.
Erik Rozendaal [Wed, 15 Dec 2004 08:45:53 +0000 (08:45 +0000)]
rr.c: (ldns_rr_push_rd_field) Updated for new XREALLOC macro usage.
Erik Rozendaal [Wed, 15 Dec 2004 08:39:05 +0000 (08:39 +0000)]
util.h: (MALLOC, XMALLOC, REALLOC, XREALLOC) Changed to be more C like.
packet.c: (ldns_wire2packet) Updated to coding standards.
packet.c: (ldns_wire2packet_header) Made static. Fixed bounds checking.
Erik Rozendaal [Tue, 14 Dec 2004 15:40:42 +0000 (15:40 +0000)]
packet.c: (ldns_wire2packet_header) Replaced evil C99/C++ single line
comment with standard C89 comment.
Jelte Jansen [Tue, 14 Dec 2004 15:07:05 +0000 (15:07 +0000)]
prefix ahoy
Jelte Jansen [Tue, 14 Dec 2004 14:49:29 +0000 (14:49 +0000)]
wire2packet_header paranmeters according to coding_style
defines for constants and masks
Erik Rozendaal [Tue, 14 Dec 2004 13:37:08 +0000 (13:37 +0000)]
Use bool type.
Erik Rozendaal [Tue, 14 Dec 2004 13:30:36 +0000 (13:30 +0000)]
Check for packet.c with AC_CONFIG_SRCDIR.
Check for stdbool.h.
Erik Rozendaal [Tue, 14 Dec 2004 13:26:51 +0000 (13:26 +0000)]
Moved external include files to ldns directory.
Jelte Jansen [Tue, 14 Dec 2004 13:20:31 +0000 (13:20 +0000)]
splint warnings
Miek Gieben [Tue, 14 Dec 2004 13:19:17 +0000 (13:19 +0000)]
ldns_ and _ldns_ prefixing + CodingStyle
Jelte Jansen [Tue, 14 Dec 2004 13:15:20 +0000 (13:15 +0000)]
field names
Miek Gieben [Tue, 14 Dec 2004 13:13:21 +0000 (13:13 +0000)]
member underscores added
Jelte Jansen [Tue, 14 Dec 2004 13:06:43 +0000 (13:06 +0000)]
codingstylez
Erik Rozendaal [Tue, 14 Dec 2004 10:47:04 +0000 (10:47 +0000)]
Ignore run-test executables.
Jelte Jansen [Tue, 14 Dec 2004 10:46:56 +0000 (10:46 +0000)]
right, wrong coding standards (for tabs), reverted to real tabs
Jelte Jansen [Tue, 14 Dec 2004 10:43:23 +0000 (10:43 +0000)]
bit of coding style applied
Erik Rozendaal [Tue, 14 Dec 2004 10:40:10 +0000 (10:40 +0000)]
Makefile.in: splint target is PHONY.
Erik Rozendaal [Tue, 14 Dec 2004 10:33:35 +0000 (10:33 +0000)]
Makefile.in: Added 'lint' target to call splint.
Erik Rozendaal [Tue, 14 Dec 2004 10:03:39 +0000 (10:03 +0000)]
Emacs configuration for coding style.
Erik Rozendaal [Tue, 14 Dec 2004 09:47:51 +0000 (09:47 +0000)]
Fixed prefix.
Miek Gieben [Mon, 13 Dec 2004 13:31:29 +0000 (13:31 +0000)]
doxygen doc
Erik Rozendaal [Mon, 13 Dec 2004 13:07:19 +0000 (13:07 +0000)]
rr.c: (rr_push_rd_field) Allocate correct type.
Erik Rozendaal [Mon, 13 Dec 2004 13:06:47 +0000 (13:06 +0000)]
util.h: Ensure XMALLOC and XREALLOC are only used as statements.
rr.c: (rr_push_rd_field) Allocate correct type.