* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef RTE_LIBRTE_ACL
-
#include <rte_hexdump.h>
#include "test_table.h"
#include "test_table_acl.h"
(((c) & 0xff) << 8) | \
((d) & 0xff))
-static const char cb_port_delim[] = ":";
-
/*
* Rule and trace formats definitions.
**/
acl_params.n_rules = 1 << 5;
acl_params.n_rule_fields = DIM(ipv4_defs);
- rte_snprintf(acl_name, sizeof(acl_name), "ACL%d", i);
+ snprintf(acl_name, sizeof(acl_name), "ACL%d", i);
acl_params.name = acl_name;
memcpy(acl_params.field_format, ipv4_defs, sizeof(ipv4_defs));
parser = parse_cb_ipv4_rule;
for (n = 1; n <= 5; n++) {
- rte_snprintf(line, sizeof(line), "%s", lines[n-1]);
+ snprintf(line, sizeof(line), "%s", lines[n-1]);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
/* delete a few rules */
for (n = 2; n <= 3; n++) {
- rte_snprintf(line, sizeof(line), "%s", lines[n-1]);
+ snprintf(line, sizeof(line), "%s", lines[n-1]);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
/* Try to add duplicates */
for (n = 1; n <= 5; n++) {
- rte_snprintf(line, sizeof(line), "%s", lines[n-1]);
+ snprintf(line, sizeof(line), "%s", lines[n-1]);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
return 0;
}
-
-#endif