trafgen: parser: Use proto_field_set_xxx where it is possible
commitb463e1f265628f97967a01ce0a2cf18afe7b7aa3
authorVadim Kochan <vadim4j@gmail.com>
Sun, 14 May 2017 05:52:08 +0000 (14 08:52 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 15 May 2017 08:32:12 +0000 (15 10:32 +0200)
tree66436f3bcfb429593e4ab8155b5e431027da2763
parent5ca91a807a81db233e1b4443ea227bb1d0a7868f
trafgen: parser: Use proto_field_set_xxx where it is possible

Use proto_field_set_xxx(field, ...)  instead of
proto_hdr_field_set_xxx(hdr, fid, ...) to be more generic and do not
depend on 'hdr' variable.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen_parser.y
trafgen_proto.c
trafgen_proto.h