History log of /freebsd-10-stable/sbin/ping6/ping6.c
Revision Date Author Comments
# 287328 31-Aug-2015 delphij

MFC r286834:

Use arc4random_buf(). While there, unifdef the code for !HAVE_ARC4RANDOM.


# 285820 23-Jul-2015 hrs

MFC r271910, r273211:

* Add -x waittime and -X timeout options for feature parity. These are
equivalent to -W and -t options of ping(8). Different letters are used
because both have already been used for another purposes in ping6(8).

* Fix a problem that reply packets are not received when -i T option is set
and (T < RTT).

- Use select(2) for timeout instead of interval timer. Remove poll(2) support.
- Use sigaction(2) instead of signal(3).
- Exit in SIGINT handler when two signals are received and doing reverse DNS
lookup as ping(8) does.
- Remove redundant variables used for getaddrinfo(3).

Approved by: re (gjb)


# 272871 09-Oct-2014 hrs

MFC r271909:
Revert changes in r269180. It could cause -c N option to enter an
infinite loop if no reply packet is received.


# 269800 11-Aug-2014 delphij

MFC r269180:

When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR: bin/151023
Submitted by: tjmao at tjmao.net


# 287328 31-Aug-2015 delphij

MFC r286834:

Use arc4random_buf(). While there, unifdef the code for !HAVE_ARC4RANDOM.


# 285820 23-Jul-2015 hrs

MFC r271910, r273211:

* Add -x waittime and -X timeout options for feature parity. These are
equivalent to -W and -t options of ping(8). Different letters are used
because both have already been used for another purposes in ping6(8).

* Fix a problem that reply packets are not received when -i T option is set
and (T < RTT).

- Use select(2) for timeout instead of interval timer. Remove poll(2) support.
- Use sigaction(2) instead of signal(3).
- Exit in SIGINT handler when two signals are received and doing reverse DNS
lookup as ping(8) does.
- Remove redundant variables used for getaddrinfo(3).

Approved by: re (gjb)


# 272871 09-Oct-2014 hrs

MFC r271909:
Revert changes in r269180. It could cause -c N option to enter an
infinite loop if no reply packet is received.


# 269800 11-Aug-2014 delphij

MFC r269180:

When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR: bin/151023
Submitted by: tjmao at tjmao.net