From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aZ1lO-00036y-Dy for mharc-grub-devel@gnu.org; Thu, 25 Feb 2016 14:39:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ1lL-000360-Vp for grub-devel@gnu.org; Thu, 25 Feb 2016 14:39:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZ1lH-0002FL-QC for grub-devel@gnu.org; Thu, 25 Feb 2016 14:39:47 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:34717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ1lH-0002FH-IE for grub-devel@gnu.org; Thu, 25 Feb 2016 14:39:43 -0500 Received: by mail-lf0-x22e.google.com with SMTP id j78so39946607lfb.1 for ; Thu, 25 Feb 2016 11:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=5Zo8lO4aoVDqoeiX4LORY6ZNTGlRIyiLB655b500+GI=; b=zfDpYIekjQPcGSdn7AJfWICZUBJrI77LsRPKRrze324KeRALUraDDG/lG2oyXJD9We 8762T3czeETfFE2PTJJDKbnH6qCcCiaR526fuOV1FRE/bxpU2FCKbR5uZ0fRZHbn6Fsm 1RchvX8ItoT0pO/xpvefXtQ9hv5Psqqsb9x7YiDmAyPkIVu7d3AAAhXrJ4/YSTzdSMl5 DhAlvLJ+j20jks2UDGReB+f5mTXYNsSLK5eNFNnV81z6YM8XkzNTkPBGIbmT/4N6/E/Y 4d/Se/ABc7C+zTb1p5VxZ3oonZvuMEMpq0OCyvwiXJnrJJq1o8nfIY0hWObdPMmmAp13 5Jog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=5Zo8lO4aoVDqoeiX4LORY6ZNTGlRIyiLB655b500+GI=; b=XhL2O+gWr8370IDQKk5bHlowEOH6Nt763/H/TVEKfjcugvka6M7vdjwfGyUqmdlvbv dBE0sUw3Pd6E2sSM7CvtyvpsKaTCmwfIHRnpeF+tlue7oGNllXU5/4ivpLHgUqvDtDr6 EIebwbun5cIefhr/KRwWdmLHSQ+LKe5AnHe+4RGwqxiqBWaMhirwQrsY/w8rn8C1/X2b rdLlAxVaqVEXcM+kqMJ1XlNyUFUJ4V/qi3KN41SyG7sjaKVQ7CpoyldXzOHE/JNAH8nE qCS7sDJZ1hN5iT9m19psFdMalxh1ULdqqn9+J02LnAEB1gr1okN6qaLYZurATSJMH696 vxfg== X-Gm-Message-State: AG10YOQFyXYPJNgYg0/BJrmHQyOT7LI14wTDaHz6/SCFtVb9ku2PzmShiTH4S4RxUVX0ng== X-Received: by 10.25.17.103 with SMTP id g100mr17563101lfi.142.1456429182703; Thu, 25 Feb 2016 11:39:42 -0800 (PST) Received: from [192.168.1.41] (ppp109-252-76-159.pppoe.spdop.ru. [109.252.76.159]) by smtp.gmail.com with ESMTPSA id vq10sm1335130lbb.14.2016.02.25.11.39.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Feb 2016 11:39:41 -0800 (PST) Subject: Re: [PATCH 06/14] net: fix ipv6 routing To: The development of GNU GRUB , kernel-team@fb.com References: <1455139268-3241273-1-git-send-email-jbacik@fb.com> <1455139268-3241273-7-git-send-email-jbacik@fb.com> From: Andrei Borzenkov Message-ID: <56CF587C.8080704@gmail.com> Date: Thu, 25 Feb 2016 22:39:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1455139268-3241273-7-git-send-email-jbacik@fb.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22e Cc: Josef Bacik 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, 25 Feb 2016 19:39:48 -0000 11.02.2016 00:21, Josef Bacik пишет: > ipv6 routing in grub2 is broken, we cannot talk to anything outside our local > network or anything that doesn't route in our global namespace. This patch > fixes this by doing a couple of things > > 1) Read the router information off of the router advertisement. If we have a > router lifetime we need to take the source address and create a route from it. > > 2) Changes the routing stuff slightly to allow you to specify a gateway _and_ an > interface. Since the router advertisements come in on the link local address we > need to associate it with the global address on the card. So when we are > processing the router advertisement, either use the SLAAC interface we create > and add the route to that interface, or loop through the global addresses we > currently have on our interface and associate it with one of those addresses. > We need to have a special case here for the default route so that it gets used, > we do this by setting the masksize to 0 to mean it encompasses all networks. > The routing code will automatically select the best route so if there is a > closer match we will use that. > > With this patch I can now talk to ipv6 addresses outside of my local network. > Thanks, > Committed. Thanks!