summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/tables.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-10-21 13:50:21 -0200
committerRenato Botelho <renato@netgate.com>2016-10-21 13:50:21 -0200
commit0d3cbb5e2bf083c4bb6ffdcfb53cedd5e15e2171 (patch)
tree200cbce7ccb27e071f19cb805705042b9b406d8c /sbin/ipfw/tables.c
parent91c3b9f753e70bac8d9d26212a78102673b0da60 (diff)
downloadFreeBSD-src-0d3cbb5e2bf083c4bb6ffdcfb53cedd5e15e2171.zip
FreeBSD-src-0d3cbb5e2bf083c4bb6ffdcfb53cedd5e15e2171.tar.gz
Use , to separate MAC address pair items. IPFW is already designed to deal with it
Diffstat (limited to 'sbin/ipfw/tables.c')
-rw-r--r--sbin/ipfw/tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/tables.c b/sbin/ipfw/tables.c
index e98fc15..39e4dbc 100644
--- a/sbin/ipfw/tables.c
+++ b/sbin/ipfw/tables.c
@@ -1168,7 +1168,7 @@ tentry_fill_key_type(char *arg, ipfw_obj_tentry *tentry, uint8_t type,
struct mac_entry *mac;
dst = arg;
- if ((p = strchr(arg, ' ')) == NULL)
+ if ((p = strchr(arg, ',')) == NULL)
errx(EX_DATAERR, "bad mac address pair: %s", arg);
*p = '\0';
src = p + 1;
OpenPOWER on IntegriCloud