aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-08-17 10:55:15 -0700
committerBen Pfaff <blp@nicira.com>2011-09-13 11:46:08 -0700
commitaad29cd1a1fb76aa68a9c404a47b66ac516149b5 (patch)
tree698546190e980993cff186029b5dd3ca66a8b09f /lib/util.h
parente7ed3a3a5f87d20f0cc632ae23adba6f30a4e19d (diff)
packets: Add more utility functions for IPv4 and IPv6 addresses.
We had these functions scattered around the source tree anyway. packets.h is a good place to centralize them. I do plan to introduce some additional callers.
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.h b/lib/util.h
index 1649c59c..5c8618d3 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -194,7 +194,8 @@ char *base_name(const char *file_name);
char *abs_file_name(const char *dir, const char *file_name);
void ignore(bool x OVS_UNUSED);
-int log_2_floor(uint32_t n);
+int log_2_floor(uint32_t);
+int ctz(uint32_t);
#ifdef __cplusplus
}