diff options
author | Patrick McHardy <kaber@trash.net> | 2015-11-25 16:50:19 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2015-11-25 16:50:19 +0000 |
commit | e6c9174e13b27385241b9ce9767d00b171d406ab (patch) | |
tree | c592aca1d196f904c731ba6a8771eb17f2301964 /include | |
parent | 6d46f18fdf7554fa39b50405358fd0772b14581e (diff) |
proto: add checksum key information to struct proto_desc
The checksum key is used to determine the correct position where to update
the checksum for the payload statement.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h index a43bf98b..974116f1 100644 --- a/include/proto.h +++ b/include/proto.h @@ -68,6 +68,7 @@ struct proto_hdr_template { * * @name: protocol name * @base: header base + * @checksum_key: key of template containing checksum * @protocol_key: key of template containing upper layer protocol description * @length: total size of the header, in bits * @protocols: link to upper layer protocol descriptions indexed by protocol value @@ -76,6 +77,7 @@ struct proto_hdr_template { struct proto_desc { const char *name; enum proto_bases base; + unsigned int checksum_key; unsigned int protocol_key; unsigned int length; struct { |