]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Support encode_int expressions.
authorTed Lemon <source@isc.org>
Thu, 27 May 1999 14:53:01 +0000 (14:53 +0000)
committerTed Lemon <source@isc.org>
Thu, 27 May 1999 14:53:01 +0000 (14:53 +0000)
includes/tree.h

index 1f967f2b38e51c3f9684d855ce38d50f54f10344..f8589f9747370006fc7af2b1d8d5c8685bac3df6 100644 (file)
@@ -44,6 +44,8 @@ struct buffer {
    XXX a reference to the data in the caller's space, which the caller
    XXX then has to dereference - instead, the reference should be
    XXX ephemeral by default and be made a persistent reference explicitly. */
+/* XXX on the other hand, it seems to work pretty nicely, so maybe the
+   XXX above comment is meshuggenah. */
 
 /* A string of data bytes, possibly accompanied by a larger buffer. */
 struct data_string {
@@ -74,6 +76,9 @@ enum expr_op {
        expr_extract_int8,
        expr_extract_int16,
        expr_extract_int32,
+       expr_encode_int8,
+       expr_encode_int16,
+       expr_encode_int32,
        expr_const_int,
        expr_exists,
        expr_encapsulate,
@@ -105,6 +110,7 @@ struct expression {
                } packet;
                struct data_string const_data;
                struct expression *extract_int;
+               struct expression *encode_int;
                unsigned long const_int;
                struct expression *concat [2];
                struct dns_host_entry *host_lookup;