| 253 | } |
| 254 | |
| 255 | static struct ipsec_iflist * |
| 256 | ipsec_hashinit(void) |
| 257 | { |
| 258 | struct ipsec_iflist *hash; |
| 259 | int i; |
| 260 | |
| 261 | hash = malloc(sizeof(struct ipsec_iflist) * IPSEC_HASH_SIZE, |
| 262 | M_IPSEC, M_WAITOK); |
| 263 | for (i = 0; i < IPSEC_HASH_SIZE; i++) |
| 264 | CK_LIST_INIT(&hash[i]); |
| 265 | |
| 266 | return (hash); |
| 267 | } |
| 268 | |
| 269 | static void |
| 270 | vnet_ipsec_init(const void *unused __unused) |
no test coverage detected