summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-10-08 18:15:21 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-10-17 18:47:38 +0400
commitcc6647f230a55f1f4fd765a2012561047d9ae6d1 (patch)
tree3031ae0a96698fa3cc183bcec5256686ddeceb79 /lib/prefix.h
parent484af2c2e0efe660e00e27647a19f1837a7fa437 (diff)
lib: make masklen2ip() safer and faster
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index 1cb91b2a..42334649 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -176,7 +176,7 @@ extern int prefix_ipv4_any (const struct prefix_ipv4 *);
extern void apply_classful_mask_ipv4 (struct prefix_ipv4 *);
extern u_char ip_masklen (struct in_addr);
-extern void masklen2ip (int, struct in_addr *);
+extern void masklen2ip (const int, struct in_addr *);
/* returns the network portion of the host address */
extern in_addr_t ipv4_network_addr (in_addr_t hostaddr, int masklen);
/* given the address of a host on a network and the network mask length,