Skip to content

Commit e1d33d8

Browse files
committed
GRE: Put the flags bitmap right.
Recursion Control is a 3-bit unsigned integer, not a flag.
1 parent 7294fd8 commit e1d33d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

print-gre.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
#define GRE_KP 0x2000 /* key present */
5353
#define GRE_SP 0x1000 /* sequence# present */
5454
#define GRE_sP 0x0800 /* source routing */
55-
#define GRE_RECRS 0x0700 /* recursion count */
5655
#define GRE_AP 0x0080 /* acknowledgment# present */
5756

5857
static const struct tok gre_flag_values[] = {
@@ -61,11 +60,11 @@ static const struct tok gre_flag_values[] = {
6160
{ GRE_KP, "key present"},
6261
{ GRE_SP, "sequence# present"},
6362
{ GRE_sP, "source routing present"},
64-
{ GRE_RECRS, "recursion count"},
6563
{ GRE_AP, "ack present"},
6664
{ 0, NULL }
6765
};
6866

67+
#define GRE_RECRS_MASK 0x0700 /* recursion count */
6968
#define GRE_VERS_MASK 0x0007 /* protocol version */
7069

7170
/* source route entry types */

0 commit comments

Comments
 (0)