From owner-freebsd-mono@FreeBSD.ORG Sun Nov 23 02:33:59 2014 Return-Path: Delivered-To: mono@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB59C69C for ; Sun, 23 Nov 2014 02:33:59 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B94AE640 for ; Sun, 23 Nov 2014 02:33:59 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAN2XxvW003738 for ; Sun, 23 Nov 2014 02:33:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: mono@FreeBSD.org Subject: [Bug 194660] lang/mono Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local Date: Sun, 23 Nov 2014 02:33:59 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: woodsb02@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mono@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2014 02:34:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194660 --- Comment #12 from Ben Woods --- Created attachment 149739 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149739&action=edit test.cs: Test C# program to print list of network interfaces and associated gateways to console This test program shows the missing functionality when run on FreeBSD or Mac OSX. For example, when run on my Macbook Pro: $ mcs test.cs $ mono test.exe Gateways lo0 gif0 stf0 en0 en1 fw0 p2p0 $ mono --trace=N:nothing test.exe Gateways [0xa0d031d4:] EXCEPTION handling: System.IO.DirectoryNotFoundException: Could not find a part of the path "/proc/net/route". lo0 [0xa0d031d4:] EXCEPTION handling: System.IO.DirectoryNotFoundException: Could not find a part of the path "/proc/net/route". gif0 [0xa0d031d4:] EXCEPTION handling: System.IO.DirectoryNotFoundException: Could not find a part of the path "/proc/net/route". stf0 [0xa0d031d4:] EXCEPTION handling: System.IO.DirectoryNotFoundException: Could not find a part of the path "/proc/net/route". en0 [0xa0d031d4:] EXCEPTION handling: System.IO.DirectoryNotFoundException: Could not find a part of the path "/proc/net/route". en1 [0xa0d031d4:] EXCEPTION handling: System.IO.DirectoryNotFoundException: Could not find a part of the path "/proc/net/route". fw0 [0xa0d031d4:] EXCEPTION handling: System.IO.DirectoryNotFoundException: Could not find a part of the path "/proc/net/route". p2p0 Whilst the expected output would be: $ mcs test.cs $ mono test.exe Gateways lo0 Gateway Address ......................... : 127.0.0.1 gif0 stf0 en0 en1 Gateway Address ......................... : 192.168.1.1 fw0 p2p0 -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.