diff options
author | Neale Ranns <nranns@cisco.com> | 2019-03-04 14:08:11 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-03-06 10:31:38 +0000 |
commit | 8da9fc659badc016e409f772673002f021c0cc4a (patch) | |
tree | 0223180b7344b652ab8c45bb38f47f335bbed7c5 /src/plugins/gbp/gbp_vxlan.h | |
parent | dc8d93b02949f508d5eed312a51aa91102224b39 (diff) |
GBP: learn from ARP and L2 packets
Change-Id: I8af7bca566ec7c9bd2b72529d49e04c6e649b44a
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_vxlan.h')
-rw-r--r-- | src/plugins/gbp/gbp_vxlan.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/gbp/gbp_vxlan.h b/src/plugins/gbp/gbp_vxlan.h index acf5f4b1c7c..908abc2990e 100644 --- a/src/plugins/gbp/gbp_vxlan.h +++ b/src/plugins/gbp/gbp_vxlan.h @@ -82,6 +82,11 @@ typedef struct gbp_vxlan_tunnel_t_ * list of child vxlan-gbp tunnels built from this template */ index_t *gt_tuns; + + /** + * The source address to use for child tunnels + */ + ip46_address_t gt_src; } gbp_vxlan_tunnel_t; /** @@ -103,7 +108,9 @@ typedef enum gbp_vxlan_tunnel_type_t_ } gbp_vxlan_tunnel_type_t; extern int gbp_vxlan_tunnel_add (u32 vni, gbp_vxlan_tunnel_layer_t layer, - u32 bd_rd_id, u32 * sw_if_indexp); + u32 bd_rd_id, + const ip4_address_t * src, + u32 * sw_if_indexp); extern int gbp_vxlan_tunnel_del (u32 vni); extern gbp_vxlan_tunnel_type_t gbp_vxlan_tunnel_get_type (u32 sw_if_index); |