Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ikev2: add support for custom ipsec-over-udp port
[vpp.git]
/
src
/
vnet
/
vxlan-gbp
/
vxlan_gbp_packet.h
diff --git
a/src/vnet/vxlan-gbp/vxlan_gbp_packet.h
b/src/vnet/vxlan-gbp/vxlan_gbp_packet.h
index
33bccd6
..
e655b33
100644
(file)
--- a/
src/vnet/vxlan-gbp/vxlan_gbp_packet.h
+++ b/
src/vnet/vxlan-gbp/vxlan_gbp_packet.h
@@
-63,6
+63,11
@@
* Group membership being encapsulated by VXLAN. Its value is source
* class id.
*
* Group membership being encapsulated by VXLAN. Its value is source
* class id.
*
+ * FOR INTERNAL USE ONLY
+ * R bit: Bit 12 of the initial word is defined as the reflection bit
+ * Set on packet rx checked on tx and dropped if set. this prevents
+ * packets recieved on an iVXLAN tunnel being reflected back to
+ * another.
*/
typedef struct
*/
typedef struct
@@
-99,11
+104,14
@@
typedef enum
#undef _
} __attribute__ ((packed)) vxlan_gbp_flags_t;
#undef _
} __attribute__ ((packed)) vxlan_gbp_flags_t;
+#define VXLAN_GBP_FLAGS_GI (VXLAN_GBP_FLAGS_G|VXLAN_GBP_FLAGS_I)
+
#define foreach_vxlan_gbp_gpflags \
_ (0x40, D) \
_ (0x20, E) \
_ (0x10, S) \
#define foreach_vxlan_gbp_gpflags \
_ (0x40, D) \
_ (0x20, E) \
_ (0x10, S) \
-_ (0x08, A)
+_ (0x08, A) \
+_ (0x04, R)
typedef enum
{
typedef enum
{