From owner-freebsd-net@FreeBSD.ORG Thu Mar 2 03:54:48 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A39CF16A420; Thu, 2 Mar 2006 03:54:48 +0000 (GMT) (envelope-from darren.pilgrim@bitfreak.org) Received: from mail.bitfreak.org (mail.bitfreak.org [65.75.198.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60EE243D55; Thu, 2 Mar 2006 03:54:48 +0000 (GMT) (envelope-from darren.pilgrim@bitfreak.org) Received: from smiley (mail.bitfreak.org [65.75.198.146]) by mail.bitfreak.org (Postfix) with ESMTP id 8D5B119F2C; Wed, 1 Mar 2006 19:54:44 -0800 (PST) From: "Darren Pilgrim" To: "'S.I'" Date: Wed, 1 Mar 2006 19:54:36 -0800 Message-ID: <002201c63dad$09d18380$672a15ac@smiley> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <20060301105332.9f9a0b41.piston@otel.net> Importance: Normal X-Mailman-Approved-At: Thu, 02 Mar 2006 04:13:26 +0000 Cc: freebsd-questions@freebsd.org Subject: RE: ipprecedence ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2006 03:54:48 -0000 [Redirected to -questions from -net.] From: S.I > > How Can I set ipprecedence flag on FreeBSD? Precendence bits are part of the ip_tos bits in FreeBSD inet sockets. The ip(4) man page gives an example of using setsockopt(2) to set the ToS bits. See src/sys/netinet/ip.h (v1.29) lines 76 to 99 for a set of named precedence and ToS options (you don't have to use them, but it's recommended).