diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-08-13 02:11:13 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-09-21 09:54:41 +0200 |
commit | 573b1fff25af70492deb9e59c0b48d77b0c1ed03 (patch) | |
tree | 46457f4ea0f7fe6c95c025714e8e52b04de41d15 /trafgen_proto.h | |
parent | d5bcf8d0f5a2a549c3cbe71e7704bb557c7eb6a3 (diff) |
trafgen: ipv4: Update csum at runtime if needed
Handle 'field_changed' callback to check if IPv4 csum is needed to be
recalculated, if so - update it on 'packet_update' event.
Added 'is_csum_valid' to proto_hdr struct to check if csum needs to be
updated.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen_proto.h b/trafgen_proto.h index 41e9383..000938c 100644 --- a/trafgen_proto.h +++ b/trafgen_proto.h @@ -48,6 +48,7 @@ struct proto_hdr { uint32_t pkt_id; struct proto_field *fields; size_t fields_count; + bool is_csum_valid; size_t len; }; |