summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2015-06-27Do not send routers (option 3) or static routes (option 33) whenKenneth R Westerback
classless static routes (option 121, 249) are sent. RFC 3442 says servers SHOULD NOT send those options. This avoids confusing clients who fail to ignore the routers or static routes options in the presence of classless static routes options. RFC 3442 says clients MUST ignore those options. Incorrect behavior in MS and Linux clients reported by Juan on misc@. ok millert@
2015-06-27Corrects the manpage for patterns(7): the indexing for empty capture followsemarie
C-style (starting from 0) and not the Lua-style (starting from 1). Patch from Theo Buehler. OK reyk@
2015-06-26move #include inside #ifndef PATTERNS_Hsemarie
OK reyk@
2015-06-26Corrects some minors nits. Patch from Theo Buehler.semarie
- cleanup in included headers (removing unsed assert.h, and reorder) - one remaining '%%' in an error string corrected in '%' while here, add sys/types.h for off_t type. OK reyk@
2015-06-25use machine_architecture (arch -s) when assembling PKG_PATHs using %m or %a,Stuart Henderson
fixes these variables with arch like powerpc where this differs from "uname -m". reported by/ok aja@
2015-06-25Fixed a use-after-free. When handing the L2TP Proxy-LCP, a timer was usedYASUOKA Masahiko
to open LCP. If the PPP session is terminated before the timer fires, the timer had been fired with the freed context. Stop using the timer to open LCP.
2015-06-25Reset the LCP option state for dialin-proxy only if re-negotiation isYASUOKA Masahiko
enabled.
2015-06-24tweak previous;Jason McIntyre
2015-06-24Fix npppd to terminate all PPP sessions properly even in case theYASUOKA Masahiko
sending window for L2TP control is full when the control is terminating (by a L2TP keepalive failure or other reasons). In that case, if the L2TP peer didn't respond at all, npppd had kept some PPP sessions forever.
2015-06-24Use the return value of event_loop() properly. Also abort(3) ifYASUOKA Masahiko
event_loop() returns abnormally which is unexpected. diff from Yuuichi Someya
2015-06-24Improve and fix typo in the comment.YASUOKA Masahiko
2015-06-24Mention that pipex should be also configured by sysctl.YASUOKA Masahiko
2015-06-23various tweaks;Jason McIntyre
2015-06-23escape the matched substrings before using it in expansion.semarie
ok reyk@
2015-06-23remove a deprecated character class.semarie
it was deprecated in lua code, but here the code is new. The documentation don't mention it either. ok reyk@
2015-06-23Add initial support for pattern matching using Lua's pattern matching code.Reyk Floeter
With important help on the pattern matcher from semarie@ OK semarie@
2015-06-23Fix npppd to check the size of received GRE packets properly.YASUOKA Masahiko
2015-06-23Fix the problem when npppd receives a zero length 1701/udp packet. IfYASUOKA Masahiko
it receives such packets when the errno is not EAGAIN or EINTR, it had closed all L2TP sessions and stoppped the L2TP server. Also fix the receiving GRE packet since it potentially has the same problem.
2015-06-22After the last change, we also have to url_encode $SERVER_NAME andReyk Floeter
$REMOTE_USER before using them in the Location. From Sebastien Marie (semarie)
2015-06-21When encoding the Location url, only encode the query and pathReyk Floeter
elements from the user input and not the constants from the configuration. This makes it possible to specify chars like '?' in the uri. OK Sebastien Marie
2015-06-21There is a race between sending notifications to the SE and getting a newClaudio Jeker
peer_up event in the RDE. This can be triggered by graceful restart. So remove the panic and replace it with roughly what peer_down does. OK phessler and henning
2015-06-20sort +0n -> sort -n, the former is historicalJeremie Courreges-Anglas
2015-06-19show the number of (currently) known prefixes and the max-prefix limit,Peter Hessler
when we terminate the session. since we terminate the session as soon as we go above the limit, show '>' since there may be more that we haven't/won't process. OK benno@
2015-06-15put -F before -f in the options list;Jason McIntyre
2015-06-15Implement a -F switch, that tells syslogd to stay in foreground.Alexander Bluhm
OK benno@; input millert@; no objections deraadt@
2015-06-15get_val() already frees the buffer passed to it so we don't need toTodd C. Miller
do it in the caller.
2015-06-12Close the lock pipe before dupping /dev/null to stdio.Alexander Bluhm
This works even if the file descriptor is 0 or 1 or 2. input and OK millert@
2015-06-12To match relayd's style, use an explicit enum with prefixed names forReyk Floeter
the states that Claudio introduced. No functional change. OK claudio@ benno@
2015-06-12Perform a copy with a memmove for potentially overlapping regions.Mike Belopuhov
Reported and fixed by Sergey Ryazanov <ryazanov ! s ! a at gmail ! com>, thanks!
2015-06-12If fork fails, print an error message before exit.Alexander Bluhm
OK doug@ djm@
2015-06-11local user can cause smtpd to fail by sending invalid imsg to control sockGilles Chehade
2015-06-11Use "compliant" header guards by avoiding the reserved '_' namespace.Reyk Floeter
Pointed out by Markus Elfring OK mikeb@ millert@
2015-06-11Don't do manual whitespace adjustments inside semantic macros,Ingo Schwarze
rather do it before the macros, and get rid of cargo cult escaping. Both to make the code more robust and less ugly, no output change. Ugly code reported by TJ at mrsk dot me. OK jmc@
2015-06-10Typos: equalivant, fucntion, libary.Miod Vallat
2015-06-10Export new pf "no-route" error counterMike Belopuhov
OK sthen, blambert for the SNMP part
2015-06-09plug fd leak found by Todd MortimerJoerg Jung
ok claudio deraadt florian
2015-06-08Introduce a state on the ctl_relay_event struct. This makes it possibleClaudio Jeker
to better track the connection state of a session and stops doing double opens in certain situations using http relays. Using a state field to simplify the logic since relay_connect() is called multiple times. OK benno@, bluhm@ and running in production for more than a week
2015-06-06Add rtwn(4) to fw_update. ok espie@, czarkoff@ suggested a similar diffStefan Sperling
2015-06-04spacing, makes example fit on display.Igor Sobrado
no objection from gilles@
2015-06-03Turn off -Werror in relayctl.Reyk Floeter
2015-06-03Explicitly request the sockaddr_dl when doing a RTM_GET rather thanMartin Pieuchot
assuming that it will be in the gateway sa. Fixes a regression introduced with the support of multiple connected routes, found the hardway by deraadt@. ok claudio@
2015-06-03Do not assume that asprintf() clears the pointer on failure, whichTodd C. Miller
is non-portable. Also add missing asprintf() return value checks. OK deraadt@ guenther@ doug@
2015-06-02Don't leak value returned by cgetstr(). OK deraadt@Todd C. Miller
2015-06-02fix variable name typoJoerg Jung
ok ajacoutot@
2015-06-02write Mobile IP{,v6} in a consistent way, as given in RFCs 5944 and 6275.Igor Sobrado
ok jmc@
2015-06-01Fix memory leak in error case. OK bluhm@ benno@Claudio Jeker
2015-05-30Plug a memory leak by simplifying kv_free(). By checking the type andClaudio Jeker
returning early the key and value memory got leaked on HTTP header kvs since their type was never set. OK benno@
2015-05-30Remove fields from struct that are not used. OK benno@Claudio Jeker
2015-05-28detect crashes from constraint sub-processes, instead of ignoring them.Theo de Raadt
if this happens, we want to tear down all of ntpd, so that people will report it, any such bug can be found, and fixed. ok bcook
2015-05-28use "uri"; from yegor timoschenkoJason McIntyre