summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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@
2012-09-18update email addresses to match reality.Reyk Floeter
sure jsg@ mikeb@
2012-09-18update the standards and RFCsReyk Floeter
2012-09-18prio 0 is valid, therefore, I chose an "impossible" value for prio meaningHenning Brauer
"not set" and used a PF_PRIO_NOTSET define for it. now that means that everything that creates a struct pf_rule doesn't get away with bzero'ing it, which turned out to be not so nice. so get rid of PF_PRIO_NOTSET, instead, make a rule+state flag PFSTATE_SETPRIO which indicates wether the prio should be set. ok benno claudio mikeb
2012-09-18Print the wieght in the show rib detail output. OK sthen@, henning@Claudio Jeker
2012-09-18Expose the local weight in the ctl_show_rib struct so bgpctl can print it.Claudio Jeker
OK sthen@ henning@
2012-09-18Add SNMPv3 in the EXAMPLES section.Reyk Floeter
2012-09-18Only allow one reload request at a time in bgpd. Needed for further work.Claudio Jeker
OK sthen@, benno@, henning@
2012-09-18sync mask2prefixlen6() with the nicer version from bgpd/kroute.c:Reyk Floeter
"Instead of doing a poor mans offsetof() implementation change the code to use an end pointer to compare against. Looks less scary and makes gcc4 happy. OK henning@" (bgpd/kroute.c commit 1.182)
2012-09-18knfReyk Floeter
2012-09-18Add 2 new knobs to usermod(8):Antoine Jacoutot
-U to unlock an account -Z to lock an account Locking means adding a '*' prefix to the encrypted password and appending a '-' to the user's shell... and obviously the opposite for unlocking. some inputs from sthen@, otto@ and deraadt@ ok todd@
2012-09-17tweak previous;Jason McIntyre
2012-09-17Add map_create() and map_add() helpers. Simplify the config parser by aEric Faurot
great deal. While there, rename the default "localhost" map to "<localhost>" to make it look more internal, and create a single "<anyhost>" map referenced by "from all" rules, instead of creating a dynamic one for each of them. ok gilles@ chl@
2012-09-17Fix relay statistics. Found and fix by Erik Lax (erik -at- halon -dot- se)Sebastian Benoit
ok reyk
2012-09-17let the debug message look like the configuration syntaxReyk Floeter
2012-09-17Fix format expansion in smtpd.conf, it has confused a lot of people and itGilles Chehade
turns out documentation got it wrong. This commit changes formats and doc, it makes situation saner: %A = user part of sender address %D = domain part of sender address %a = user part of recipient address %d = domain part of recipient address %u = unix account of recipient ok eric@
2012-09-17increment the session counter when a session is created.Eric Faurot
fix a bug where local sessions were not accounted for. ok gilles@
2012-09-17simplify the detection of release/stable vs. snapshot kernel byRobert Peichaer
using the same logic from install.sub ok halex@
2012-09-17Unbreak. gcc 2 at least complains if a declaration is ended by two semicolons.Miod Vallat
2012-09-17tedu lint tendrils through config internals.Marc Espie
also mark some known targets as .PHONY okay miod@
2012-09-17silence gccReyk Floeter
2012-09-17Update copyright and my email address in snmpd while I'm here.Reyk Floeter
2012-09-17Add initial SNMPv3 support to snmpd(8).Reyk Floeter
Traps are still sent via SNMPv2 protocol. They can neither be authenticated nor encrypted. - Transport mode is still UDP. Not additional transport subsystems were added. - Only the User-based Security Model (USM, RFC3414) is supported. View-Based Access Control (VACM, RFC3415) is not included. - Configuration is described in snmpd.conf(5). This diff includes a few minor changes to ber.c/h adding a necessary callback for the USM HMAC calculation and merging it with other minor changes from ldapd's ber code. From Gerhard Roth at genua ok claudio@ reyk@
2012-09-17Fix trailing whitespaces.Alexander Bluhm
2012-09-17fix pastoEric Faurot
prompted by gilles@
2012-09-17revert previous and unlink aliases.5 and forward.5 from the build: theseJason McIntyre
files are too smtpd-specific for the general build; ok gilles
2012-09-17various tweaks; ok gillesJason McIntyre