* See the License for the specific language governing permissions and
* limitations under the License.
*/
+/**
+ * @file
+ * @brief TAPCLI definitions
+ */
#ifndef __included_tapcli_h__
#define __included_tapcli_h__
-#define foreach_tapcli_error \
+/** TAP CLI errors */
+#define foreach_tapcli_error \
/* Must be first. */ \
_(NONE, "no error") \
_(READ, "read error") \
+ _(BUFFER_ALLOC, "buffer allocation error") \
_(UNKNOWN, "unknown error")
typedef enum {
TAPCLI_N_ERROR,
} tapcli_error_t;
+/** TAP CLI interface details struct */
typedef struct {
u32 sw_if_index;
u8 dev_name[64];
int vnet_tap_dump_ifs (tapcli_interface_details_t **out_tapids);
+#define TAP_MTU_MIN 68
+#define TAP_MTU_MAX 65535
+#define TAP_MTU_DEFAULT 1500
+
#endif /* __included_tapcli_h__ */