summaryrefslogtreecommitdiffstats
path: root/usr.sbin/traceroute/worker.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-4/+4
| | | | | | 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.
* Since nearly 20 years the correct spelling offlorian2017-08-031-2/+2
| | | | | | | ICMP6_DST_UNREACH_NOTNEIGHBOR is ICMP6_DST_UNREACH_BEYONDSCOPE (RFC 1885 was obsoleted). sthen grepped the ports sources to make sure nothing uses it. OK millert, jca
* check_tos() gets a parameter so i can remove another global var.benno2017-05-281-4/+4
| | | | ok florian@
* introduce struct tr_conf to keep all of the configuration.benno2017-05-281-53/+59
| | | | | | Functions needing access to any of those vars get it passed as a parameter. result: even less global vars. ok florian@
* traceroute never sees a timeout when poll(2) returns when it receivesflorian2017-01-131-2/+2
| | | | | | | | | a packet not intended for us. E.g. a ping(8) is running in parallel. In this case we need to account for the time we already waited. Pointed out by Gabriel Nieto <gabnietof AT gmail>, thanks! Looks good to and input millert@
* rearrange code: traceroute.c now only contains main() and usage(),benno2016-09-031-0/+980
worker.c contains all other functions, and i tracked down which global variables are used in which file and marked them accordingly with static (or not). No functional change, just the basis of further work. ok florian@, deraadt@