| 441 | } |
| 442 | |
| 443 | static int |
| 444 | pfsync_alloc_scrub_memory(struct pfsync_state_peer *s, |
| 445 | struct pf_state_peer *d) |
| 446 | { |
| 447 | if (s->scrub.scrub_flag && d->scrub == NULL) { |
| 448 | d->scrub = uma_zalloc(V_pf_state_scrub_z, M_NOWAIT | M_ZERO); |
| 449 | if (d->scrub == NULL) |
| 450 | return (ENOMEM); |
| 451 | } |
| 452 | |
| 453 | return (0); |
| 454 | } |
| 455 | |
| 456 | static int |
| 457 | pfsync_state_import(struct pfsync_state *sp, u_int8_t flags) |
no test coverage detected