OpenBSD CVS

CVS log for src/usr.sbin/tftp-proxy/tftp-proxy.c


[BACK] Up to [local] / src / usr.sbin / tftp-proxy

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Sun Jan 17 13:38:52 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (colored)

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@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jul 4 12:47:51 2017 UTC (6 years, 10 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Include stdarg.h explicitly instead of relying on event.h to bring it in.
prompted by dlg's commit to identd
OK dlg

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 26 17:38:46 2017 UTC (7 years ago) by florian
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

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@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Sep 4 14:41:16 2016 UTC (7 years, 8 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.18: +43 -13 lines
Diff to previous 1.18 (colored)

Add format attribute to logger functions.
Add syslog_debug to keep in sync with others.
Input & OK benno@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Feb 24 16:34:47 2016 UTC (8 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

satisfy whiny compiler on m88k, noticed by aoyama, solution from gsoares

Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 12 12:24:27 2016 UTC (8 years, 3 months ago) by jca
Branch: MAIN
Changes since 1.16: +11 -17 lines
Diff to previous 1.16 (colored)

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@

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 1 07:32:20 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

switch to new _tftp_proxy user; ok dlg

Revision 1.15 / (download) - annotate - [select for diffs], Sat Nov 14 04:02:32 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored)

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...)

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 12 20:55:49 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +1 -5 lines
Diff to previous 1.13 (colored)

Remove repeat of getpwnam() that is not needed at all.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Nov 12 19:13:47 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +13 -13 lines
Diff to previous 1.12 (colored)

spaces

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 10 23:06:32 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.11: +7 -16 lines
Diff to previous 1.11 (colored)

Convert FIONBIO to SOCK_NONBLOCK

ok dlg@

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:22 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.10: +2 -3 lines
Diff to previous 1.10 (colored)

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)

Revision 1.10 / (download) - annotate - [select for diffs], Mon Dec 23 13:08:25 2013 UTC (10 years, 5 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.9: +13 -14 lines
Diff to previous 1.9 (colored)

When no address for the current AF was specified with -a generate pass
rules instead of erroring out.
ok dlg, benno, camield

Revision 1.9 / (download) - annotate - [select for diffs], Mon Dec 23 13:07:47 2013 UTC (10 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.8: +10 -5 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 23 13:06:53 2013 UTC (10 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.7: +83 -11 lines
Diff to previous 1.7 (colored)

Implement -a option in tftp-proxy to make it work on a NAT gateway.
input/ok dlg, benno, camield
manpage input/ok jmc

Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 23 11:45:39 2013 UTC (10 years, 5 months ago) by benno
Branch: MAIN
Changes since 1.6: +8 -3 lines
Diff to previous 1.6 (colored)

fix IPv6 in proxy_dst6()
ok florian camield dlg

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 19 11:23:29 2013 UTC (10 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

plug mem leak; Ok benno@

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 6 16:29:51 2012 UTC (11 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

fix usage(); ok dlg

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 19 23:21:24 2012 UTC (11 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -5 lines
Diff to previous 1.3 (colored)

decls before code

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 11 12:00:21 2012 UTC (11 years, 10 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

fix getopt to not eat t

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 11 11:51:35 2012 UTC (11 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.1: +3 -8 lines
Diff to previous 1.1 (colored)

-t pftag doesnt do anything, trim the getopt side of it until i get to it.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Jul 11 11:43:27 2012 UTC (11 years, 10 months ago) by dlg
Branch: dlg
CVS Tags: dlg-2012-07-11
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

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@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 11 11:43:27 2012 UTC (11 years, 10 months ago) by dlg
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.