summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2012-09-25make const arguments const, and static functions static.Eric Faurot
ok chl@
2012-09-25need inttypes.hEric Faurot
from millert@
2012-09-24spaces -> tabsEric Faurot
2012-09-23Enable graceful restart by default. The only way to find out if it works forClaudio Jeker
real. After discussion with sthen@, henning@ and deraadt@. It can be disabled per neighbor with "announce restart no".
2012-09-22gcc2 doesn't like unnamed fields. make this compile on vax again.Marc Espie
"looks right" deraadt@
2012-09-22various fixes; ok yasuokaJason McIntyre
2012-09-21Do not pass the username to forwards_get() which does not have to care aboutEric Faurot
this. Instead, set the username on the expand context, and copy it on the expand nodes as they are inserted. ok gilles@
2012-09-21wrap expandtree into a "struct expand".Eric Faurot
ok gilles@
2012-09-21move struct lka_session definition in lka_session.cEric Faurot
ok gilles@
2012-09-21Add a log_envelope() function that log envelope status in a uniform way.Eric Faurot
It automagically adds an rcpt=<user@domain> field if "dest" differs from the original "rcpt". The function takes an "extra" parameter that allows to add some specific info depending on the context. ok gilles@
2012-09-21Move ruleset_match() prototype to smtpd.h and make the envelope const.Eric Faurot
Adapt a lot of functions in chain to use const args where required. ok gilles@
2012-09-21file descriptor accounting for relays: track how many connections toSebastian Benoit
backend servers are unopened and reserve fds for them. ok reyk@, "don't wait" deraadt@
2012-09-21various tweaks;Jason McIntyre
2012-09-20various fixes; ok yasuokaJason McIntyre
2012-09-20add more sensor types to sensor framework.Yojiro Uo
- Pressure (10^-3 Pa) - distance (10^-6 m) - acceleration (10^-6 m/s^2) ok deraadt@ reyk@
2012-09-20The current code in ospf6d kroute tries to read the scope of theAlexander Bluhm
route from the gateway's scope id. That does not work as the kernel provides the scope id via the kame hack instead of the sin6_scope_id field of the sockaddr_in6. Call recoverscope() to fix that. OK claudio@
2012-09-20constify parameters that are supposed to be const.Eric Faurot
ok gilles@
2012-09-20Enable npppd and npppctl in default build. Add npppd to rc andYASUOKA Masahiko
install sample configs to /etc/. ok claudio deraadt henning mcbride
2012-09-20Allow ntpd.conf to assign a stratum to a sensor with the syntax stratum <level>.Patrick Wildt
OK markus@ henning@ phessler@ jmc@
2012-09-20Move the HTTP code into an extra file to make future changes easier toReyk Floeter
follow. No functional changes, only one function got renamed. ok benno@
2012-09-20Be consistent with what the installer and useradd(8) do and put newlyAntoine Jacoutot
created users into their own primary group. This does not change existing installations that already have a usermgmt.conf(5). ok todd@ beck@
2012-09-20envelope type is necessarily D_MDA here.Eric Faurot
ok chl@
2012-09-20Bring back log_in6addr_scope() as ospf6ctl uses it.Alexander Bluhm
Found by kettenis@ the hard way.
2012-09-19use lower case for envelope fields.Eric Faurot
requested by gilles@
2012-09-19Set envelope expirancy in lka before sending the envelope to mfa.Eric Faurot
The goal is to eventually have only the lka see the rules. ok gilles@ chl@
2012-09-19tweak man pages.YASUOKA Masahiko
- new sentence, new line - on npppd.8 BUGS section, clarified that what is dropped is L2TP/IPsec packets these must be included the previous commit.
2012-09-19Instead of fiddling about the kame hack here and there, implementAlexander Bluhm
the functions embedscope(), recoverscope(), clearscope(). ok claudio@
2012-09-19Do not care about the kame hack when logging a link local address.Alexander Bluhm
The scope should have been converted when we received it from kernel. Remove log_in6addr_scope(), it is not used. ok claudio@
2012-09-19tweak man pages.YASUOKA Masahiko
- add missing copyright - delete comment lines from the template - new sentence, new line - on npppd.8 BUGS section, clarified that what is dropped is L2TP/IPsec packets
2012-09-19Remove DF_ENQUEUE flag. It is mostly unused and logically broken.Eric Faurot
Ignore it in existing envelopes until it gets completely dropped. Change "smtpctl show queue" to display the address family of the envelope source instead of the ENQUEUE flag. ok gilles@
2012-09-19cleanup around the pipex. naming style, delete or update comments.YASUOKA Masahiko
no functional changes.
2012-09-19clarify which process writes out stats upong SIGINFO reception.Henning Brauer
pointed out by Frank Brodbeck <fab at guug.de>, actual change with & ok jmc
2012-09-19replay counter was bumped a while ago, update byte order conversion;Mike Belopuhov
while here, improve the way information is printed out a bit. with input and ok camield, mpf
2012-09-19expandnodes must be bzero()'d before parsing to be sure there is no bogusEric Faurot
data left on return, since the RB compare functions uses memcmp(). While there, remove all calls to bzero() before alias_parse(). ok gilles@
2012-09-19rename variables for consistencyEric Faurot
ok gilles@
2012-09-19remove IS_RELAY and IS_MAILBOX macros.Eric Faurot
ok gilles@
2012-09-19Remove aliases_exists() and aliases_virtual_exists(). The correspondingEric Faurot
*_get() functions can be called directly. ok gilles@
2012-09-19Copy the host id value to the ICMP echo payload in network byte order andReyk Floeter
in a nicer way that silences the compiler. ok benno@
2012-09-19Fix ICMP checks by setting the socklen correctly before calling recvfrom().Reyk Floeter
ok benno@
2012-09-19start cleaning the expansion code:Eric Faurot
- change expandtree_* prefix to expand_ for better readability and because the structure might change at some point - rename <>_free_nodes() to <>_free() - remove unused <>_remove_node() - refcounting has no purpose at all; just remove it as well as the decrement/increment functions, and replace the latter with <>_insert - expandnode flags is only used to know if it's been processed or not, don't make it a flag but a simple field with clear name. ok gilles@ chl@
2012-09-19remove files that became unused by new configuration syntax.YASUOKA Masahiko
2012-09-18The if (!better && !equal) check is redundant as the same conditionAlexander Bluhm
is checked a few lines below again. Fewer checks make the code more readable. ok stsp@
2012-09-18make use of expandtree_free_nodes() in lka_session_destroy().Eric Faurot
change to a simpler implementation for it while there. ok gilles@
2012-09-18- add xmemdup() helper.Eric Faurot
- remove useless block in switch. ok gilles@
2012-09-18simple lka cleanups:Eric Faurot
- fix lka* function prototypes in smtpd.h - make static functions static - merge lka_session_init() into lka_session() - make lka_session.c use tree.c to store sessions ok gilles@
2012-09-18fix mandoc -Tlint warnings.YASUOKA Masahiko
2012-09-18New configuration syntax for npppd(8). `npppd.conf' will be based onYASUOKA Masahiko
parse.y and `npppd-users' will be based on getcap(3). Add man pages. feedback from giovanni
2012-09-18this structure is not useful and ill-named. remove it.Eric Faurot
ok gilles@
2012-09-18a few cleanups:Eric Faurot
- make static functions static - pass const char * rather than char * when we mean that - make parse_alias() more straightforward ok gilles@
2012-09-18remove C_NET. it's not used and there is no plan for it at the moment.Eric Faurot
ok gilles@