From: Damjan Marion Date: Thu, 31 Mar 2016 15:44:25 +0000 (+0200) Subject: Enable af_packet interfaces in the API test apps X-Git-Tag: v16.06-rc1~198 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=b02e49c4be32c5092f6948d40f84a9e2aeae66e6;p=vpp.git Enable af_packet interfaces in the API test apps Change-Id: Ic1247a712614df2762c95142122ff122076fd0ab Signed-off-by: Damjan Marion --- diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c index 180e76e1b11..959d33b801f 100644 --- a/vpp-api-test/vat/api_format.c +++ b/vpp-api-test/vat/api_format.c @@ -2619,6 +2619,12 @@ int api_sw_interface_dump (vat_main_t * vam) strncpy ((char *) mp->name_filter, "vxlan", sizeof(mp->name_filter-1)); S; + /* and host (af_packet) interfaces */ + M(SW_INTERFACE_DUMP, sw_interface_dump); + mp->name_filter_valid = 1; + strncpy ((char *) mp->name_filter, "host", sizeof(mp->name_filter-1)); + S; + /* and l2tpv3 tunnel interfaces */ M(SW_INTERFACE_DUMP, sw_interface_dump); mp->name_filter_valid = 1; diff --git a/vpp-japi/japi/vppjni.c b/vpp-japi/japi/vppjni.c index 54846bcbd2d..9c9437d2f46 100644 --- a/vpp-japi/japi/vppjni.c +++ b/vpp-japi/japi/vppjni.c @@ -149,6 +149,12 @@ static int sw_interface_dump (vppjni_main_t * jm) strncpy ((char *) mp->name_filter, "tap", sizeof(mp->name_filter-1)); S; + /* and host (af_packet) interfaces */ + M(SW_INTERFACE_DUMP, sw_interface_dump); + mp->name_filter_valid = 1; + strncpy ((char *) mp->name_filter, "host", sizeof(mp->name_filter-1)); + S; + /* and l2tpv3 tunnel interfaces */ M(SW_INTERFACE_DUMP, sw_interface_dump); mp->name_filter_valid = 1;