Commit graph

136 commits

Author SHA1 Message Date
Sven M. Hallberg
6e166174d6 add H_FIELD variants for built-in types 2013-01-25 19:06:28 +01:00
Sven M. Hallberg
b58b82b473 add h_seq_len 2013-01-25 18:52:07 +01:00
Sven M. Hallberg
118c03c534 move h_seq modification functions around to match the order in the header 2013-01-25 18:46:20 +01:00
Sven M. Hallberg
dbb77c0c55 ah, it's not an slist, forget about cons and prepend for now 2013-01-25 18:42:45 +01:00
Sven M. Hallberg
0b4002c697 add definitions for h_seq_index family of functions 2013-01-25 18:37:04 +01:00
Sven M. Hallberg
d6ef9ac526 add definitions for h_cast family of functions 2013-01-25 18:32:01 +01:00
Sven M. Hallberg
70aaf1308c massage glue api around some, add a bunch of dummy declarations 2013-01-25 18:12:00 +01:00
Sven M. Hallberg
71cdd46ceb expand h_make family to include seq, bytes, sint, and uint tokens 2013-01-23 19:29:29 +01:00
Sven M. Hallberg
54046e25da forgot to allocate the carray in h_make_seq (oops) 2013-01-23 19:24:13 +01:00
Sven M. Hallberg
3df4030bf8 cosmetics 2013-01-23 19:10:36 +01:00
Sven M. Hallberg
2c90bd3ef5 rename: h_seq_index_user -> h_seq_index -> h_seq_index_token 2013-01-23 19:06:25 +01:00
Sven M. Hallberg
2d53a0f873 mark h_carray_index as meant to be internal 2013-01-23 18:30:55 +01:00
Sven M. Hallberg
4c8b0086d7 rename H_MAKE_TOKEN to H_MAKE and remove 'token' from other function names 2013-01-23 18:28:50 +01:00
Sven M. Hallberg
ef17e42ec8 rename H_MAKE to H_ALLOC 2013-01-23 18:17:17 +01:00
Sven M. Hallberg
dc037e6c28 organize definitions in glue.h a little 2013-01-23 18:16:14 +01:00
Sven M. Hallberg
1b0c61fc15 cosmetics 2013-01-23 16:57:59 +01:00
Sven M. Hallberg
d0d115f206 wrap only non-null rdata parsers with h_end_p 2013-01-23 16:55:26 +01:00
Sven M. Hallberg
8dea41c237 condense the packing table in set_rdata a little 2013-01-17 22:20:58 +01:00
Sven M. Hallberg
c9d3101f41 a comment 2013-01-17 21:59:55 +01:00
Sven M. Hallberg
e6a546b95b make actions for the remaining RDATA types 2013-01-17 21:58:17 +01:00
Sven M. Hallberg
4d40940493 move WKS into action 2013-01-17 21:39:32 +01:00
Sven M. Hallberg
b88d6ca34a move SOA processing into an action 2013-01-17 21:35:33 +01:00
Sven M. Hallberg
8fbc137223 move get_cs into an action 2013-01-17 20:49:26 +01:00
Sven M. Hallberg
0304c75bba correct improper uses of H_FIELD on domain-only RDATAs 2013-01-17 19:17:23 +01:00
Sven M. Hallberg
b953b9a763 move get_txt into an action building the whole dns_rr_txt structure 2013-01-17 19:13:06 +01:00
Sven M. Hallberg
954a762fc0 replace remaining h_attr_bool calls with VRULEs 2013-01-17 18:34:11 +01:00
Sven M. Hallberg
dd574bd735 give glue actions an h_ prefix and add H_ACT_APPLY macro 2013-01-17 18:31:13 +01:00
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