From owner-freebsd-current@freebsd.org Mon Nov 16 20:54:42 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10FFDA306F0 for ; Mon, 16 Nov 2015 20:54:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE78413DF; Mon, 16 Nov 2015 20:54:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iouu10 with SMTP id u10so167093161iou.0; Mon, 16 Nov 2015 12:54:41 -0800 (PST) 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 :cc:content-type; bh=x7tMeTzHae5k7cpXvvNVvj86uX5GVusM0T72ejU0ElQ=; b=ZTiwba6QFB0Tk9ipvgRQ5O/23PtXERK4UcsHXWrgdi3pA/ebspsYEgy7MQorUIPy0v 9t6oqq2CrjTtJR4wlDwZW312SuR5sVryBekVXrFaaNQqBM8Cy9APnHt91i9uMh/LaN5g emgoab/QvossuOVBNFeeR/kcY/HswbDR8c5y9p7/VWeq3ls6WF90VDeUucDpGt+COdtZ aEX/mMIwSm5BIyqztvyi6zv5rpwqt+xSeyJeAgXNQdVSWznsKWxAhLzo3Mv74s4JGZza mIEWAE9R8/SjRPSKhcLyK22YvrR9tMlpFEjHaNR7JA7Gf+g0/CXNK9Gn7YwhacJTfxJ/ yNbg== MIME-Version: 1.0 X-Received: by 10.107.11.147 with SMTP id 19mr8979463iol.165.1447707281328; Mon, 16 Nov 2015 12:54:41 -0800 (PST) Received: by 10.36.217.196 with HTTP; Mon, 16 Nov 2015 12:54:41 -0800 (PST) In-Reply-To: <2CC95A67-50CB-4376-B6F1-7304DD8CA90E@rdsor.ro> References: <0650CA79-5711-44BF-AC3F-0C5C5B6E5BD9@rdsor.ro> <5648C89C.2050206@freebsd.org> <564A0D9D.1060400@freebsd.org> <7F8C680E-5718-4AE5-BEB6-50D4659EBDB4@rdsor.ro> <2CC95A67-50CB-4376-B6F1-7304DD8CA90E@rdsor.ro> Date: Mon, 16 Nov 2015 12:54:41 -0800 Message-ID: Subject: Re: libXO-ification - Why - and is it a symptom of deeper issues? From: Adrian Chadd To: Dan Partelly Cc: Allan Jude , freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2015 20:54:42 -0000 On 16 November 2015 at 12:30, Dan Partelly wrote: > Hi Adrian, > > > No, no, none wasn't unwelcoming or cold. Thanks for your responses > >> I plan on attacking the binary code reuse a bit by turning the >> net80211 bits of ifconfig into a library and starting to use it from >> other places > > This is great news. ifconfig is an obvious target. I personally am more interested in the part dealing > with ethernet from ifconfig, but if you are willing to help/mentor and direct the effort maybe we can arrange something. > How do you propose to proceed from here ? I'm goign to start by taking the net80211 regdomain code out of ifconfig and putting it in a library. There are some ioctl calls too to manipulate the net80211 state and query it for things like scan list, etc. I'm also going to try and pull those out into a library. If you'd like to tackle something like this in ifconfig, I'd start by say doing the same with software bridge support. It should be relatively self contained and be a good target for turning into a library. -a