diff options
author | Matus Fabian <matfabia@cisco.com> | 2016-05-06 15:14:13 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-05-10 11:10:37 +0000 |
commit | 8a95a482cfaf05e89a9383f0446584c414cd71bf (patch) | |
tree | d7d65abe93fb9ec2d52b216d452b3bbb3ecec6ab /vpp/api/vpe.api | |
parent | 686a5a5b2b22bd7fa31fae134739530a5683b228 (diff) |
Add af_packet API
Change-Id: I39409ae9e75fdb59d8cbbd940fa192b24eb79b6a
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'vpp/api/vpe.api')
-rw-r--r-- | vpp/api/vpe.api | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vpp/api/vpe.api b/vpp/api/vpe.api index 10c62bb3..c92715f4 100644 --- a/vpp/api/vpe.api +++ b/vpp/api/vpe.api @@ -3355,3 +3355,49 @@ define trace_profile_del_reply { u32 context; i32 retval; }; + +/** \brief Create host-interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param host_if_name - interface name + @param hw_addr - interface MAC + @param use_random_hw_addr - use random generated MAC +*/ +define af_packet_create { + u32 client_index; + u32 context; + + u8 host_if_name[64]; + u8 hw_addr[6]; + u8 use_random_hw_addr; +}; + +/** \brief Create host-interface response + @param context - sender context, to match reply w/ request + @param retval - return value for request +*/ +define af_packet_create_reply { + u32 context; + i32 retval; +}; + +/** \brief Delete host-interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param host_if_name - interface name +*/ +define af_packet_delete { + u32 client_index; + u32 context; + + u8 host_if_name[64]; +}; + +/** \brief Delete host-interface response + @param context - sender context, to match reply w/ request + @param retval - return value for request +*/ +define af_packet_delete_reply { + u32 context; + i32 retval; +}; |