From owner-freebsd-net@FreeBSD.ORG Sat Aug 23 05:54:04 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BB08489D; Sat, 23 Aug 2014 05:54:04 +0000 (UTC) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [IPv6:2607:f8b0:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 675643248; Sat, 23 Aug 2014 05:54:04 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id lf12so13124445vcb.40 for ; Fri, 22 Aug 2014 22:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=vcGGJbdhAvHyh7EmmSYCtHF1+ni7x0lyh5jpfonj7AA=; b=PPx8WBi8834A/psyJ2qR+gxU/4MeiJtqydoIB3jEhuubtDhncWXHcT06UwlUB7Wo9K w0A+PEw/CyAwTDrGegytqbO0otEDS4IOOuYaNAAqrMB8+4xasSuqPabt/hafLQ8JyQb3 kiINEmrR0r/hbtVZOTQ+ZI1PcQZ+gW1TcGbAc2pUePfBu5KH3RDo4GXo36PV2PwPeGV7 bcmHL36IBOI4vn1w6DuGKckBnog1r1+cFn5IT+1TgFSjToFKMzZserrqbSvhqwkDEnqP liBQvqwhZas0flh1ISVdlxxZZon9ao1byxZtqJKlUcalBrwYs/9+0Szds71jU15bmjZ2 ykVg== MIME-Version: 1.0 X-Received: by 10.220.116.196 with SMTP id n4mr7213606vcq.6.1408773243388; Fri, 22 Aug 2014 22:54:03 -0700 (PDT) Sender: ndenev@gmail.com Received: by 10.221.46.133 with HTTP; Fri, 22 Aug 2014 22:54:03 -0700 (PDT) In-Reply-To: References: Date: Sat, 23 Aug 2014 07:54:03 +0200 X-Google-Sender-Auth: TQR9d-6AYyUZO1atOrNk5ZBUcs0 Message-ID: Subject: Re: Set arbitrary protocol for route? From: Nikolay Denev To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Net , Josh Moore X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2014 05:54:04 -0000 On Sat, Aug 23, 2014 at 3:20 AM, Adrian Chadd wrote: > On 22 August 2014 15:39, Josh Moore wrote: >> I am trying to add a local route with an arbitrary protocol number. This is done with iproute2 in Linux by: >> >> ip route add to local $ip/32 dev eth0 proto $num >> >> How can I do this in FreeBSD 10? >> > > What's that supposed to do? > > > > -a > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" Unfortunately I don't think there is a direct equivalent for this on FreeBSD. This route protocol id on Linux allows let's say different routing daemons to install routes with it's own protocol ID, which can be used to select which one has priority. I think similar proposals sparked some discussions about is the kernel routing table a FIB or a RIB in the past. --Nikolay