summaryrefslogtreecommitdiff
path: root/trafgen_proto.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-08-13 02:11:20 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-09-21 09:57:53 +0200
commit68e2a5ab4122bb826c99dfb784fa38c1c661411a (patch)
treec57ce82891181cecc6be5eeebb614200974af73f /trafgen_proto.h
parent34e4f0deb66f823092fb4fa251e885503e96273f (diff)
trafgen: parser: Unify proto field value parsing
Changed parsing logic of field value expression to be more generic. Such approach will allow to easy extend field value expression to support dynamic field functions. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.h')
-rw-r--r--trafgen_proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/trafgen_proto.h b/trafgen_proto.h
index 2e50402..a8b97eb 100644
--- a/trafgen_proto.h
+++ b/trafgen_proto.h
@@ -143,4 +143,6 @@ extern void proto_field_dyn_apply(struct proto_field *field);
extern void proto_field_func_add(struct proto_hdr *hdr, uint32_t fid,
struct proto_field_func *func);
+extern struct proto_field *proto_field_by_id(struct proto_hdr *hdr, uint32_t fid);
+
#endif /* TRAFGEN_PROTO_H */