From owner-cvs-src Mon Mar 24 15:48:40 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E6C037B401; Mon, 24 Mar 2003 15:48:37 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F78743FA3; Mon, 24 Mar 2003 15:48:37 -0800 (PST) (envelope-from mdodd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h2ONma0U064563; Mon, 24 Mar 2003 15:48:36 -0800 (PST) (envelope-from mdodd@repoman.freebsd.org) Received: (from mdodd@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2ONmaFf064562; Mon, 24 Mar 2003 15:48:36 -0800 (PST) Message-Id: <200303242348.h2ONmaFf064562@repoman.freebsd.org> From: "Matthew N. Dodd" Date: Mon, 24 Mar 2003 15:48:36 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/ping ping.c X-FreeBSD-CVS-Branch: HEAD X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mdodd 2003/03/24 15:48:36 PST FreeBSD src repository Modified files: sbin/ping ping.c Log: - 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 Revision Changes Path 1.90 +21 -22 src/sbin/ping/ping.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message