aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/misc.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-07-04 21:04:40 +0200
committerDave Barach <openvpp@barachs.net>2016-07-06 22:38:28 +0000
commit3d9c86e9f70892c82c11530e0db7db78b7e6ce21 (patch)
tree72a715d0d0665392d3a70feb4c47219809bc9993 /vnet/vnet/misc.c
parent64f450da8f375e000f139fe1c8f7071dac37af29 (diff)
Add support for capturing packets on packet generator interfaces
This patch introduces following changes: - 4 predefined pg/stream[0-3] interfaces are removed - Interface naming is changed form pg/streamX to pgX where X can be any u32 value - one pgX interface can handle multiple streams - keyword "source pgX" is added to "packet-generator add" command, X is 0 by default - new cli "packet-generator capture" is introduced - new cli "create packet-generator interface pgX" Change-Id: I768d075b9d4a34f0b5073debdc5dd4a0880c682c Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/misc.c')
-rw-r--r--vnet/vnet/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/misc.c b/vnet/vnet/misc.c
index 9dbed8d8609..89bc15c13ca 100644
--- a/vnet/vnet/misc.c
+++ b/vnet/vnet/misc.c
@@ -56,7 +56,7 @@ vnet_local_interface_tx (vlib_main_t * vm,
return f->n_vectors;
}
-VNET_DEVICE_CLASS (vnet_local_interface_device_class,static) = {
+VNET_DEVICE_CLASS (vnet_local_interface_device_class) = {
.name = "local",
.tx_function = vnet_local_interface_tx,
};