From owner-freebsd-current@FreeBSD.ORG Fri Mar 11 13:25:42 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D86D106564A; Fri, 11 Mar 2011 13:25:42 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id C30358FC0C; Fri, 11 Mar 2011 13:25:41 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 601A525D386D; Fri, 11 Mar 2011 13:15:05 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 7723F159A849; Fri, 11 Mar 2011 13:15:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id Q92XUdKwoFNN; Fri, 11 Mar 2011 13:15:03 +0000 (UTC) Received: by mail.sbone.de (Postfix, from userid 66) id E8812159A79E; Fri, 11 Mar 2011 13:15:02 +0000 (UTC) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 0C4DC444A12; Fri, 11 Mar 2011 13:14:51 +0000 (UTC) Date: Fri, 11 Mar 2011 13:14:51 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Hajimu UMEMOTO In-Reply-To: Message-ID: <20110311130952.B3039@maildrop.int.zabbadoz.net> References: <20110220181713.C13400@maildrop.int.zabbadoz.net> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: arch@FreeBSD.org, FreeBSD current mailing list Subject: Re: CFR: importing openresolv X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 11 Mar 2011 13:25:42 -0000 On Tue, 22 Feb 2011, Hajimu UMEMOTO wrote: Hi, >>>>>> On Tue, 22 Feb 2011 01:50:17 +0900 >>>>>> Hajimu UMEMOTO said: > > bz> Do you have an updated patch for 3.4.1 or 3.3.6? I'd like to help to > bz> you get it in for 9.0-R. I wouldn't even mind if some ports would > bz> conflict with it for a while not making the situation any worse than > bz> it is these days. > > ume> I didn't notice that openresolv was updated. I'll soon make a new > ume> diff for 3.4.1. > ume> hrs@ noticed that ppp(8) and uhsoctl(8) in our base tree touch > ume> /etc/resolv.conf. We need to change them to use resovlconf(8). > > I've updated a patch for 3.4.1: > > http://www.imasy.or.jp/~ume/FreeBSD/openresolv-20110222.diff.gz > > If you have the previous patch applied, make sure to remove > src/contrib/openresolv and src/sbin/resolvconf before applying new > one. I am still undecided if it's doing what I want it to do;) I am also undecided on the scripts in /libexec/resolvconf/, especially the ports-related ones. For dhclient-script I have found that, though not entirely right I needed + if [ -s $tmpres ]; then /sbin/resolvconf -a ${interface} < $tmpres + fi as it killed my resovl.conf otherwise with the empty input; obviously I should have my defaults in resolvconf.conf probably. We'll also need a man page describing the basics. I would love if there was a simple C interface to use rather than having to go and handle it independetly everywhere; a tiny lib just wrapping the basic calls. Not sure how Linux fixed that? I'll continue to experiment with it in various scenarios and I think it's the right way to go. /bz -- Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family.