diff options
author | Dave Barach <dave@barachs.net> | 2016-12-20 17:59:27 -0500 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-12-22 19:04:16 +0000 |
commit | 504b83009a00d70c777c04014967494642074d52 (patch) | |
tree | 8159edc93c0027b0dac200875edf1f07481bbbff /plugins/flowperpkt-plugin/flowperpkt/flowperpkt_test.c | |
parent | abea9664983b723023e692d77fd4fe3ca29c1e34 (diff) |
Add L2 flow-record generation
Change-Id: I32a9513f2b66d35e0abe2aeb6eb86a4729ba7f74
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'plugins/flowperpkt-plugin/flowperpkt/flowperpkt_test.c')
-rw-r--r-- | plugins/flowperpkt-plugin/flowperpkt/flowperpkt_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/flowperpkt-plugin/flowperpkt/flowperpkt_test.c b/plugins/flowperpkt-plugin/flowperpkt/flowperpkt_test.c index 3c1cd227f57..716818ffe0a 100644 --- a/plugins/flowperpkt-plugin/flowperpkt/flowperpkt_test.c +++ b/plugins/flowperpkt-plugin/flowperpkt/flowperpkt_test.c @@ -132,6 +132,7 @@ api_flowperpkt_tx_interface_add_del (vat_main_t * vam) unformat_input_t *i = vam->input; f64 timeout; int enable_disable = 1; + u8 which = 0; /* ipv4 by default */ u32 sw_if_index = ~0; vl_api_flowperpkt_tx_interface_add_del_t *mp; @@ -144,6 +145,8 @@ api_flowperpkt_tx_interface_add_del (vat_main_t * vam) ; else if (unformat (i, "disable")) enable_disable = 0; + else if (unformat (i, "l2")) + which = 1; else break; } @@ -158,7 +161,7 @@ api_flowperpkt_tx_interface_add_del (vat_main_t * vam) M (FLOWPERPKT_TX_INTERFACE_ADD_DEL, flowperpkt_tx_interface_add_del); mp->sw_if_index = ntohl (sw_if_index); mp->is_add = enable_disable; - mp->is_ipv6 = 0; /* $$$$ */ + mp->which = which; /* send it... */ S; |