trafgen: proto: Change __proto_field_set_bytes(...) to take struct proto_field
commitd084e7ab35438619bfd414ab9a605c64e6e83817
authorVadim Kochan <vadim4j@gmail.com>
Sun, 18 Dec 2016 09:52:45 +0000 (18 11:52 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 21 Dec 2016 15:54:47 +0000 (21 16:54 +0100)
tree696ee9c75a29a9f39127773922c359245ce0dea6
parentd7ef402f03369f1c1c1bd302edad449e0f7bf37d
trafgen: proto: Change __proto_field_set_bytes(...) to take struct proto_field

Change __proto_field_set_bytes(...) function to take struct proto_field
instead of doing lookup by hdr & fid.

It is needed to able use this function with some custom
modified struct proto_field (len, pkt_offset).

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