From e6c9174e13b27385241b9ce9767d00b171d406ab Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Wed, 25 Nov 2015 16:50:19 +0000 Subject: 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 --- include/proto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 { -- cgit v1.2.3