]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Make -M mask and -M time exclusive.
authorMatthew N. Dodd <mdodd@FreeBSD.org>
Mon, 24 Mar 2003 23:48:36 +0000 (23:48 +0000)
committerMatthew N. Dodd <mdodd@FreeBSD.org>
Mon, 24 Mar 2003 23:48:36 +0000 (23:48 +0000)
commitd829c3dfeea2cdb6da513864c71dc7547415a6fd
treed6a4f186804572e4a962344c57142637ca4b634f
parent0d98179d635419f20eae0c5ac6bdbecd05f1701a
- 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>
sbin/ping/ping.c