History log of /openbsd/usr.sbin/rarpd/rarpd.c (Results 1 – 25 of 80)
Revision Date Author Comments
# 3af1fc9b 04-Oct-2022 kn <kn@openbsd.org>

Unveil /tftpboot only if needed

Unless -t is used, this directory is not accessed in any way.

OK millert


# 10a7b758 15-Nov-2021 millert <millert@openbsd.org>

No need to declare optind, optarg or opterr; unistd.h does this for us.
From Jan Stary. OK deraadt@


# 025f8c0a 06-Sep-2021 deraadt <deraadt@openbsd.org>

repair missing paths on unveil failure


# 903238f4 29-Dec-2020 benno <benno@openbsd.org>

getifaddrs() can return entries where ifa_addr is NULL. Check for this
before accessing anything in ifa_addr.
ok claudio@


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

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

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.

show more ...


# 4f02b014 07-Aug-2018 deraadt <deraadt@openbsd.org>

Unveil is used at tail of initialization to allow "r" of /tftpboot
(that decides whether rarpd should reply), and /etc/ethers "r" for
debug reporting.


# c60525cb 01-Jun-2018 tb <tb@openbsd.org>

Just over 15 years and 35 revisions ago, itojun removed the last use of
SIOCGIFNETMASK in #ifdef'ed out code. Adjust two comments accordingly.


# f4147939 26-Apr-2018 guenther <guenther@openbsd.org>

Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.

ok deraadt@ krw@


# 7b08a90a 19-Apr-2017 natano <natano@openbsd.org>

Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has been
around for two releases, it should be safe to do so.

ok bluhm deraadt sthen tb yasuoka


# 6e61aa94 20-Jan-2017 krw <krw@openbsd.org>

Oops. one "error(NONFATAL,..." got flipped to "error(...)" instead
of "warning(...)".

Spotted by & ok procter@


# a0627fc5 20-Jan-2017 krw <krw@openbsd.org>

Split error() into error() and warn() so that error() can be marked
__dead and thus let gcc sleep at night.

ok tb@ beck@


# c1024b75 18-Dec-2016 krw <krw@openbsd.org>

Nuke more unused variables.

ok millert@


# 2abf9a0d 28-May-2016 natano <natano@openbsd.org>

Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).
ok deraadt jca


# cd93351e 19-Nov-2015 deraadt <deraadt@openbsd.org>

hoist the SOCK_RAW setup to the top before pledge
issues discovered by sebastia
comments from semarie


# 9e5453f5 13-Nov-2015 deraadt <deraadt@openbsd.org>

pledge "stdio rpath dns" right at the start of the servicing loop.
Commiting to gather reports.


# d967a928 27-Oct-2015 jca <jca@openbsd.org>

Consistency in error messages.

No functional change.


# b1014f6d 26-Oct-2015 jung <jung@openbsd.org>

remove util.h include and -lutil after pidfile removal

ok deraadt


# c9dd4a3f 26-Oct-2015 deraadt <deraadt@openbsd.org>

stop using pidfile()
ok benno jung jca


# d9d98c6d 16-Oct-2015 deraadt <deraadt@openbsd.org>

use daemon(), jca had the same diff in his tree


# 35de856e 20-Aug-2015 deraadt <deraadt@openbsd.org>

stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw


# e518f7e0 16-Jul-2015 miod <miod@openbsd.org>

typo


# d5cbf86c 19-Jan-2015 guenther <guenther@openbsd.org>

Routing sockets are here to stay, so delete the wrapper that would use the
defunct ioctl(SIOCSARP)

ok millert@


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

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_N

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)

show more ...


# 2fc3edb7 16-Dec-2014 millert <millert@openbsd.org>

Replace setpgrp(0, getpid()) with setpgid(0, 0). OK deraadt@ tedu@


# 9a659a83 31-Oct-2014 deraadt <deraadt@openbsd.org>

convert select() to poll(). Bit more complicated here. Some interesting
discussion with millert about POLLHUP, which is not needed here because
this is a bpf description, but indicates we need to c

convert select() to poll(). Bit more complicated here. Some interesting
discussion with millert about POLLHUP, which is not needed here because
this is a bpf description, but indicates we need to consider that elsewhere.
ok millert

show more ...


1234