libgtp: Add back-reference to gsn from pdp context
[openggsn.git] / lib / lookup.h
blob2df6c50a50e28e60de654a63579af4ec0e6cbbf7
1 /*
2 * Hash lookup function.
3 * Copyright (C) 2003, 2004 Mondru AB.
4 *
5 * The contents of this file may be used under the terms of the GNU
6 * General Public License Version 2, provided that the above copyright
7 * notice and this permission notice is included in all copies or
8 * substantial portions of the software.
9 *
12 /**
13 * lookup()
14 * Generates a 32 bit hash.
15 * Based on public domain code by Bob Jenkins
16 * It should be one of the best hash functions around in terms of both
17 * statistical properties and speed. It is NOT recommended for cryptographic
18 * purposes.
19 **/
21 #ifndef _LOOKUP_H
22 #define _LOOKUP_H
23 unsigned long int lookup(unsigned char *k, unsigned long int length,
24 unsigned long int level);
26 #endif /* !_LOOKUP_H */