summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2016-08-02 02:31:03 +0200
committerDave Barach <openvpp@barachs.net>2016-08-03 11:48:32 +0000
commit429e7951975e31c86bbbe9bef46195175135d866 (patch)
tree7fe03a404fad2c37d03b272f4cb8b4f491a5d803 /vnet
parent8a1531dfb7c963b530b54d33498c4a035ec03caa (diff)
LISP API/VAT cleanup
- cleaned up some of the LISP APIs - added support for mac in dp APIs Change-Id: I11d419a30d73ddbf6554768d6dc2a09cc5a6e072 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/lisp-cp/lisp_types.c6
-rw-r--r--vnet/vnet/lisp-cp/lisp_types.h1
-rw-r--r--vnet/vnet/lisp-gpe/lisp_gpe.h3
3 files changed, 10 insertions, 0 deletions
diff --git a/vnet/vnet/lisp-cp/lisp_types.c b/vnet/vnet/lisp-cp/lisp_types.c
index 196010e2556..e62edb93875 100644
--- a/vnet/vnet/lisp-cp/lisp_types.c
+++ b/vnet/vnet/lisp-cp/lisp_types.c
@@ -955,6 +955,12 @@ gid_address_parse (u8 * offset, gid_address_t *a)
return len;
}
+void
+gid_address_ip_set(gid_address_t * dst, void * src, u8 version)
+{
+ ip_address_set (&gid_address_ip(dst), src, version);
+}
+
int
no_addr_cmp (void * a1, void * a2)
{
diff --git a/vnet/vnet/lisp-cp/lisp_types.h b/vnet/vnet/lisp-cp/lisp_types.h
index 4d4a6b1112c..b1b4b9db3f0 100644
--- a/vnet/vnet/lisp-cp/lisp_types.h
+++ b/vnet/vnet/lisp-cp/lisp_types.h
@@ -171,6 +171,7 @@ u8 gid_address_len (gid_address_t *a);
void * gid_address_cast (gid_address_t * gid, gid_address_type_t type);
void gid_address_copy(gid_address_t * dst, gid_address_t * src);
u32 gid_address_parse (u8 * offset, gid_address_t *a);
+void gid_address_ip_set(gid_address_t * dst, void * src, u8 version);
#define gid_address_type(_a) (_a)->type
#define gid_address_ippref(_a) (_a)->ippref
diff --git a/vnet/vnet/lisp-gpe/lisp_gpe.h b/vnet/vnet/lisp-gpe/lisp_gpe.h
index fd7a1143cbd..c3f024229e3 100644
--- a/vnet/vnet/lisp-gpe/lisp_gpe.h
+++ b/vnet/vnet/lisp-gpe/lisp_gpe.h
@@ -264,6 +264,9 @@ typedef struct
{
u32 table_id;
u16 bd_id;
+
+ /* generic access */
+ u32 dp_table;
};
} vnet_lisp_gpe_add_del_fwd_entry_args_t;