Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-08-30 | summary() is no longer called from a signal handler, so it can use | Theo de Raadt | |
stdio and does not need the workarounds. ok florian millert | |||
2016-08-30 | Avoid calling summary() from a signal handler. This will allow us | Todd C. Miller | |
to go back to using stdio there. OK florian@ deraadt@ | |||
2016-08-30 | Make sure to not decrease packet size when running with -v. | Florian Obser | |
OK benno | |||
2016-08-30 | usage() is __dead. | Florian Obser | |
While here remove one useless call to usage() that's covered by the very next line. | |||
2016-08-30 | Add destination IP to MAC, reduces difference to ping(8). | Florian Obser | |
2016-03-03 | ping(8) and ping6(8) use different types for packet counters. In | Florian Obser | |
preparation of a merge just use int64_t and be done with it. OK deraadt | |||
2016-01-30 | ping, ping6: corrects -E (audible beep when no packet is received before the | Sebastien Marie | |
next packet is transmitted) regression with help and ok florian@ | |||
2016-01-28 | malloc(3) returns a pointer, so check against NULL, not 0. (No functional ↵ | Gleydson Soares | |
change) OK millert@ | |||
2015-11-29 | Reimplement source address selection. Inspired by the previous | Florian Obser | |
traceroute / traceroute6 merge. Next step in unification. OK benno@ | |||
2015-11-29 | Doubles are not reals. Imprecision might lead to trying to | Florian Obser | |
calculate square root of a negative number. Just use 0 in this case. Pointed out by and fix from Nathanael Rensen ( nathanael AT list DOT polymorpheus DOT com ), thanks! OK deraadt@ (Funnily this bug was in ping6 for many years, only discovered once I synced ping to the ping6 implementation recently.) | |||
2015-11-10 | Reduce diff between ping and ping6. | Florian Obser | |
- increase MAX_DUP_CHK in ping to ping6' value, we should have enough ram these days. - sync -l, -s and -V option handling - rename MAXDATALEN to MAXPAYLOAD in ping6 no (intendet) functional change. OK benno@ | |||
2015-11-05 | Whitespace, reduce diff to ping. | Florian Obser | |
2015-11-05 | Cleanup includes. | Florian Obser | |
guenther@ and kettenis@ confirmed that while not strictly necessary on OpenBSD we should include both time.h and sys/time.h. | |||
2015-11-04 | replace setbuf with setvbuf, from Frederic Nowak | Ted Unangst | |
2015-11-04 | Simplify packet option handling since we are only setting one option | Florian Obser | |
these days. | |||
2015-11-04 | dead store; pointed out by llvm | Florian Obser | |
2015-10-25 | pr_bitrange() is unused, nuke it. | Florian Obser | |
2015-10-25 | remove prototype for removed pingerlen function. | Florian Obser | |
2015-10-25 | IPV6_NEXTHOP is gone, remove -g option which used this. | Florian Obser | |
kill it mpi@ | |||
2015-10-25 | tweak previous; | Jason McIntyre | |
2015-10-25 | Implement ping(8)'s -L option in ping6: | Florian Obser | |
Disable the loopback, so the transmitting host doesn't see the ICMP requests. For multicast pings. OK benno@ | |||
2015-10-24 | Inline trivial myechoreply function in the one place it's used; like | Florian Obser | |
ping(8). | |||
2015-10-24 | nonce is unused. | Florian Obser | |
2015-10-24 | Sync ping6 output to ping. ping has been around for longer and so | Florian Obser | |
defines the canonical output format. Having different output is getting in the way of a merge. This moves the output of the src address to the -v option. With the overly complicated IPv6 address selection it's sometimes usefull to have this information. OK benno@, sthen@ can live with it. | |||
2015-10-17 | make usage() less horrible | Florian Obser | |
2015-10-17 | Implement -w maxwait now that the -w flag is free in ping6. Same | Florian Obser | |
behaviour as ping(8). | |||
2015-10-17 | move -V option before -v and remove one spurious newline, now in sync | Florian Obser | |
with ping. No object change. | |||
2015-10-17 | Remove left over -N and -w. Adapt wording for the link local example. | Florian Obser | |
Pointed out by, input & OK jmc | |||
2015-10-16 | Remove RFC 4620 support. The RFC is experimental and this code plain | Florian Obser | |
needs killing before the installed user base excedes 6. Minus 745 LOC. This is getting in the way of a merge since it has it's tentacles all over the place. OK jca@, deraadt@ | |||
2015-10-16 | No longer talk about -b flag, it's gone. | Florian Obser | |
2015-10-16 | Move -t and -w functionality to -a. Both flags are in the way for a | Florian Obser | |
merge with ping(8). Let's see if we can shove every weird and special v6 functionality into -a. suggested by and OK sthen@ | |||
2015-10-14 | To specify a source address ping uses -I while ping6 uses -S. Switch | Florian Obser | |
ping6 -I to the ping-alike semantics. sthen@ thinks this is OK | |||
2015-10-13 | Remove -b flag and let ping6 set the socket buffer size automatically | Florian Obser | |
like ping. Suggested by deraadt@, OK dlg | |||
2015-10-12 | deprecate & remove -W option; ok florian | Theo de Raadt | |
2015-10-09 | Change all tame callers to namechange to pledge(2). | Theo de Raadt | |
2015-10-04 | Repair tame() error check to be == -1 | Theo de Raadt | |
2015-10-03 | ping6 is a setuid root priv-drop which holds a sockraw. we can tame it | Theo de Raadt | |
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. ping6 is a bit trickier than ping, because it uses recvmsg() with CMSG types of IPV6_HOPOPTS, IPV6_DSTOPTS, IPV6_RTHDRDSTOPTS, IPV6_RTHDR. there is further work to do in the kernel, with claudio! work with florian a while back, which involved hoisting lots of initization code upwards. ok doug | |||
2015-09-30 | remove old self-kill() in the signal handler. must predate the | Theo de Raadt | |
signal handler audit. found while adapting ping6 to tame. ok kettenis | |||
2015-09-16 | Some cleanup from dhill AT mindcry.org, thanks! | Florian Obser | |
- remove unused defines - use socklen_t for getnameinfo no object change | |||
2015-09-12 | typo that breaks the build | Christian Weisgerber | |
2015-09-12 | Avoid out of boundary access on invalid or short packet reads. | Tobias Stoeckmann | |
ok florian@ | |||
2015-09-09 | Cleanup the iov handling in ping6. Use the global iov instead of a local | Claudio Jeker | |
version which is then added to a global struct msghdr. Issue found by Michael McConville. OK florian@ tobias@ | |||
2015-09-01 | Display the correct source address when using a non-default routing | Florian Obser | |
table. Problem reported on bugs@ and diff from phil AT unita.com.au, thanks! OK phessler | |||
2015-08-31 | remove unused define; no binary change | Florian Obser | |
2015-08-31 | Forgot to commit the man page bits when removing RH0 support. | Florian Obser | |
2015-08-30 | Clean up getaddrinfo(3) calls to make them look like the canonical | Florian Obser | |
example from the man page. While there was nothing wrong this pattern makes it easier to figure that out. While here be more paranoid how much we memcpy(3). Looks clean to deraadt@ | |||
2015-08-30 | Remove RH0 support, it was deprecated in RFC 5095 some time ago and | Florian Obser | |
you couldn't send packets anyway since our stack drops them unconditionally. reasoning is sound to deraadt@, OK mpi@ | |||
2015-05-02 | Use IPV6_MAXHLIM instead of 255; pointed out by bluhm@ | Florian Obser | |
No object change. | |||
2015-05-02 | Use strtonum() when parsing argument list, as ping(8) does. Give | Kenneth R Westerback | |
or take a cast. Tweak error messages to also be consistant with ping(8). Change lower bound of '-h' to 0 from -1 at the request of florian@. Tweaks and suggestions from, ok florian@ | |||
2015-04-20 | port src/sbin/ping/ping.c r1.119 and r1.121 to ping6: | David Gwynne | |
> add a mac to the timestamp payload and calculate it with siphash. > > this lets us have some confidence that the timestamp hasnt been > damaged or tampered with in transit. > > discussed with jp aumasson > ok florian@ |