summaryrefslogtreecommitdiff
path: root/trafgen_proto.c
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.c
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.c')
-rw-r--r--trafgen_proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_proto.c b/trafgen_proto.c
index f4b2828..0b791f7 100644
--- a/trafgen_proto.c
+++ b/trafgen_proto.c
@@ -107,7 +107,7 @@ void proto_header_fields_add(struct proto_hdr *hdr,
}
}
-static struct proto_field *proto_field_by_id(struct proto_hdr *hdr, uint32_t fid)
+struct proto_field *proto_field_by_id(struct proto_hdr *hdr, uint32_t fid)
{
/* Assume the fields are stored in the same order as the respective
* enum, so the index can be used for faster lookup here.