Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-10-09 | Change all tame callers to namechange to pledge(2). | Theo de Raadt | |
2015-10-03 | like ping, traceroute is a setuid root priv-drop which holds a sockraw. | Theo de Raadt | |
we can tame it substantially with "stdio inet", plus "dns" if the -n option is missing. a successful exploit against it then cannot create files, or perform a variety of other operations, as described in the tame(2) man page. florian helped me a fair bit hoisting initization code upwards in ping, ping6, and traceroute, to make tame work here. | |||
2015-09-14 | Avoid .Ns right after .Pf, it's pointless. | Ingo Schwarze | |
In some cases, do additional cleanup in the immediate vicinity. | |||
2015-08-30 | warnx(3) has an implicit \n at the end. | Florian Obser | |
pointed out by deraadt@ | |||
2015-07-16 | The return type of memset(3) is void. No need for a cast. | Florian Obser | |
No object change. | |||
2015-03-11 | port the idea of using clock_gettime(CLOCK_MONOTONIC) for measuring | David Gwynne | |
intervals from src/sbin/ping/ping.c r1.115. > use clock_gettime(CLOCK_MONOTONIC) to get timestamps to measure the > interval between sending a ping and getting a reply for it. > > this makes it resistant against local wall clock changes, which can > skew the intervals reported or make them go negative. this version puts clock_getting in a local gettime() function that converts to a struct timeval that all the previous callers of gettimeofday expect to get. requested by deraadt@ florian@ | |||
2015-02-11 | Replace base 10 strtol with strtonum. | Florian Obser | |
OK krw@, tedu@, deraadt@ | |||
2015-02-09 | clean up flags++ instances around getopt() | Theo de Raadt | |
ok florian | |||
2015-01-20 | HOST_NAME_MAX + 1 is big enough for gethostname(3); this array has | Florian Obser | |
been one char too big when it was defined in terms of MAXHOSTNAMELEN. While here, NI_MAXHOST is big enough for getnameinfo(3). OK benno@ | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo de Raadt | |
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) | |||
2014-12-09 | Use memmove() instead of strlcpy() for an overlapping string copy | Todd C. Miller | |
so we don't rely on undefined behavior. OK deraadt@ | |||
2014-10-25 | Remove unnecessary netinet/in_systm.h include. | Lawrence Teo | |
ok millert@ | |||
2014-09-08 | obvious cases of missing .An; | Ingo Schwarze | |
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes | |||
2014-06-06 | Update description of optional argument "datalen" to reality. | Florian Obser | |
Issue pointed out by, tweak and "looks ok" jmc@ | |||
2014-06-05 | Reduce code running as root by trying to create all needed sockets | Florian Obser | |
first, remember which failed, drop privs and then decide which sockets are needed and close the others. Only error out if the creation of a needed socket failed. That is it is non-fatal if tracerouting an INET4 address and the INET6 socket creations failed. prodding deraadt@; OK benno@ | |||
2014-06-04 | datalen is additional data, sync traceroute6 to traceroute. Also "nn | Florian Obser | |
byte packets" in the first line of traceroute output is the length of the complete IP packet, fix this for traceroute6. OK benno@ | |||
2014-06-04 | Replace ICMP6ECHOLEN define with sizeof() | Florian Obser | |
OK benno@ | |||
2014-05-28 | a void function should not be returning anything. | Daniel Dickman | |
ok florian@ | |||
2014-05-01 | change some argument names in order to give some consistency between traceroute | Jason McIntyre | |
and traceroute6; i also fudged the formatting to allow SYNOPSIS to display a bit nicer, and for usage() to look like SYNOPSIS; ok florian | |||
2014-04-29 | a bit more merge for traceroute6 stuff, and some consistency fixes; | Jason McIntyre | |
help/ok florian | |||
2014-04-28 | whitespace cleanup while reading result of florian's recent (very nice) work | Theo de Raadt | |
2014-04-27 | zap a ton of silly Tn, and uppercase TTL; a few other minor tweaks along the | Jason McIntyre | |
way; | |||
2014-04-26 | Link traceroute6 to traceroute, thus completing the merge. | Florian Obser | |
I was originally sent on this little errand by deraadt@. OK sthen@, benno@ (Committing from a bus somewhere in germany on its way to berlin.) | |||
2014-04-25 | add traceroute6 to NAME, and knock out some unneeded Bk/Ek; | Jason McIntyre | |
2014-04-25 | MLINKS traceroute.8 traceroute6.8 | Florian Obser | |
"sure" jmc@ | |||
2014-04-25 | Merge traceroute6 man page with traceroute. | Florian Obser | |
"sure" jmc@ | |||
2014-04-23 | Merge traceroute6 into traceroute. | Florian Obser | |
Not yet enabled in the build. OK benno@ | |||
2014-04-23 | KNF | Florian Obser | |
OK benno@ | |||
2014-04-23 | Prepare merge: check AF | Florian Obser | |
OK benno@ | |||
2014-04-23 | missing break; not reachable | Florian Obser | |
OK benno@ | |||
2014-04-23 | No need to set protocol in hints. | Florian Obser | |
OK benno@ | |||
2014-04-23 | zap redundant cast | Florian Obser | |
OK benno@ | |||
2014-04-23 | Introduce check_tos to unclutter the main loop. | Florian Obser | |
OK benno@ | |||
2014-04-23 | move AF independet setsockopts down | Florian Obser | |
OK benno@ | |||
2014-04-23 | Add error checking to sysctl. While there pass in an int otherwise | Florian Obser | |
it failes with ENOMEM in traceroute. OK benno@ | |||
2014-04-23 | Prepare for merge: s/icmp_code/icmp4_code/ and use icmp_code for | Florian Obser | |
the AF switch. OK benno@ | |||
2014-04-23 | Prepare for merge: s/packet_ok/packet_ok4/ and use packet_ok | Florian Obser | |
for the AF switch. | |||
2014-04-23 | Prepare merge: introduce struct sockaddr *from, *to to be used in | Florian Obser | |
AF independet places. OK benno@ | |||
2014-04-23 | Prepare merge: s/to/to4/; s/from/from4/ | Florian Obser | |
OK benno@ | |||
2014-04-23 | Make this compile with -Wall et al. | Florian Obser | |
OK benno@ | |||
2014-04-21 | Revert 1.101 as it breaks source port selection. This needs more | Florian Obser | |
thought / code shuffling. Reported by deraadt@ and sthen@, thanks! | |||
2014-04-19 | Fix display of destination IP when host is an IP address. | Florian Obser | |
Pointed out by and OK benno@ | |||
2014-04-18 | Wrap long lines. | Florian Obser | |
OK lteo@, benno@ | |||
2014-04-18 | Move ident / perturb initialisation up, this is AF independent. | Florian Obser | |
OK benno@ | |||
2014-04-18 | sync to traceroute6: use getnameinfo for destination ip | Florian Obser | |
OK benno@ | |||
2014-04-18 | Declare socklen_t len in main, it's used in two places, no need | Florian Obser | |
to declare it twice. We can get rid of a { } block. OK benno@ | |||
2014-04-18 | Use getaddrinfo to resolve destination. I kept the inet_aton so the | Florian Obser | |
great old ones can still traceroute 010.010.010.010. OK benno@ | |||
2014-04-18 | We do have SO_SNDBUF and IP_HDRINCL. | Florian Obser | |
OK benno@ | |||
2014-04-18 | replace perror(3) with err(3)/warn(3) | Florian Obser | |
OK lteo@, benno@ | |||
2014-04-18 | move cast from packet to ip up to avoid casts in print() | Florian Obser | |
OK benno@ |