diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-21 13:50:21 -0200 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-07-15 10:59:07 -0500 |
commit | 1394c9ee2b38b79e2c1a4eab7c20f346e589bdf9 (patch) | |
tree | eb256f324860886714e6dff5d8481cfa876e75e1 | |
parent | d2dc8f3c3f032253ec5dda70b2bde314c446a63d (diff) | |
download | FreeBSD-src-1394c9ee2b38b79e2c1a4eab7c20f346e589bdf9.zip FreeBSD-src-1394c9ee2b38b79e2c1a4eab7c20f346e589bdf9.tar.gz |
Use , to separate MAC address pair items. IPFW is already designed to deal with it
(cherry picked from commit 0d3cbb5e2bf083c4bb6ffdcfb53cedd5e15e2171)
-rw-r--r-- | sbin/ipfw/tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/tables.c b/sbin/ipfw/tables.c index 3a12e81..0f4299f 100644 --- a/sbin/ipfw/tables.c +++ b/sbin/ipfw/tables.c @@ -1192,7 +1192,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; |