From owner-freebsd-mono@FreeBSD.ORG Tue Sep 23 23:02:38 2014 Return-Path: Delivered-To: freebsd-mono@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6CB0D302 for ; Tue, 23 Sep 2014 23:02:38 +0000 (UTC) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (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 06C8D8B0 for ; Tue, 23 Sep 2014 23:02:37 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id y10so5490394wgg.6 for ; Tue, 23 Sep 2014 16:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pRJcrLxHrVg9XSAypaSMh86o32Ja0jLFUWVvBeBzXlE=; b=hwYGtHp/sUbRKak4sWMY5Jrs1PizU5luzKG64ozZIX69lthBDNUYdMglZdMZXKStaP W74ymx6ZYy3Qyod0vhGBKpSn+VBenn7Gsy7KHne9Tqh459z+wmOY8Lyky+7i7c9QoTvN ZTSuqJTyAy7X7ysENKvAsa0eI1F34BGHl9E8eHeMfHcb7t4r5tw2x5hPV6uaNCHJfaFl 79uMpKAm9z1EBIefncXZIwdCl4PRcCT4PO9LSfuC9LWRAG/8Gk2cUhSqs09hgvND5fCX ZHR3GobpwC+Zl0iwfh8AW0FFUJOD5QCkevtDk2GBoNMhgDH3EqBEpw01e4KBa/flnGXR uPZQ== MIME-Version: 1.0 X-Received: by 10.194.120.101 with SMTP id lb5mr3227531wjb.84.1411513355995; Tue, 23 Sep 2014 16:02:35 -0700 (PDT) Received: by 10.194.190.78 with HTTP; Tue, 23 Sep 2014 16:02:35 -0700 (PDT) In-Reply-To: <20140923225644.GA73505@FreeBSD.org> References: <20140923225644.GA73505@FreeBSD.org> Date: Wed, 24 Sep 2014 07:02:35 +0800 Message-ID: Subject: Re: Mono expecting /proc/net/route From: Ben Woods To: "freebsd-mono@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Tue, 23 Sep 2014 23:02:38 -0000 Yes, that's what my specific problem was. I will see if I can generate a patch... I'm just wondering what it would look like if it was adopted into the upstream code (There is a separate set of functions for Mac IP addressing, should there be a separate set of BSD functions?). On Wednesday, September 24, 2014, Romain Tarti=C3=A8re wrote: > Are you refering to this? > > https://github.com/mono/mono/blob/effa4c07ba850bedbe1ff54b2a5df281c058ebc= b/mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs#L= 77 > > AFAICR, the information should be available from a sysctl (what > netstat(8) does) or from a PF_ROUTE socket (what route(8) does), but it > may be easier to parse the output of netstat(8) instead of > reimplementing parts of netstat(8) or route(8) in managed code=E2=80=A6 > > If you have a patch, feel free to share it here so that I can include it > ;-) > > > -- > Romain Tarti=C3=A8re http://people.FreeBSD.org/~rom= ain/ > pgp: 8234 9A78 E7C0 B807 0B59 80FF BA4D 1D95 5112 336F (ID: 0x5112336F) > (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciat= ed) > --=20 -- From: Benjamin Woods woodsb02@gmail.com