#
f3b11628 |
| 03-Jun-2015 |
mpi <mpi@openbsd.org> |
Explicitly request the sockaddr_dl when doing a RTM_GET rather than assuming that it will be in the gateway sa.
Fixes a regression introduced with the support of multiple connected routes, found the
Explicitly request the sockaddr_dl when doing a RTM_GET rather than assuming that it will be in the gateway sa.
Fixes a regression introduced with the support of multiple connected routes, found the hardway by deraadt@.
ok claudio@
show more ...
|
#
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 ...
|
#
d8f8e4e4 |
| 07-Sep-2014 |
bluhm <bluhm@openbsd.org> |
Remove useless comment, snprintf and if/else. OK mpi@
|
#
48ccdf10 |
| 03-Sep-2014 |
mpi <mpi@openbsd.org> |
Be coherent in the way arp(8) and ndp(8) display local entries and use a new flag `l' to ditinguish them.
Also skip broadcast entries, they are not reall ARP entries and will never be resolved to an
Be coherent in the way arp(8) and ndp(8) display local entries and use a new flag `l' to ditinguish them.
Also skip broadcast entries, they are not reall ARP entries and will never be resolved to anything, requested by deraadt@.
ok bluhm@
show more ...
|
#
e8f5ae95 |
| 22-Aug-2014 |
sthen <sthen@openbsd.org> |
print leading 0's in MAC addresses again, ok deraadt
|
#
e1ee6c49 |
| 21-Aug-2014 |
mpi <mpi@openbsd.org> |
Change the output of arp(8) to match what ndp(8) does and include the expire timer.
This will makes it easier to add further information in a coherent way between these tools for local and broadcast
Change the output of arp(8) to match what ndp(8) does and include the expire timer.
This will makes it easier to add further information in a coherent way between these tools for local and broadcast entries.
This new view displays either symbolic names (by default) or numerical addresses (with "-n") for hosts but not both at the same time, just like ndp(8), route(8) or netstat(1) do.
ok henning@
show more ...
|
#
5233a64e |
| 19-Aug-2014 |
mpi <mpi@openbsd.org> |
Entries for broadcast addresses should also be ignored, just like local entries.
ok florian@, mikeb@, henning@
|
#
38c8fc57 |
| 11-Aug-2014 |
mpi <mpi@openbsd.org> |
Do not try to delete RTF_LOCAL entries. Such routes are automatically created /deleted by the kernel when an IP address is added/removed on/from an interface and should not be manipulated by userlan
Do not try to delete RTF_LOCAL entries. Such routes are automatically created /deleted by the kernel when an IP address is added/removed on/from an interface and should not be manipulated by userland tools.
ok henning@, jca@
show more ...
|
#
140f2ab4 |
| 18-Mar-2014 |
mikeb <mikeb@openbsd.org> |
Put AF_ROUTE socket that arp(8) operates on into the appropriate rdomain.
Previously "arp -V 1 -d 10.0.0.1" would hang forever since while the target rdomain was passed in the rtm, the AF_ROUTE sock
Put AF_ROUTE socket that arp(8) operates on into the appropriate rdomain.
Previously "arp -V 1 -d 10.0.0.1" would hang forever since while the target rdomain was passed in the rtm, the AF_ROUTE socket was always created in the rdomain 0. Due to the logic in route_input (rtsock.c) route socket's rdomain is compared against the target rdomain of the request and reply is generated only when they match. In our case rdomains were different which cased arp(8) to hang waiting for the reply that would never be sent.
ok deraadt
show more ...
|
#
bf44d530 |
| 26-Feb-2014 |
claudio <claudio@openbsd.org> |
There is no need to init a global to 0
|
#
3b91be6e |
| 15-Aug-2013 |
bluhm <bluhm@openbsd.org> |
Reduce the warnings when arp, rarp, ndp are compiled with WARNINGS=yes. warning: declaration of 'time' shadows a global declaration No binary change; OK lteo@ florian@ henning@ mikeb@ millert@
|
#
a80d0aeb |
| 20-Jul-2013 |
bluhm <bluhm@openbsd.org> |
arp and rarpd used an int expire_time for time calculation. Convert this into time_t. OK benno@
|
#
8ae2d342 |
| 21-Mar-2013 |
deraadt <deraadt@openbsd.org> |
create realloc() loops around sysctl for array-based mibs, in programs which want a "full" dump ok dlg
|
#
ae71d88d |
| 08-Nov-2012 |
phessler <phessler@openbsd.org> |
When running route -Tx exec arp -an, arp would always use the default routing domain. Fix it so we use the process rdomain, but still allow command line overrides.
noticed by, and OK, mikeb@
|
#
bc878e5d |
| 11-Jan-2011 |
jasper <jasper@openbsd.org> |
Add Wake on Lan support to arp(8). This is partly based on the original wake(8) program. One can specify an interface to send on, or simply broadcast on all available interfaces.
Initial
Add Wake on Lan support to arp(8). This is partly based on the original wake(8) program. One can specify an interface to send on, or simply broadcast on all available interfaces.
Initial input from stsp@, further help from claudio@ and deraadt@. ok claudio@ deraadt@ manpage bits ok jmc@
show more ...
|
#
d2349d47 |
| 27-Sep-2009 |
deraadt <deraadt@openbsd.org> |
a usage line got too long; ok jmc
|
#
6eca9d58 |
| 25-Jun-2009 |
claudio <claudio@openbsd.org> |
Same code as in route(8) same RTM_VERSION check missing. Tested and OK sthen@, OK henning@
|
#
520361c9 |
| 05-Jun-2009 |
chris <chris@openbsd.org> |
more rtm->rtm_hdrlen conversion
ok claudio@
|
#
cc0444d0 |
| 05-Jun-2009 |
claudio <claudio@openbsd.org> |
One more tool that knows about other domains via -V
|
#
92dd616f |
| 12-Dec-2008 |
claudio <claudio@openbsd.org> |
Use rtm_hdrlen to jump over the message header and to the beginning of the sockaddrs included in the message. This makes the code more robust when kernel and userland are out of sync. put it in deraa
Use rtm_hdrlen to jump over the message header and to the beginning of the sockaddrs included in the message. This makes the code more robust when kernel and userland are out of sync. put it in deraadt@
show more ...
|
#
e0faf186 |
| 12-Mar-2008 |
sobrado <sobrado@openbsd.org> |
"usage:" should precede the first statement only
ok jmc@
|
#
24287c36 |
| 14-Feb-2008 |
thib <thib@openbsd.org> |
backout the change to make arp(8) default to -an; Remove that blurp from the man page also.
requested by deraadt@;
|
#
1103bd2b |
| 07-Feb-2008 |
thib <thib@openbsd.org> |
Oops. Better diff to enable -an by default without breaking the other options too badly;
ok millert@
|
#
df8e2a83 |
| 07-Feb-2008 |
thib <thib@openbsd.org> |
make arp(8) default to -na when called with no arguments;
man page bit from jmc@
ok millert@, oga@, laurent@
|
#
62ae07b0 |
| 24-Aug-2007 |
claudio <claudio@openbsd.org> |
Yet another application that does not check if the RTM_VERSION is the expected one. Luckily it seems that only show is affected. OK henning@
|