]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
Fix GRE Source Routing Header definition
authorKen Steele <ken@tilera.com>
Wed, 5 Feb 2014 23:00:19 +0000 (18:00 -0500)
committerVictor Julien <victor@inliniac.net>
Tue, 12 Aug 2014 10:29:18 +0000 (12:29 +0200)
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.

src/decode-gre.h

index e5a4f4c17c1e0ad2816514da0e075044bf9af7bf..6f3db29daae9d443363f2cf1f1f728294a826f87 100644 (file)
  */
 
 /**
- * \file
+ * \file decode-gre.h
  *
  * \author Breno Silva <breno.silva@gmail.com>
+ *
+ * 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