OpenBSD CVS

CVS log for src/usr.sbin/dhcpd/udpsock.c


[BACK] Up to [local] / src / usr.sbin / dhcpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:47 2019 UTC (4 years, 11 months ago) by deraadt
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, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 13 22:33:39 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: 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, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored)

Adjust some long lines.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 13 21:53:53 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.8: +8 -10 lines
Diff to previous 1.8 (colored)

Do the strerror() elimination dance with log_warnx() -> log_warn(),
fatalx() -> fatal() and even a couple of fprintf(stderr) -> log_warn().

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 13 19:13:14 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.7: +12 -11 lines
Diff to previous 1.7 (colored)

Switch from old errwarn.c logging to shiny new log.[ch].

ok benno@

Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 27 10:16:10 2016 UTC (8 years, 1 month ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.6: +1 -4 lines
Diff to previous 1.6 (colored)

Remove pledge(2)'s that are called before chroot(2) since in the near future
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still
kept.

OK semarie@ "it is time now"

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 4 14:00:42 2016 UTC (8 years, 2 months ago) by mestre
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

In udpsockmode codepath dhcpd.c had the promise route for pledge(2) but it was
missing from udpsock_startup() (udpsock.c) which happens earlier and therefore
would abort the program due to SIOCGIFADDR ioctl(2) on udpsock_handler

Reported by Philip Higgins <phil ! unita.com.au>

OK tb@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 8 02:06:07 2016 UTC (8 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

sys/param.h -> sys/types.h. No need to drag in nitems() only to
use it once on an array declared iov[1]. Just use '1'.

ok yasuoka@

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 6 23:50:10 2016 UTC (8 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.3: +14 -5 lines
Diff to previous 1.3 (colored)

Eliminate #include inside *.h files and include only needed headers in
each *.c file.

Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Dec 14 01:08:50 2015 UTC (8 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored)

pledge.

Diff from Ricardo Mestre. Test report from sthen@.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:16 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.1: +2 -2 lines
Diff to previous 1.1 (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.1 / (download) - annotate - [select for diffs], Fri Jul 11 09:42:27 2014 UTC (9 years, 10 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6

Add -u option to bind UDP port as a socket to answer DHCPINFORM from
the clients on non ethernet interfaces (eg. tun(4) or pppx(4)).

input krw
ok krw

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.