From owner-freebsd-current Tue Jun 27 20:17:07 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA16659 for current-outgoing; Tue, 27 Jun 1995 20:17:07 -0700 Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id UAA16650 for ; Tue, 27 Jun 1995 20:17:04 -0700 Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <15492(2)>; Tue, 27 Jun 1995 20:16:21 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <49860>; Tue, 27 Jun 1995 20:16:11 -0700 To: roberto@blaise.ibp.fr (Ollivier Robert) cc: wollman@freefall.cdrom.com (Garrett A. Wollman), current@freebsd.org Subject: Re: traceroute with LSRR options In-reply-to: Your message of "Thu, 22 Jun 95 02:41:22 PDT." <199506220941.LAA02391@blaise.ibp.fr> Date: Tue, 27 Jun 1995 20:16:05 PDT From: Bill Fenner Message-Id: <95Jun27.201611pdt.49860@crevenia.parc.xerox.com> Sender: current-owner@freebsd.org Precedence: bulk In message <199506220941.LAA02391@blaise.ibp.fr> you write: >Speaking of traceroute, it would be nice to have the version >that support loose sorce routing, the "-g" option... I attempted to port Matt Mathis's original LSRR patches to our traceroute. It turns out that Matt's code assumes that, even if you set IP_HDRINCL, the kernel will include any options you set with IP_OPTIONS. Our rip_output, however, says: if ((inp->inp_flags & INP_HDRINCL) == 0) { ... opts = inp->inp_options; } else { ... opts = NULL; ... } Is there any reason not to allow the insertion of options with the IP_OPTIONS setsockopt(), even if the user has set IP_HDRINCL? (I know that Stevens says the convention is that if you set IP_HDRINCL then you really mean IP_HDRINCL. But I also think that if you set IP_OPTIONS then you really mean IP_OPTIONS...) Bill