diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-02-10 09:16:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 09:16:27 +0100 |
commit | ad25affcb7e40e64fa06c5f63e2eab0f12c7f517 (patch) | |
tree | df148fe9482c1124aabb92e87c83133bb20116d3 /example/reader_util.c | |
parent | 31f0608b9aef16b8036c0509b63a3fe5efd6d17c (diff) |
reader_util: fix GRE detunneling (#2314)
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index bdf723e61..d42b92d25 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1783,10 +1783,9 @@ static uint32_t ndpi_is_valid_gre_tunnel(const struct pcap_pkthdr *header, struct ndpi_gre_basehdr *grehdr = (struct ndpi_gre_basehdr*)&packet[offset]; offset += sizeof(struct ndpi_gre_basehdr); /* - rfc-1701 The GRE flags are encoded in the first two octets. Bit 0 is the most significant bit, bit 15 is the least significant bit. Bits - 13 through 15 are reserved for the Version field. Bits 5 through + 13 through 15 are reserved for the Version field. Bits 9 through 12 are reserved for future use and MUST be transmitted as zero. */ if(NDPI_GRE_IS_FLAGS(grehdr->flags)) |