freebsd-src/sbin/ping
Matthew N. Dodd d829c3dfee - Make -M mask and -M time exclusive.
- Correct some problems with packet construction.

  +--------+------------+----------+-------------+---------+
  |        |            |          |             |         |
  | IP Hdr | MINICMPLEN | phdr_len | TIMEVAL_LEN | payload |
  |        |            |          |             |         |
  +--------+------------+----------+-------------+---------+
  |        |                       |                       |
  |<- IP ->|<------- ICMP -------->|<------ datalen ------>|

My previous changes tried to mess around with 'datalen' instead of
modifying 'phdr_len'.

I'm including this nice ASCII diagram (from Maxim) to further clarify things
in CVS history.

Submitted by:	 Maxim Konovalov <maxim@macomnet.ru>
2003-03-24 23:48:36 +00:00
..
Makefile Update ping to be WARNS=2 compliant. 2003-03-05 22:42:03 +00:00
ping.8 Fix and sync SYNOPSIS and usage(). 2003-03-11 20:12:39 +00:00
ping.c - Make -M mask and -M time exclusive. 2003-03-24 23:48:36 +00:00