diff options
author | Ben Pfaff <blp@nicira.com> | 2011-08-17 10:55:15 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-09-13 11:46:08 -0700 |
commit | aad29cd1a1fb76aa68a9c404a47b66ac516149b5 (patch) | |
tree | 698546190e980993cff186029b5dd3ca66a8b09f /lib/util.h | |
parent | e7ed3a3a5f87d20f0cc632ae23adba6f30a4e19d (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 } |