Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
L2 BD API to flush all IP-MAC entries in the specified BD
[vpp.git]
/
src
/
vpp
/
api
/
custom_dump.c
diff --git
a/src/vpp/api/custom_dump.c
b/src/vpp/api/custom_dump.c
index
8339721
..
0d8b453
100644
(file)
--- a/
src/vpp/api/custom_dump.c
+++ b/
src/vpp/api/custom_dump.c
@@
-515,6
+515,17
@@
static void *vl_api_bd_ip_mac_add_del_t_print
FINISH;
}
FINISH;
}
+static void *vl_api_bd_ip_mac_flush_t_print
+ (vl_api_bd_ip_mac_flush_t * mp, void *handle)
+{
+ u8 *s;
+
+ s = format (0, "SCRIPT: bd_ip_mac_flush ");
+ s = format (s, "bd_id %d ", ntohl (mp->bd_id));
+
+ FINISH;
+}
+
static void *vl_api_bd_ip_mac_dump_t_print
(vl_api_bd_ip_mac_dump_t * mp, void *handle)
{
static void *vl_api_bd_ip_mac_dump_t_print
(vl_api_bd_ip_mac_dump_t * mp, void *handle)
{
@@
-2109,10
+2120,10
@@
static void *vl_api_cli_inband_t_print
{
u8 *s;
u8 *cmd = 0;
{
u8 *s;
u8 *cmd = 0;
- u32 length =
ntohl (mp->length
);
+ u32 length =
vl_api_string_len (&mp->cmd
);
vec_validate (cmd, length);
vec_validate (cmd, length);
- clib_memcpy (cmd,
mp->cmd
, length);
+ clib_memcpy (cmd,
vl_api_from_api_string (&mp->cmd)
, length);
s = format (0, "SCRIPT: exec %v ", cmd);
s = format (0, "SCRIPT: exec %v ", cmd);
@@
-3363,19
+3374,19
@@
static void *vl_api_flow_classify_set_interface_t_print
}
static void *
}
static void *
-vl_api_
punt_t_print (vl_api
_punt_t * mp, void *handle)
+vl_api_
set_punt_t_print (vl_api_set
_punt_t * mp, void *handle)
{
u8 *s;
s = format (0, "SCRIPT: punt ");
{
u8 *s;
s = format (0, "SCRIPT: punt ");
- if (mp->ipv != (u8) ~ 0)
- s = format (s, "ip %d ", mp->ipv);
+ if (mp->
punt.
ipv != (u8) ~ 0)
+ s = format (s, "ip %d ", mp->
punt.
ipv);
- s = format (s, "protocol %d ", mp->l4_protocol);
+ s = format (s, "protocol %d ", mp->
punt.
l4_protocol);
- if (mp->l4_port != (u16) ~ 0)
- s = format (s, "port %d ", ntohs (mp->l4_port));
+ if (mp->
punt.
l4_port != (u16) ~ 0)
+ s = format (s, "port %d ", ntohs (mp->
punt.
l4_port));
if (!mp->is_add)
s = format (s, "del ");
if (!mp->is_add)
s = format (s, "del ");
@@
-3827,6
+3838,7
@@
_(IP_ADDRESS_DUMP, ip_address_dump) \
_(IP_DUMP, ip_dump) \
_(DELETE_LOOPBACK, delete_loopback) \
_(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \
_(IP_DUMP, ip_dump) \
_(DELETE_LOOPBACK, delete_loopback) \
_(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \
+_(BD_IP_MAC_FLUSH, bd_ip_mac_flush) \
_(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \
_(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \
_(AF_PACKET_CREATE, af_packet_create) \
_(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \
_(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \
_(AF_PACKET_CREATE, af_packet_create) \
@@
-3891,7
+3903,7
@@
_(IPSEC_GRE_ADD_DEL_TUNNEL, ipsec_gre_add_del_tunnel) \
_(IPSEC_GRE_TUNNEL_DUMP, ipsec_gre_tunnel_dump) \
_(DELETE_SUBIF, delete_subif) \
_(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \
_(IPSEC_GRE_TUNNEL_DUMP, ipsec_gre_tunnel_dump) \
_(DELETE_SUBIF, delete_subif) \
_(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \
-_(
PUNT, punt)
\
+_(
SET_PUNT, set_punt)
\
_(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \
_(FLOW_CLASSIFY_DUMP, flow_classify_dump) \
_(GET_FIRST_MSG_ID, get_first_msg_id) \
_(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \
_(FLOW_CLASSIFY_DUMP, flow_classify_dump) \
_(GET_FIRST_MSG_ID, get_first_msg_id) \