diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-10-08 18:15:21 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-13 19:30:17 +0400 |
commit | 9663386f16e6285a322747514527fdf1d19788e4 (patch) | |
tree | 3853168faeff0a571727f4bf2bae44cbbe5479f8 /lib/prefix.h | |
parent | 5031ed1347191ee3e0767cfa44e7047c36d37bd1 (diff) |
lib: make masklen2ip() safer and faster
Diffstat (limited to 'lib/prefix.h')
-rw-r--r-- | lib/prefix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index 54f47c71..675f94d4 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -178,7 +178,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, |