diff options
author | 2016-07-04 21:04:40 +0200 | |
---|---|---|
committer | 2016-07-06 22:38:28 +0000 | |
commit | 3d9c86e9f70892c82c11530e0db7db78b7e6ce21 (patch) | |
tree | 72a715d0d0665392d3a70feb4c47219809bc9993 /vnet/vnet/interface.h | |
parent | 64f450da8f375e000f139fe1c8f7071dac37af29 (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/interface.h')
-rw-r--r-- | vnet/vnet/interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnet/vnet/interface.h b/vnet/vnet/interface.h index 30dcf276393..11bb2346185 100644 --- a/vnet/vnet/interface.h +++ b/vnet/vnet/interface.h @@ -354,6 +354,8 @@ typedef struct vnet_hw_interface_t { } vnet_hw_interface_t; +extern vnet_device_class_t vnet_local_interface_device_class; + typedef enum { /* A hw interface. */ VNET_SW_INTERFACE_TYPE_HARDWARE, |