/usr/include/libnl3/netlink
NameSizeModeActions
cli/-0755rm
fib_lookup/-0755rm
genl/-0755rm
idiag/-0755rm
netfilter/-0755rm
route/-0755rm
xfrm/-0755rm
addr.h22800644editdlrm
attr.h97390644editdlrm
cache-api.h5320644editdlrm
cache.h62230644editdlrm
data.h10480644editdlrm
errno.h14650644editdlrm
handlers.h37140644editdlrm
hash.h19800644editdlrm
hashtable.h13520644editdlrm
list.h25340644editdlrm
msg.h44770644editdlrm
netlink-compat.h10320644editdlrm
netlink-kernel.h53550644editdlrm
netlink.h31750644editdlrm
object-api.h4790644editdlrm
object.h25630644editdlrm
socket.h26470644editdlrm
types.h21920644editdlrm
utils.h117090644editdlrm
version.h9420644editdlrm
Edit: /usr/include/libnl3/netlink/hash.h (1980B)
/* * This file was taken from http://ccodearchive.net/info/hash.html * Changes to the original file include cleanups and removal of unwanted code * and also code that depended on build_asert */ #ifndef CCAN_HASH_H #define CCAN_HASH_H #include #include #include /* Stolen mostly from: lookup3.c, by Bob Jenkins, May 2006, Public Domain. * * http://burtleburtle.net/bob/c/lookup3.c */ #ifdef __LITTLE_ENDIAN # define HAVE_LITTLE_ENDIAN 1 #elif __BIG_ENDIAN # define HAVE_BIG_ENDIAN 1 #else #error Unknown endianness. Failure in endian.h #endif /** * hash - fast hash of an array for internal use * @p: the array or pointer to first element * @num: the number of elements to hash * @base: the base number to roll into the hash (usually 0) * * The memory region pointed to by p is combined with the base to form * a 32-bit hash. * * This hash will have different results on different machines, so is * only useful for internal hashes (ie. not hashes sent across the * network or saved to disk). * * It may also change with future versions: it could even detect at runtime * what the fastest hash to use is. * * See also: hash64, hash_stable. * * Example: * #include * #include * #include * #include * * // Simple demonstration: idential strings will have the same hash, but * // two different strings will probably not. * int main(int argc, char *argv[]) * { * uint32_t hash1, hash2; * * if (argc != 3) * err(1, "Usage: %s ", argv[0]); * * hash1 = __nl_hash(argv[1], strlen(argv[1]), 0); * hash2 = __nl_hash(argv[2], strlen(argv[2]), 0); * printf("Hash is %s\n", hash1 == hash2 ? "same" : "different"); * return 0; * } */ #define __nl_hash(p, num, base) nl_hash_any((p), (num)*sizeof(*(p)), (base)) /* Our underlying operations. */ uint32_t nl_hash_any(const void *key, size_t length, uint32_t base); #endif /* HASH_H */