summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2010-03-15 18:26:09 +0000
committerluigi <luigi@FreeBSD.org>2010-03-15 18:26:09 +0000
commitea650b19a1b555351d63945602a004c24632448e (patch)
treea1b257d2658bb1f367864b61a302b8d10727b098 /sbin
parentb958ac2aee0c02d048840ba1a096b9d1a8e4a2d2 (diff)
downloadFreeBSD-src-ea650b19a1b555351d63945602a004c24632448e.zip
FreeBSD-src-ea650b19a1b555351d63945602a004c24632448e.tar.gz
accept lower case m as a synonym for Mega (bit/s or bytes/s).
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipfw/dummynet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/dummynet.c b/sbin/ipfw/dummynet.c
index 598aa68..eb6547a 100644
--- a/sbin/ipfw/dummynet.c
+++ b/sbin/ipfw/dummynet.c
@@ -535,7 +535,7 @@ read_bandwidth(char *arg, int *bandwidth, char *if_name, int namelen)
if (*end == 'K' || *end == 'k') {
end++;
bw *= 1000;
- } else if (*end == 'M') {
+ } else if (*end == 'M' || *end == 'm') {
end++;
bw *= 1000000;
}
OpenPOWER on IntegriCloud