History log of /openbsd-current/usr.sbin/dhcpd/icmp.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.19 03-Oct-2019 claudio

Properly initalize the ICMP message to zero to avoid leaking 4-byte
of uninitialised memory in the sent icmp echorequest.
Reported by Adarsh Dinesh (adarsh.dinesh at gmail com)
OK florian@ deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.18 13-Feb-2017 krw

branches: 1.18.8; 1.18.10;
Eliminate pointless'%m' (a.k.a. hand rolled strerror()) by using fatal() and
log_warn(). Zap a couple of explicit 'syslog()' calls.


# 1.17 13-Feb-2017 krw

Adjust some long lines.


# 1.16 13-Feb-2017 krw

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

ok benno@


# 1.15 15-Nov-2016 mestre

Replace bzero(3) with memset(3)

"Looks good" to deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.14 06-Feb-2016 krw

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 tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 25-Oct-2014 lteo

Remove unnecessary netinet/in_systm.h include.

ok millert@


Revision tags: OPENBSD_5_6_BASE
# 1.12 07-May-2014 pelikan

back out the previous ICMP simplifying diff, it caused livelocks.

reported by Mikolaj Kucharski, thanks!
ok krw


# 1.11 05-May-2014 pelikan

Don't call the ICMP handler indirectly + clean up a bit.

ok krw


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.10 15-Sep-2008 claudio

When checking if a syscall like open(), ioctl() or writev() failed compare
directly against -1 and do not use a < 0 test. OK henning@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.9 16-Sep-2004 deraadt

avoid aliasing with libc functions; ok henning


Revision tags: OPENBSD_3_6_BASE
# 1.8 22-Apr-2004 henning

instead of using some lower 16 bits of some address on the stack that
even requires knowledge about wether the machine is 32 or 64 bit, use getpid()
for the icmp id. that is not optimal, but matches what ping does and the
way to go for now.


# 1.7 21-Apr-2004 henning

cleaning; Ryan ok


# 1.6 20-Apr-2004 henning

$OpenBSD$


# 1.5 18-Apr-2004 deraadt

various knf; henning ok


# 1.4 14-Apr-2004 deraadt

ansi


# 1.3 14-Apr-2004 deraadt

spaces


# 1.2 14-Apr-2004 henning

more crap bites the dust


# 1.1 13-Apr-2004 henning

may the whacking begin


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.18 13-Feb-2017 krw

Eliminate pointless'%m' (a.k.a. hand rolled strerror()) by using fatal() and
log_warn(). Zap a couple of explicit 'syslog()' calls.


# 1.17 13-Feb-2017 krw

Adjust some long lines.


# 1.16 13-Feb-2017 krw

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

ok benno@


# 1.15 15-Nov-2016 mestre

Replace bzero(3) with memset(3)

"Looks good" to deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.14 06-Feb-2016 krw

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 tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 25-Oct-2014 lteo

Remove unnecessary netinet/in_systm.h include.

ok millert@


Revision tags: OPENBSD_5_6_BASE
# 1.12 07-May-2014 pelikan

back out the previous ICMP simplifying diff, it caused livelocks.

reported by Mikolaj Kucharski, thanks!
ok krw


# 1.11 05-May-2014 pelikan

Don't call the ICMP handler indirectly + clean up a bit.

ok krw


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.10 15-Sep-2008 claudio

When checking if a syscall like open(), ioctl() or writev() failed compare
directly against -1 and do not use a < 0 test. OK henning@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.9 16-Sep-2004 deraadt

avoid aliasing with libc functions; ok henning


Revision tags: OPENBSD_3_6_BASE
# 1.8 22-Apr-2004 henning

instead of using some lower 16 bits of some address on the stack that
even requires knowledge about wether the machine is 32 or 64 bit, use getpid()
for the icmp id. that is not optimal, but matches what ping does and the
way to go for now.


# 1.7 21-Apr-2004 henning

cleaning; Ryan ok


# 1.6 20-Apr-2004 henning

$OpenBSD$


# 1.5 18-Apr-2004 deraadt

various knf; henning ok


# 1.4 14-Apr-2004 deraadt

ansi


# 1.3 14-Apr-2004 deraadt

spaces


# 1.2 14-Apr-2004 henning

more crap bites the dust


# 1.1 13-Apr-2004 henning

may the whacking begin