From: Ken Steele Date: Wed, 5 Feb 2014 23:00:19 +0000 (-0500) Subject: Fix GRE Source Routing Header definition X-Git-Tag: suricata-2.1beta1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44aeb9c637503c87cc0424d172fe8ef0d141351c;p=thirdparty%2Fsuricata.git Fix GRE Source Routing Header definition The Source Routing Header had routing defined as a char* for a field of variable size. Since that field was not being used in the code, I removed the pointer and added a comment. --- diff --git a/src/decode-gre.h b/src/decode-gre.h index e5a4f4c17c..6f3db29daa 100644 --- a/src/decode-gre.h +++ b/src/decode-gre.h @@ -16,9 +16,11 @@ */ /** - * \file + * \file decode-gre.h * * \author Breno Silva + * + * Generic Route Encapsulation (GRE) from RFC 1701. */ #ifndef __DECODE_GRE_H__ @@ -39,12 +41,14 @@ typedef struct GREHdr_ } __attribute__((__packed__)) GREHdr; +/* Generic Routing Encapsulation Source Route Entries (SREs). + * The header is followed by a variable amount of Routing Information. + */ typedef struct GRESreHdr_ { uint16_t af; /**< Address family */ uint8_t sre_offset; uint8_t sre_length; - uint8_t *routing; } __attribute__((__packed__)) GRESreHdr; #define GRE_VERSION_0 0x0000