]> git.proxmox.com Git - mirror_iproute2.git/commit
Move the use_iec declaration to the tools
authorPetr Machata <me@pmachata.org>
Sat, 5 Dec 2020 21:13:29 +0000 (22:13 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 9 Dec 2020 02:28:43 +0000 (02:28 +0000)
commitcdd94253154a4797cb9349dff02556b1c56069f5
tree4ae1cc64c232efc2e00d6eab7267b9b4a589fd85
parent69629b4e43c42f01e73e8dcce9aba47ff6a99036
Move the use_iec declaration to the tools

The tools "ip" and "tc" use a flag "use_iec", which indicates whether, when
formatting rate values, the prefixes "K", "M", etc. should refer to powers
of 1024, or powers of 1000. The flag is currently kept as a global variable
in "ip" and "tc", but is nonetheless declared in util.h.

Instead, move the declaration to tool-specific headers ip/ip_common.h and
tc/tc_common.h.

Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
include/utils.h
ip/ip_common.h
tc/tc_common.h