]> git.ipfire.org Git - thirdparty/ldns.git/log
thirdparty/ldns.git
21 years agolint options
Jelte Jansen [Wed, 22 Dec 2004 11:59:46 +0000 (11:59 +0000)] 
lint options

21 years agoadded prefixes in packet.[ch]
Jelte Jansen [Wed, 22 Dec 2004 11:52:15 +0000 (11:52 +0000)] 
added prefixes in packet.[ch]
some more 2buffer functions

21 years agokilled local var updated vim syntax
Miek Gieben [Wed, 22 Dec 2004 11:38:34 +0000 (11:38 +0000)] 
killed local var updated vim syntax

21 years agobuffer.c: Check for allocation failures. (ldns_buffer_export) Mark the buffer
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.

21 years ago__X define gone
Miek Gieben [Tue, 21 Dec 2004 15:22:26 +0000 (15:22 +0000)] 
__X define gone

21 years agostill leave out the htons
Miek Gieben [Tue, 21 Dec 2004 15:01:36 +0000 (15:01 +0000)] 
still leave out the htons

21 years agodo not use htons for now
Miek Gieben [Tue, 21 Dec 2004 14:32:58 +0000 (14:32 +0000)] 
do not use htons for now

21 years agoInclude sys/types.h.
Erik Rozendaal [Tue, 21 Dec 2004 14:30:02 +0000 (14:30 +0000)] 
Include sys/types.h.

21 years agoRemove checks for int8_t, etc.
Erik Rozendaal [Tue, 21 Dec 2004 14:27:18 +0000 (14:27 +0000)] 
Remove checks for int8_t, etc.

21 years agoStop being pedantic.
Erik Rozendaal [Tue, 21 Dec 2004 14:26:25 +0000 (14:26 +0000)] 
Stop being pedantic.

21 years agoCheck for u_char, u_short, u_long types so htons can be used with
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.

21 years agoadded some functions to buffer.c (destroy and export)
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?)

21 years agoNeeded for htons.
Erik Rozendaal [Tue, 21 Dec 2004 14:16:02 +0000 (14:16 +0000)] 
Needed for htons.

21 years agoit compiles ok on Linux
Miek Gieben [Tue, 21 Dec 2004 14:07:44 +0000 (14:07 +0000)] 
it compiles ok on Linux

21 years agoget it to compile on linux first
Miek Gieben [Tue, 21 Dec 2004 14:06:17 +0000 (14:06 +0000)] 
get it to compile on linux first

21 years agofirst start made for str2host conversion. Ugly as hell - not sure if it even works
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

21 years agodirect copy from zonec.c from NSD
Miek Gieben [Tue, 21 Dec 2004 13:31:28 +0000 (13:31 +0000)] 
direct copy from zonec.c from NSD

21 years agobuf.h: Removed. Use buffer.h.
Erik Rozendaal [Tue, 21 Dec 2004 13:26:55 +0000 (13:26 +0000)] 
buf.h: Removed. Use buffer.h.

21 years agoconversion2str for A
Miek Gieben [Tue, 21 Dec 2004 13:17:13 +0000 (13:17 +0000)] 
conversion2str for A

21 years agobackported vsnprintf fix from nsd
Jelte Jansen [Tue, 21 Dec 2004 13:12:22 +0000 (13:12 +0000)] 
backported vsnprintf fix from nsd

21 years agoadded ldns-ified nsd buffers for easy buffer manupulation
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)

21 years agoother way to combine lint and static inlines
Jelte Jansen [Tue, 21 Dec 2004 12:16:26 +0000 (12:16 +0000)] 
other way to combine lint and static inlines

21 years agocomments removed
Miek Gieben [Tue, 21 Dec 2004 12:15:46 +0000 (12:15 +0000)] 
comments removed

21 years agoconfigure.ac: libdns uses -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600.
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.

21 years agoenum for packet sections
Jelte Jansen [Mon, 20 Dec 2004 14:23:07 +0000 (14:23 +0000)] 
enum for packet sections

21 years agogot some beauty tips from erik
Jelte Jansen [Mon, 20 Dec 2004 13:51:11 +0000 (13:51 +0000)] 
got some beauty tips from erik

21 years agoadded wire2rdata
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)

21 years agoadded access functions
Jelte Jansen [Mon, 20 Dec 2004 09:43:18 +0000 (09:43 +0000)] 
added access functions
added looping pointer check

21 years agorr.c: (ldns_wire2dname) Free allocated memory and return error code if
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.

21 years agogcc is te dom om mijn gedachten te lezen
Miek Gieben [Thu, 16 Dec 2004 15:13:13 +0000 (15:13 +0000)] 
gcc is te dom om mijn gedachten te lezen

21 years agoMALLOC checks, and statuscode
Miek Gieben [Thu, 16 Dec 2004 15:12:35 +0000 (15:12 +0000)] 
MALLOC checks, and statuscode

21 years agoremoved rest of _
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

21 years ago2dname uses rdf_new()
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

21 years ago:p
Jelte Jansen [Thu, 16 Dec 2004 14:50:58 +0000 (14:50 +0000)] 
:p

21 years agooff by 1 :p
Jelte Jansen [Thu, 16 Dec 2004 14:35:07 +0000 (14:35 +0000)] 
off by 1 :p

21 years agomalloc -> XMALLOC and other shallow fixes
Miek Gieben [Thu, 16 Dec 2004 14:27:46 +0000 (14:27 +0000)] 
malloc -> XMALLOC and other shallow fixes

21 years agowire2host.c: (ldns_wire2dname) Removed unneeded memcpy.
Erik Rozendaal [Thu, 16 Dec 2004 14:23:42 +0000 (14:23 +0000)] 
wire2host.c: (ldns_wire2dname) Removed unneeded memcpy.

21 years agowire2host.c: (ldns_wire2dname) Use the stack, Luke!
Erik Rozendaal [Thu, 16 Dec 2004 14:21:37 +0000 (14:21 +0000)] 
wire2host.c: (ldns_wire2dname) Use the stack, Luke!

21 years agofixed errors on bsd
Jelte Jansen [Thu, 16 Dec 2004 14:19:53 +0000 (14:19 +0000)] 
fixed errors on bsd

21 years agoforgot to add, my bad
Jelte Jansen [Thu, 16 Dec 2004 14:00:46 +0000 (14:00 +0000)] 
forgot to add, my bad

21 years agowire2dname now allocates data itself
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

21 years agosvn:ignore: Ignore .gdb_history.
Erik Rozendaal [Thu, 16 Dec 2004 12:50:48 +0000 (12:50 +0000)] 
svn:ignore: Ignore .gdb_history.

21 years agolibdnsified
Miek Gieben [Thu, 16 Dec 2004 12:20:04 +0000 (12:20 +0000)] 
libdnsified

21 years agorr.h: (ldns_rr_class, ldns_rr_type) New enumerations.
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.

21 years agobuf.h added, we need some kind of holding place of dns data
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

21 years agocopied from NSD - nothing changed yet
Miek Gieben [Thu, 16 Dec 2004 12:03:10 +0000 (12:03 +0000)] 
copied from NSD - nothing changed yet

21 years agoconversion file placeholders
Miek Gieben [Thu, 16 Dec 2004 11:55:10 +0000 (11:55 +0000)] 
conversion file placeholders

21 years agoexit exit
Miek Gieben [Thu, 16 Dec 2004 11:47:35 +0000 (11:47 +0000)] 
exit exit

21 years agordata.h: Renamed RDF type constants.
Erik Rozendaal [Thu, 16 Dec 2004 11:23:34 +0000 (11:23 +0000)] 
rdata.h: Renamed RDF type constants.

21 years agolast 2 fixes
Miek Gieben [Thu, 16 Dec 2004 11:19:35 +0000 (11:19 +0000)] 
last  2 fixes

21 years agotypes and function names conversion
Miek Gieben [Thu, 16 Dec 2004 11:13:06 +0000 (11:13 +0000)] 
types and function names conversion

21 years agoldns/ldns.h: Include ldns/error.h.
Erik Rozendaal [Thu, 16 Dec 2004 11:01:56 +0000 (11:01 +0000)] 
ldns/ldns.h: Include ldns/error.h.

21 years agopacket2wire now uses read_uint16
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)

21 years agoCodingStyle: Added standard abbreviation list. Minor other changes.
Erik Rozendaal [Thu, 16 Dec 2004 10:40:03 +0000 (10:40 +0000)] 
CodingStyle: Added standard abbreviation list.  Minor other changes.

21 years agoutil.h: Shut up splint.
Erik Rozendaal [Thu, 16 Dec 2004 09:07:43 +0000 (09:07 +0000)] 
util.h: Shut up splint.

21 years agoMakefile.in: Allow 'lint' outside of source directory.
Erik Rozendaal [Thu, 16 Dec 2004 09:02:45 +0000 (09:02 +0000)] 
Makefile.in: Allow 'lint' outside of source directory.

21 years agoMakefile.in: Allow building 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.

21 years agoMakefile.in: Don't pass CPPFLAGS to lint, just '-I.'.
Erik Rozendaal [Thu, 16 Dec 2004 08:55:20 +0000 (08:55 +0000)] 
Makefile.in: Don't pass CPPFLAGS to lint, just '-I.'.

21 years agoconfigure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
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.

21 years agoconfigure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
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.

21 years agoconfigure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
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.

21 years agoconfigure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline
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.

21 years agoadded ldns_wire2dname and ldns_wire2rr (without rdata, but with lots of TODO :p)
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)

21 years agoBad splint.
Erik Rozendaal [Wed, 15 Dec 2004 13:08:55 +0000 (13:08 +0000)] 
Bad splint.

21 years agoMakefile.in: Fixed LIBDNS_HEADERS.
Erik Rozendaal [Wed, 15 Dec 2004 13:07:32 +0000 (13:07 +0000)] 
Makefile.in: Fixed LIBDNS_HEADERS.

21 years agomoved stuff around - CodingStyle fixes
Miek Gieben [Wed, 15 Dec 2004 13:01:18 +0000 (13:01 +0000)] 
moved stuff around - CodingStyle fixes

21 years agot_rr -> ldns_rr_type
Jelte Jansen [Wed, 15 Dec 2004 12:47:26 +0000 (12:47 +0000)] 
t_rr -> ldns_rr_type

21 years agoerror.h started, used in rdata.c _ldns_octet
Miek Gieben [Wed, 15 Dec 2004 12:34:17 +0000 (12:34 +0000)] 
error.h started, used in rdata.c _ldns_octet

21 years agovim syntax file. Added to repo for personal convience
Miek Gieben [Wed, 15 Dec 2004 11:32:29 +0000 (11:32 +0000)] 
vim syntax file. Added to repo for personal convience

21 years agoinitial ldns_packet_free()
Jelte Jansen [Wed, 15 Dec 2004 11:27:18 +0000 (11:27 +0000)] 
initial ldns_packet_free()

21 years agorr.c: (ldns_rr_descriptor_maximum) Return UINT_MAX instead of SIZE_MAX
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.

21 years agoUpdated RR rdata field descriptor table to be able to deal with variable
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}.

21 years agoEmacs configuration.
Erik Rozendaal [Wed, 15 Dec 2004 09:58:46 +0000 (09:58 +0000)] 
Emacs configuration.

21 years agot_header -> ldns_header_type
Jelte Jansen [Wed, 15 Dec 2004 08:55:43 +0000 (08:55 +0000)] 
t_header -> ldns_header_type
t_packet -> ldns_packet_type

21 years agorr.c: (ldns_rr_push_rd_field) Return true on success.
Erik Rozendaal [Wed, 15 Dec 2004 08:53:32 +0000 (08:53 +0000)] 
rr.c: (ldns_rr_push_rd_field) Return true on success.

21 years agoremoved double #define for header byte size
Jelte Jansen [Wed, 15 Dec 2004 08:50:39 +0000 (08:50 +0000)] 
removed double #define for header byte size

21 years agorr.c: (ldns_rr_push_rd_field) Check result of XREALLOC and return false on
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.

21 years agorr.c: (ldns_rr_push_rd_field) Updated for new XREALLOC macro usage.
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.

21 years agoutil.h: (MALLOC, XMALLOC, REALLOC, XREALLOC) Changed to be more C like.
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.

21 years agopacket.c: (ldns_wire2packet_header) Replaced evil C99/C++ single line
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.

21 years agoprefix ahoy
Jelte Jansen [Tue, 14 Dec 2004 15:07:05 +0000 (15:07 +0000)] 
prefix ahoy

21 years agowire2packet_header paranmeters according to coding_style
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

21 years agoUse bool type.
Erik Rozendaal [Tue, 14 Dec 2004 13:37:08 +0000 (13:37 +0000)] 
Use bool type.

21 years agoCheck for packet.c with AC_CONFIG_SRCDIR.
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.

21 years agoMoved external include files to ldns directory.
Erik Rozendaal [Tue, 14 Dec 2004 13:26:51 +0000 (13:26 +0000)] 
Moved external include files to ldns directory.

21 years agosplint warnings
Jelte Jansen [Tue, 14 Dec 2004 13:20:31 +0000 (13:20 +0000)] 
splint warnings

21 years agoldns_ and _ldns_ prefixing + CodingStyle
Miek Gieben [Tue, 14 Dec 2004 13:19:17 +0000 (13:19 +0000)] 
ldns_ and _ldns_ prefixing + CodingStyle

21 years agofield names
Jelte Jansen [Tue, 14 Dec 2004 13:15:20 +0000 (13:15 +0000)] 
field names

21 years agomember underscores added
Miek Gieben [Tue, 14 Dec 2004 13:13:21 +0000 (13:13 +0000)] 
member underscores added

21 years agocodingstylez
Jelte Jansen [Tue, 14 Dec 2004 13:06:43 +0000 (13:06 +0000)] 
codingstylez

21 years agoIgnore run-test executables.
Erik Rozendaal [Tue, 14 Dec 2004 10:47:04 +0000 (10:47 +0000)] 
Ignore run-test executables.

21 years agoright, wrong coding standards (for tabs), reverted to real tabs
Jelte Jansen [Tue, 14 Dec 2004 10:46:56 +0000 (10:46 +0000)] 
right, wrong coding standards (for tabs), reverted to real tabs

21 years agobit of coding style applied
Jelte Jansen [Tue, 14 Dec 2004 10:43:23 +0000 (10:43 +0000)] 
bit of coding style applied

21 years agoMakefile.in: splint target is PHONY.
Erik Rozendaal [Tue, 14 Dec 2004 10:40:10 +0000 (10:40 +0000)] 
Makefile.in: splint target is PHONY.

21 years agoMakefile.in: Added 'lint' target to call splint.
Erik Rozendaal [Tue, 14 Dec 2004 10:33:35 +0000 (10:33 +0000)] 
Makefile.in: Added 'lint' target to call splint.

21 years agoEmacs configuration for coding style.
Erik Rozendaal [Tue, 14 Dec 2004 10:03:39 +0000 (10:03 +0000)] 
Emacs configuration for coding style.

21 years agoFixed prefix.
Erik Rozendaal [Tue, 14 Dec 2004 09:47:51 +0000 (09:47 +0000)] 
Fixed prefix.

21 years agodoxygen doc
Miek Gieben [Mon, 13 Dec 2004 13:31:29 +0000 (13:31 +0000)] 
doxygen doc

21 years agorr.c: (rr_push_rd_field) Allocate correct type.
Erik Rozendaal [Mon, 13 Dec 2004 13:07:19 +0000 (13:07 +0000)] 
rr.c: (rr_push_rd_field) Allocate correct type.

21 years agoutil.h: Ensure XMALLOC and XREALLOC are only used as statements.
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.