Received: from list by lists.gnu.org with archive (Exim 4.71) id 1c7RxO-0000az-Pk for mharc-grub-devel@gnu.org; Thu, 17 Nov 2016 14:02:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7RxL-0000aq-WE for grub-devel@gnu.org; Thu, 17 Nov 2016 14:02:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7RxI-0006nU-SR for grub-devel@gnu.org; Thu, 17 Nov 2016 14:02:44 -0500 Received: from boksu.net-space.pl ([185.15.1.105]:35906) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1c7RxI-0006nC-HE for grub-devel@gnu.org; Thu, 17 Nov 2016 14:02:40 -0500 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1669209AbcKQTCe (ORCPT ); Thu, 17 Nov 2016 20:02:34 +0100 Date: Thu, 17 Nov 2016 20:02:34 +0100 From: Daniel Kiper To: arvidjaar@gmail.com, phcoder@gmail.com, grub-devel@gnu.org Cc: nikunj@linux.vnet.ibm.com Subject: Re: [2.02][PATCH] bootp: export server IP as environment variable Message-ID: <20161117190234.GA7245@router-fw-old.local.net-space.pl> References: <1458322920-5131-1-git-send-email-arvidjaar@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458322920-5131-1-git-send-email-arvidjaar@gmail.com> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.15.1.105 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2016 19:02:45 -0000 On Fri, Mar 18, 2016 at 08:42:00PM +0300, Andrei Borzenkov wrote: > Network boot autoconfiguration sets default server to next server IP > (siaddr) from BOOTP/DHCP reply, but manual configuration using net_bootp > exports only server name. Unfortunately semantic of server name is not > clearly defined. BOOTP RFC 951 defines it only for client request, and > DHCP RFC 1541 only mentions it, without any implied usage. It looks like > this field is mostly empty in server replies. > > Export next server IP as net__server_ip variable. This allows > grub configuration script to set $root/$prefix based on information obtained > by net_bootp. > > Reported and tested by: Nikunj A Dadhania > Cc: nikunj@linux.vnet.ibm.com > > --- > > @Nikunj: cosmetic changes comparing with version you tested - no need to > allocate small buffer dynamically. > > @Vladimir: I think this is useful; I will update networking documentation > in followup patch. Vladimir, Andrei, could you take care of it? Daniel