mirror of
https://github.com/opnsense/src.git
synced 2026-06-23 07:30:15 -04:00
uma doesn't like setting a limit on a zone which previously had none.
At startup pf applies the default limit to all zones, so we can assume a limit
was always set. We cope with the uma limitation by translating a limit of '0'
(i.e. unlimited) to INT_MAX. This is high enough that we'll never realistically
hit this limit, but it keeps uma happy.
Add a test case to provoke this, and while we're here also fix syncookie
handling of a 0 state limit.
See also:
|
||
|---|---|---|
| .. | ||
| libpfctl.c | ||
| libpfctl.h | ||
| Makefile | ||
| Makefile.depend | ||