| 196 | }; |
| 197 | |
| 198 | static unsigned |
| 199 | djb_hash(const unsigned char *h, const int len) |
| 200 | { |
| 201 | unsigned int result = 0; |
| 202 | int i; |
| 203 | |
| 204 | for (i = 0; i < len; i++) |
| 205 | result = 33 * result ^ h[i]; |
| 206 | |
| 207 | return (result); |
| 208 | } |
| 209 | |
| 210 | static uint32_t |
| 211 | hash_priv(const struct nhop_priv *priv) |