Age | Commit message (Collapse) | Author |
|
This fixes it.
Found out by Laurent Lavaud & myself.
"looks olrite" henning@
|
|
relay protocol with that done for specified relay protocols.
Makes it possible to use SSL for the default relay protocol.
From boudewijn@indes.com in pr 6316
|
|
in these cases, is useless anyway.
Found by and fixing the build with mandoc;
still fine with both old and new groff.
ok jmc@
|
|
connection and while here create a seperate function for handling cleaning
up after a request; with suggestions from reyk and claudio.
ok claudio@
|
|
something here as well.
ok claudio@ phessler@
|
|
As the child processes now call event_loopexit() and signal handling
is done through libevent if a child process died we wouldn't always
cleanup properly and wouldn't do carp demote to failover either.
This matches the way ospfd does things which is where the event_loopexit()
in child processes change came from originally.
ok claudio@ pyr@
|
|
don't get into a situation where we are calling event_set() on an event
that was already added.
ok claudio@
|
|
confusing pf.
|
|
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
|
|
like several other things in the tree.
ok reyk@ looks fine claudio@
|
|
`OK' claudio
|
|
of the hardcoded 0. OK henning@
|
|
ok jmc
|
|
found by parfait.
|
|
elements first (this matches all the other structures). no functional
change.
|
|
few remaining ".Tn UNIX" macros with ".Ux" ones.
pointed out by ratchov@, thanks!
ok jmc@
|
|
ok jmc@
|
|
in an error path.
|
|
loop in the shutdown case. OK henning@
Fix an error message to include the correct function name.
|
|
function, which is additionally exported for use by others.
It will be needed by smtpd's SSL module when the SMTP client code
is changed to replace libevent's evbuffers with our msgbuf_* API.
ok gilles@ henning@ guenther@ eric@
|
|
ok henning@
|
|
|
|
em0". the implementation will lookup the first IPv4 address of an
interface before any other IPv4 and IPv6 addresses.
ok gilles@ (i got inspired by smtpd)
|
|
ok pyr@, jmc@ for man bits
|
|
Thanks to Sebastian Benoit, closes pr6146
|
|
based on health check results, using the existing table syntax. this
allows to maintain multiple (uplink) gateways to implement link
balancing or WAN link failover if no routing protocol or other
keepalive method is available. works fine with or without
net.inet.ip.multipath enabled.
ok pyr@, jmc@ for manpages
|
|
freeing the msgbuf.
While here also remove an unnecessary while loop.
ok eric pyr
|
|
|
|
another 'struct session' in sys/sysctl.h.
|
|
check if the host is only n hops away and not re-routed over a longer
path.
|
|
|
|
making the grammar a bit more flexible.
|
|
|
|
|
|
|
|
|
|
bytes that were filled, not the whole buffer.
ok pyr@ gilles@
|
|
|
|
Make the imsg protocol network-safe.
it might be network safe, but half the imsg based daemons on my firewalls
dont run anymore.
|
|
Currently the receiver fetches an imsg via imsg_get() and if he expects
an fd, he then calls imsg_get_fd() to fetch the next fd queued on the
imsgbuf from which the imsg came.
This changes hides the fd queueing mechanism to the API user. When closing
an imsg with an fd, the message is flagged so that the receiving end knows
it must dequeue the fd in imsg_get() and return it with the imsg structure.
This way there is no (less) possible screw up from imsg_get_fd() not being
called directly after imsg_get() by the user. The retreived imsg is
self-contained.
ok pyr@, "I like that" henning@
|
|
ok pyr@
|
|
add a flag field, use u_int32_t for pid_t and extend type to 32 bits
for padding.
ok pyr@
|
|
|
|
ok pyr@
|
|
ok eric@, claudio@
|
|
ok pyr@
|
|
Stop pushing event handling in the imsg framework.
Instead, provide a small glue layer on top of both imsg and libevent.
This finally clearly separates event handling and imsg construction.
Sidetrack bonus: remove the mega-ugly hack of having a dummy imsg_event_add
stub in relayctl.
This will make bgpd (and thus henning) happy. Next up are smtpd and ospfd.
ok eric@
|
|
|
|
ready daemons have NULL diffs now for the imsg files. This field should
eventually die a honorable death as it was a design screwup.
|
|
|