From owner-freebsd-net@freebsd.org Mon Apr 11 07:16:01 2016 Return-Path: Delivered-To: freebsd-net@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 3594CB0B273 for ; Mon, 11 Apr 2016 07:16:01 +0000 (UTC) (envelope-from dan_partelly@rdsor.ro) Received: from mail.rdsor.ro (mail.rdsor.ro [193.231.238.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9BF6A16D2 for ; Mon, 11 Apr 2016 07:16:00 +0000 (UTC) (envelope-from dan_partelly@rdsor.ro) Received: from [192.168.1.155] (unknown [86.125.33.32]) by mail.rdsor.ro (Postfix) with ESMTP id 00944DC10F; Mon, 11 Apr 2016 10:06:36 +0300 (EEST) Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: libifconfig: Initial code available, looking for feedback From: Dan Partelly In-Reply-To: Date: Mon, 11 Apr 2016 10:06:36 +0300 Cc: freebsd-net@freebsd.org Message-Id: References: To: Marie Helene Kvello-Aune X-Mailer: Apple Mail (2.3112) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.21 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 Apr 2016 07:16:01 -0000 Im interested in this work, I believe having libraries to interface = with various FreeSBD subsystems=20 would be a very valuable addition to FreeBSD.=20 A first comment: =E2=80=94 from Github descrition -- "'m currently working on a library called 'libifconfig' which will = provide a C API to do the actual work that /sbin/ifconfig currently does, except that of lib80211.=E2=80=9D ------------------ It is my opinion that this shouldn't be a monolitical libary, and at = least two libraries should be created: 1. layer 2 access lib (universal ) 2. protocol level libraries (initially IP suite configuration would = be more than enough) Also, it may (or may very well be a stupid ideea, didnt thinked it = throughly) to expose such config APIs=20 using Nvlists. It makes using the API extremely easy. See nv(3) . > On 09 Apr 2016, at 16:59, Marie Helene Kvello-Aune = wrote: >=20 > d appreciate feedback, in particular on the API design > and usage, and especially on how it communicates error state to the > application. >=20 > Expect the API to break frequently/often for the time being