ip: rename ip_is_network to ip_net_is_valid

Message ID 1496396813-7949-1-git-send-email-jonatan.schlag@ipfire.org
State New
Headers show

Message

Jonatan Schlag June 2, 2017, 9:46 a.m.
We rename this function to state clear what the function is actually doing.
The function checks if a network is valid and not if something is a network or not.

Fixes: 11357

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 Makefile.am                       |  2 +-
 src/functions/functions.ip        |  2 +-
 src/functions/functions.route     |  8 ++++----
 test/functions/ip/ip_is_network   | 27 ---------------------------
 test/functions/ip/ip_net_is_valid | 27 +++++++++++++++++++++++++++
 5 files changed, 33 insertions(+), 33 deletions(-)
 delete mode 100755 test/functions/ip/ip_is_network
 create mode 100755 test/functions/ip/ip_net_is_valid