Commit graph

245 commits

Author SHA1 Message Date
Sven M. Hallberg
e875dcd19a add "VRULE" family of macros to attach validations like actions 2013-01-17 17:44:41 +01:00
Sven M. Hallberg
6515a80c3a condense rr.c 2013-01-17 01:17:37 +01:00
Sven M. Hallberg
588d534f32 pull selection and initialization of RDATA parser out of set_rdata 2013-01-17 00:50:15 +01:00
Sven M. Hallberg
f0155d18d6 pull packing of RRs out of act_message into act_rr 2013-01-16 22:42:47 +01:00
Sven M. Hallberg
587143eec1 cleanup and bugfixing on domain parser 2013-01-16 18:20:23 +01:00
Sven M. Hallberg
4f1e9ad22d don't add _t type suffix inside H_ macros 2013-01-16 16:41:23 +01:00
Sven M. Hallberg
ac3ad6d690 remove left-over definitions that have moved to glue.h 2013-01-16 16:40:49 +01:00
Sven M. Hallberg
ccd304ddd7 replace remaining get_domain calls and remove get_domain 2013-01-16 16:36:23 +01:00
Sven M. Hallberg
e54c5236ff replace get_domain calls in set_rr with H_FIELD 2013-01-16 16:31:46 +01:00
Sven M. Hallberg
0083031d6f move get_domain logic into an action on the domain parser 2013-01-16 16:08:30 +01:00
Sven M. Hallberg
16b1e02baa add an assertion to h_seq_index 2013-01-16 16:03:20 +01:00
Sven M. Hallberg
aa295f1536 rewrite dns domain grammar using H_RULE 2013-01-16 15:40:10 +01:00
Sven M. Hallberg
a38d2e4ab0 replace another field access with a glue macro 2013-01-16 15:06:51 +01:00
Sven M. Hallberg
3412541370 move api additions to glue.[ch] 2013-01-16 15:05:04 +01:00
Sven M. Hallberg
4b30ebdb77 pull out struct types of complex rdata fields 2013-01-15 22:34:15 +01:00
Sven M. Hallberg
9c10a75f3d use H_SEQ_INDEX to access a sequence 2013-01-15 22:18:33 +01:00
Sven M. Hallberg
83f4944321 separate parsing and packing of rdata 2013-01-15 22:12:13 +01:00
Sven M. Hallberg
342e39eb61 add helpers for easier token construction and access to sequence elements 2013-01-15 20:02:53 +01:00
Sven M. Hallberg
b5db3177db normalize allocation of result in act_message wrt other actions 2013-01-15 17:50:18 +01:00
Sven M. Hallberg
acfc903a15 start pulling pack_dns_struct apart 2013-01-15 13:54:30 +01:00
Sven M. Hallberg
21df49cc15 split out act_header 2013-01-15 01:24:47 +01:00
Sven M. Hallberg
2db9cd23c8 grammar beautification 2013-01-15 00:19:43 +01:00
Sven M. Hallberg
2ff51ab9c3 rework dns example syntax into H_RULE style 2013-01-14 23:51:25 +01:00
Sven M. Hallberg
40ab87b4fb add user-defined token types for dns parts 2013-01-14 20:35:20 +01:00
Meredith L. Patterson
fdf76a0910 Merge pull request #25 from pesco/fix-whitespace-end
allow h_whitespace(p) to succeed on end of input if p succeeds
2013-01-09 08:08:49 -08:00
Meredith L. Patterson
a2840a6aa7 Merge pull request #24 from pesco/base64-example
Base64 example
2013-01-09 08:07:19 -08:00
Meredith L. Patterson
b507ff6cb0 Merge pull request #23 from pesco/tt_user
make TT_USER > TT_ERR, remove TT_MAX
2013-01-09 08:07:03 -08:00
Sven M. Hallberg
2bc03e4e9f allow h_whitespace(p) to succeed on end of input if p succeeds 2013-01-09 14:48:02 +01:00
Sven M. Hallberg
177281289c use h_in for restricted base64 digit cases 2013-01-08 00:24:13 +01:00
Sven M. Hallberg
87b5e668c3 remove comments about bugs that no longer exist 2013-01-08 00:20:34 +01:00
Sven M. Hallberg
bc486aa840 fix base64 example to parse more than the 2- and 1-byte special cases 2013-01-08 00:19:23 +01:00
Sven M. Hallberg
4d0ec07c1a make TT_USER > TT_ERR, remove TT_MAX 2013-01-07 23:44:26 +01:00
Meredith L. Patterson
ad4aa74b85 Merge pull request #22 from abiggerhammer/master
further OS X compat
2012-11-14 11:11:28 -08:00
Meredith L. Patterson
8163b3981d Changed other instances of malloc.h to stdlib.h for OSX compat 2012-11-14 14:05:25 -05:00
Meredith L. Patterson
b97d961227 Merge pull request #21 from abiggerhammer/master
Refactored hammer.c packrat parsing code into backends/packrat.c
2012-11-13 21:05:30 -08:00
Meredith L. Patterson
fa6497b9f0 Refactored packrat-parsing code into packrat.c 2012-11-14 00:02:24 -05:00
Meredith L. Patterson
0ab598cd4a Merge pull request #20 from abiggerhammer/master
readme fix
2012-11-13 19:57:43 -08:00
Meredith L. Patterson
4e6cfe9375 doc isn't actually a target yet 2012-11-13 22:54:10 -05:00
Dan Hirsch
5b1619719e Merge remote-tracking branch 'upstream/master' 2012-11-13 22:52:56 -05:00
Dan Hirsch
1e35c3c63a Fixed build error on OSX... I think. 2012-11-13 22:51:31 -05:00
Dan Hirsch
29c61e8aec Merge remote-tracking branch 'upstream/master' 2012-11-13 22:42:44 -05:00
Dan Hirsch
49ea7864cc Tweaked docs 2012-11-13 22:42:25 -05:00
Meredith L. Patterson
fe757bde2d Refactoring done. Added glib minimum version to README. 2012-11-13 22:42:11 -05:00
Meredith L. Patterson
de8db18db4 Refactored tests; make just builds library, make test builds/runs tests 2012-11-13 22:29:25 -05:00
Meredith L. Patterson
236ec733a1 Reorganizing makefile requirements 2012-11-13 21:50:48 -05:00
Meredith L. Patterson
e9b49cf24c gcc 4.4 requires stdarg in hammer.h 2012-11-11 12:39:23 -05:00
Meredith L. Patterson
4ee72f7308 double 'const' decl was causing clang to error 2012-11-11 11:10:39 -05:00
Meredith L. Patterson
c05559f04b made prereq header a little smaller 2012-11-11 02:29:34 -05:00
Meredith L. Patterson
e96969a6f0 Finally wrote a damn README 2012-11-11 02:28:07 -05:00
Meredith L. Patterson
6ae2e1fed4 Changed malloc.h to stdlib.h for OSX compatibility. 2012-11-10 23:34:08 -05:00