From owner-freebsd-net@FreeBSD.ORG Mon Feb 11 02:54:27 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0EFBEA78 for ; Mon, 11 Feb 2013 02:54:27 +0000 (UTC) (envelope-from rbsimpsont@gmail.com) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx1.freebsd.org (Postfix) with ESMTP id B2B1E175 for ; Mon, 11 Feb 2013 02:54:26 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id fw7so3537267vcb.34 for ; Sun, 10 Feb 2013 18:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=QD1yN2RTVPrp2I0Eag2bZOns/3g0fzZol2UaYNMgC04=; b=RF/XAoklA+kliP9ksmB+IxSUuygHTx4ZaZ1XmnyVTo2O8Yay1EMmuJWuL18KOzFa1l CGDO7Bg3UW9C96pCLDlsAghLdJStJ7qaFXgDJxfzk9RbCMkLaA6TMMDiSMjP9YA3bhF8 i3cYuGvuUFK2xLiKtUlG9uln1e3xULWOKiZ4jWHe79RpJB5ZCwnUoEhh5owGEmT5xHA4 gOHQ+jWM6i4ues/wcA+DB6yIKBY+fa1Og+LLFeaM2AaDGNSgAoX6iaEe5RoTUFDNEKux EUdF3VOBAGRb4ndABCoUBCObQtuTiatnc1mzW8HH6Dl1nEZRgMcq2thP6PduwCGV24hM gNfw== MIME-Version: 1.0 X-Received: by 10.52.77.40 with SMTP id p8mr14341805vdw.98.1360551259808; Sun, 10 Feb 2013 18:54:19 -0800 (PST) Received: by 10.220.126.200 with HTTP; Sun, 10 Feb 2013 18:54:19 -0800 (PST) Date: Sun, 10 Feb 2013 21:54:19 -0500 Message-ID: Subject: Multi-Path Routing - rn_match function - FreeBSD 9.0 From: Robert Simpson To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 02:54:27 -0000 Hey Guys, I am new to FreeBSD and currently browsing the routing code to understand how routing works. I came across RADIX_MPATH which adds support for MPath. But in the rn_match function which searches for a matching route, there is no logic to handle the Multi-path routing. i.e. always the first matched route will be selected even if multiple paths exists to the same destination. Am I missing something here or is this a bug. Rob