| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
to the initial value and do not use the counter;
reported by Sebastian Benoit and Daniel Krambrock,
tested by Sebastian Benoit, ok henning zinke
|
| |
|
|
|
| |
Diff from zinke@ with a some minor cleanup.
ok henning claudio deraadt
|
| |
|
|
|
| |
an address pool. problem found and solution tested by claudio.
ok claudio, henning, "reads fine" to zinke
|
| |
|
|
| |
ok mcbride@ henning@
|
| | |
|
| |
|
|
|
|
| |
so that rules like "pass out on vr1 inet6 nat-to (vr1)" won't map
to the non routable ipv6 link local address; with suggestions and
ok claudio, henning
|
| |
|
|
| |
ok deraadt henning
|
| |
|
|
| |
ok henning
|
| |
|
|
| |
ok dlg
|
| |
|
|
|
|
|
| |
Bogus chunks pointed out by matthew@ and miod@. No cookies for
marco@ and jasper@.
ok deraadt@ miod@ matthew@ jasper@ macro@
|
| |
|
|
|
|
|
| |
rt_if_remove_rtdelete() need to know the table id to be able to correctly
remove nodes.
Problem found by Andrea Parazzini and analyzed by Martin Pelikán.
OK henning@
|
| |
|
|
| |
tracked down by Dan Harnett <daniel at harnett.name>
|
| |
|
|
|
|
|
| |
definition of DPFPRINTF(), and log priorities from syslog.h. Old debug
levels will still work for now, but will eventually be phased out.
discussed with henning, ok dlg
|
| |
|
|
|
|
|
|
|
|
|
| |
actions. Allow interfaces to be specified in special table entries for
the routing actions. Lists of addresses can now only be done using tables,
which pfctl will generate automatically from the existing syntax.
Functionally, this deprecates the use of multiple tables or dynamic
interfaces in a single nat or rdr rule.
ok henning dlg claudio
|
| |
|
|
|
|
|
|
|
|
| |
whether we're called from the interrupt context to the functions
performing allocations.
Looked at by mpf@ and henning@, tested by mpf@ and Antti Harri,
the pr originator.
ok tedu
|
| |
|
|
|
|
|
| |
using the default interrupt handler for both, so there's no need to keep
table entries created in interrupt context separate.
ok henning art
|
| |
|
|
|
|
|
| |
the allocations in uvm_km_thread, as long as they are PR_WAITOK and
all the memory hogs should be WAITOK in pf now.
"following your explaination, it's ok" henning@
|
| |
|
|
| |
PR_WAITOK | PR_LIMITFAIL. from discussion with art. ok ryan claudio thib
|
| |
|
|
| |
ok mpf henning
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Use the 'counters' table option in pf.conf if you actually need them.
If enabled, memory is not allocated until packets match an address.
This saves about 40% memory if counters are not being used, and paves the way
for some more significant cleanups coming soon.
ok henning mpf deraadt
|
| |
|
|
|
|
|
|
|
| |
and the one route with the lowest number wins. This will be used by the
routing daemons to resolve the synchronisations issue in case of conflicts.
The nasty bits of this are in the multipath code. If no priority is specified
the kernel will choose an appropriate priority.
Looked at by a few people at n2k8 code is much older
|
| |
|
|
|
|
| |
rdr rules. this helps to get some statistics about l3 redirections.
ok henning@
|
| |
|
|
|
|
| |
MGET* macros were changed to function calls, there wasn't any
need for the pool declarations and the inclusion of pool.h
From: tbert <bret.lambert@gmail.com>
|
| |
|
|
| |
fixes pppoe f_addrhooks panics (e.g. pr 5454); ok canacar
|
| | |
|
| |
|
|
|
|
|
|
| |
only bar under foo, not /bar as well.
secondly, when using "load anchor from" from a sub-anchor, the loading
point should be relative to the sub-anchor doing the load (unless absolute
paths are used, of course).
from Boris Polevoy. probably a -stable candidate.
|
| |
|
|
|
|
|
| |
"validating" it, pass the bits to be ignored down to the validating
function in its allowedflags argument. Saves a 1kB+ stack allocation.
ok henning@
|
| |
|
|
|
| |
allocator on one pool). Should fix PR 4231 and 4240, but reintroduces 4186.
ok deraadt@
|
| | |
|
| |
|
|
|
|
|
| |
allocator and two pools, but PR_WAITOK when called from non-interrupt
context (ioctl). add configurable hard limits for tables and table
entries (set limit tables/table-entries), defaulting to 1000/100000.
ok aaron@, henning@, mcbride@, art@
|
| |
|
|
|
| |
with this, when you know their name you can list their contents with pfctl
ok ryan
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
the 3-way handshake. Allow limits on both total connections and connection
rate, put offenders in a table which can be used in the ruleset, and optionally
kill existing states. Rate tracking code from dhartmei@.
Adds a second pool for table entries using the default allocator, which
allows entries to be added at splsoftnet().
ok deraadt@ dhartmei@
|
| |
|
|
|
|
|
|
|
| |
now they abide to the same rules as anchor names referred to by rules:
- initial slashes (/) are stripped
- anchor names with characters after the terminating NUL byte are
considered invalid
ok dhartmei (and previously) beck henning
|
| |
|
|
|
|
| |
on v6 addresses.
Reported by Ilya A. Kovalenko, fix from Cedric Berger.
|
| |
|
|
|
|
| |
ktable being destroyed, which makes it unsafe in a SLIST_FOREACH.
Fix from Chris Pascoe
|
| |
|
|
|
|
|
|
| |
things such that code that only need a second-resolution uptime or wall
time, and used to get that from time.tv_secs or mono_time.tv_secs now get
this from separate time_t globals time_second and time_uptime.
ok art@ niklas@ nordin@
|
| |
|
|
|
|
| |
table is destroyed in pfr_setflags_ktable.
Fix from Chris Pascoe
|
| | |
|
| |
|
|
| |
pool allocator, _nointr. testing/ok beck@ cedric@
|
| |
|
|
|
|
|
| |
levels deep). More work required, but this is already
functional. authpf users will need to adjust their anchor
calls, but this will change again soon. ok beck@, cedric@,
henning@, mcbride@
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Also comment #endif properly while being here
ok mcbride@
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
user visible changes:
- you can add multiple routes with same key (route add A B then route add A C)
- you have to specify gateway address if there are multiple entries on the table
(route delete A B, instead of route delete A)
kernel change:
- radix_node_head has an extra entry
- rnh_deladdr takes extra argument
TODO:
- actually take advantage of multipath (rtalloc -> rtalloc_mpath)
|
| |
|
|
| |
larger kernel map
|
| | |
|
| | |
|
| | |
|