1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

22 Commits

Author SHA1 Message Date
claudio
2ada0f0db4 Remove a __KAME__ block for extracting the scope_id from IPV6_PKTINFO.
struct in6_pktinfo includes the interface index in ipi6_ifindex but no
struct sockaddr_in6.
OK jca@
2021-01-17 13:38:52 +00:00
florian
f9ed04f268 Include stdarg.h explicitly instead of relying on event.h to bring it in.
prompted by dlg's commit to identd
OK dlg
2017-07-04 12:47:51 +00:00
florian
a52b97d159 Sync the severity of the syslog_* functions shared between identd, slowcgi,
tftp-proxy and tftpd to the severity used in log.c style loggers.
This also fixes an issue where syslog_err and syslog_errx logged with
different severities.

Sure deraadt@
2017-05-26 17:38:46 +00:00
florian
cd68c002ec Add format attribute to logger functions.
Add syslog_debug to keep in sync with others.
Input & OK benno@
2016-09-04 14:41:16 +00:00
deraadt
a278458b2c satisfy whiny compiler on m88k, noticed by aoyama, solution from gsoares 2016-02-24 16:34:47 +00:00
jca
5d08eca03d Call daemon(3) later, to catch errors from getpwnam and others.
Also set up syslog logging earlier, so that error messages don't end on
stderr which has been closed by daemon(3).  One additional s/errx/lerrx/
for consistency.

Inspired by a proposal from ajacoutot@, ok ajacoutot@ sthen@
2016-02-12 12:24:27 +00:00
deraadt
41f70b9412 switch to new _tftp_proxy user; ok dlg 2015-12-01 07:32:20 +00:00
deraadt
1179e37d35 pledge "stdio inet sendfd" before entering main loop in network speaking
child.  (All those I asked to test timed out before commit, so now they
get to test for real...)
2015-11-14 04:02:32 +00:00
deraadt
619f9a6dbd Remove repeat of getpwnam() that is not needed at all. 2015-11-12 20:55:49 +00:00
deraadt
6cc41355f0 spaces 2015-11-12 19:13:47 +00:00
guenther
e18a088033 Convert FIONBIO to SOCK_NONBLOCK
ok dlg@
2015-10-10 23:06:32 +00:00
deraadt
b9fc9a728f Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
2015-01-16 06:39:28 +00:00
florian
b27441fec9 When no address for the current AF was specified with -a generate pass
rules instead of erroring out.
ok dlg, benno, camield
2013-12-23 13:08:25 +00:00
florian
a4dc3638d0 Make it possible to give -a multiple times on the command line.
Initial diff by camield, tweaked by me.
ok dlg, benno, camield
manpage input/ok jmc
2013-12-23 13:07:47 +00:00
florian
19875b1590 Implement -a option in tftp-proxy to make it work on a NAT gateway.
input/ok dlg, benno, camield
manpage input/ok jmc
2013-12-23 13:06:53 +00:00
benno
bc7a20e3b9 fix IPv6 in proxy_dst6()
ok florian camield dlg
2013-12-23 11:45:39 +00:00
florian
80b8c34729 plug mem leak; Ok benno@ 2013-12-19 11:23:29 +00:00
jmc
2c4cc4762d fix usage(); ok dlg 2012-10-06 16:29:51 +00:00
deraadt
8f072f6e1a decls before code 2012-08-19 23:21:24 +00:00
dlg
adb67b24e3 fix getopt to not eat t 2012-07-11 12:00:21 +00:00
dlg
cc4134f5d9 -t pftag doesnt do anything, trim the getopt side of it until i get to it. 2012-07-11 11:51:35 +00:00
dlg
697c809679 bring in a persistent event driven tftp-proxy to replace the libexec
one run out of inetd.

the libexec tftp-proxy had the same problems as the libexec tftpd, in that
it didnt scale as well as we needed. it also had a bunch of interesting
races with states and addresses on sockets.

manpage is coming.

ok deraadt@ sthen@ henning@ matthew@
2012-07-11 11:43:27 +00:00