From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XrIY6-000309-Ec for mharc-grub-devel@gnu.org; Wed, 19 Nov 2014 22:36:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrIY0-000300-3w for grub-devel@gnu.org; Wed, 19 Nov 2014 22:36:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrIXv-0008Cw-A1 for grub-devel@gnu.org; Wed, 19 Nov 2014 22:36:44 -0500 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:41635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrIXu-0008Cs-UR for grub-devel@gnu.org; Wed, 19 Nov 2014 22:36:39 -0500 Received: by mail-la0-f54.google.com with SMTP id gf13so1681215lab.41 for ; Wed, 19 Nov 2014 19:36:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=CHikKbnnomplGxvTxD66R+gRdceusRYcjTQx3Dxy+A0=; b=1A5+GaL77uhJkL+dcJsEf2XQO79SHFZICyvoUuYeDDn4UGkJ0CuPr6tCdpAkH/41jo oJw1BDUTixJcV5Esc8CrsUEaWNGQiIgdt0eCHlQHD8+a/990utesL7dBtTCWTRuhn+zk H3fB9Ze6gIekqBOxcPofjgRZuV0P+1BwNZJhK1MAVi0XR3T2UehO30UE8R2+AevGmECq x7nkpd1RQwAkAqds9IAgQca83YaEtV81iIFVhpQm/BjF5agNDZ1JsNCbMUHmt4rU44qX 3Mzvmmsu3Ugbv1RDu4noyhVoFlJYdzlLLPugWxEHUTW0NMhBdp9/frWzAiRAs7jqGdTd Di4Q== X-Received: by 10.152.8.170 with SMTP id s10mr8751719laa.56.1416454597214; Wed, 19 Nov 2014 19:36:37 -0800 (PST) Received: from opensuse.site (ppp91-76-139-38.pppoe.mtu-net.ru. [91.76.139.38]) by mx.google.com with ESMTPSA id pd3sm273461lbb.28.2014.11.19.19.36.35 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 19:36:36 -0800 (PST) Date: Thu, 20 Nov 2014 06:36:33 +0300 From: Andrei Borzenkov To: Alan Perry Subject: Re: HTTP with other ports Message-ID: <20141120063633.70406a9b@opensuse.site> In-Reply-To: <546D0A39.4010902@snowmoose.com> References: <20141119200959.5c1c05db@opensuse.site> <546CD2E4.60305@snowmoose.com> <20141119212254.28eea889@opensuse.site> <546D0A39.4010902@snowmoose.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::236 Cc: grub-devel@gnu.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2014 03:36:49 -0000 =D0=92 Wed, 19 Nov 2014 13:23:05 -0800 Alan Perry =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 11/19/14, 10:22 AM, Andrei Borzenkov wrote: > > =D0=92 Wed, 19 Nov 2014 09:27:00 -0800 > > Alan Perry =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > > >> On 11/19/14, 9:09 AM, Andrei Borzenkov wrote: > >>> =D0=92 Wed, 19 Nov 2014 08:54:24 -0800 > >>> Alan Perry =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >>> > >>>> Has anyone come up with a general way to change the port number in t= he http module? Right now it is hard coded to be 80, but it is very common = to do HTTP over another port number. > >>>> > >>>> I was thinking about extending the device name syntax for network de= vices > >>> Does protocol,server:port conflict with anything? (http,server:1234)/= foo > >> I separated the server from the port with a comma > > Do you have implementation? Then send a patch for review. >=20 > It is more like prototype code and I need to clean it up. >=20 > > > >> because that is how > >> the protocol is separated from server. I don't think either syntax > >> conflicts with anything else, > > Actually ':' does conflict with IPv6. > > > >> but I haven't been working with enough > >> different parts of GRUB2 to really know. > >> > >> In my previous note, I mentioned a command for setting the default > >> server, but I was really talking about the net_default_server env > >> variable. Thinking about it, an alternate default port doesn't make > >> sense because you really need to know its protocol as well. Maybe a > >> default protocol or protocol/port env variable that includes both allo= ws > >> the alternate port for the protocol to be specified? > >> > > Does not > > > > set root=3Dprotocol,server,[?port] > > > > do exactly that? >=20 > Yes, it can be done that way. But I was wondering if there needs to be=20 > an protocol/port variant of net_default_server. Or do I not understand=20 > the intended use of net_default_server? >=20 Initially grub did not support (proto,server) syntax for net devices so default_server was the only way to change server. Today it is mostly to record result of PXE auto configuration. Set support is there for legacy usage, but I do not see any need to extend it. > alan >=20 > > > >>>> and/or adding a 'default port' (with a command to set it) to go with > >>> default server. I did an implementation that works for my needs but > >>> don't think it is a good general purpose implementation. > >>>> Has anyone else done work here or have ideas for using alternate por= t numbers with HTTP? > >>>> > >>>> alan > >>>> > >>>> >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel