summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Shaula <igor.shaula@intel.com>2018-03-30 14:25:08 +0200
committerIgor Shaula <igor.shaula@intel.com>2018-03-30 14:25:08 +0200
commitb38082760fc411a8fc9e74f9c2d3a44ad633db5c (patch)
treeced929f52ccef7480a9382814d454c3cc8c5a948
parent2ba92161c4492779d0b858db468619737896dd9f (diff)
Support additional MAC format in config file
Add support for space-divided bytes in MAC string. Support the same format as in "pkt inline". Change-Id: I7f2136c4424c45ce4abad4082470c9c9b1b3ab05 Signed-off-by: Igor Shaula <igor.shaula@intel.com>
-rw-r--r--VNFs/DPPD-PROX/parse_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/parse_utils.c b/VNFs/DPPD-PROX/parse_utils.c
index 52337ffb..32db5de6 100644
--- a/VNFs/DPPD-PROX/parse_utils.c
+++ b/VNFs/DPPD-PROX/parse_utils.c
@@ -430,6 +430,8 @@ int parse_mac(struct ether_addr *ether_addr, const char *str2)
return -1;
uint8_t ret = rte_strsplit(str, strlen(str), addr_parts, 7, ':');
+ if (ret != 6)
+ ret = rte_strsplit(str, strlen(str), addr_parts, 7, ' ');
if (ret != 6) {
set_errf("Invalid MAC address format");