From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: Using 127.n.x.x/16 for namespace to host Date: Mon, 6 Jul 2009 17:28:42 -0700 Message-ID: <20090707002842.GA20703@redback.com> References: <638f07d70907061546h5e017064t57ee22f45fa746b2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <638f07d70907061546h5e017064t57ee22f45fa746b2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Elwin Stelzer Eliazer Cc: "containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" List-Id: containers.vger.kernel.org Look for ipv4_is_loopback(). Another option might be to use link local addresses. Guenter On Mon, Jul 06, 2009 at 03:46:20PM -0700, Elwin Stelzer Eliazer wrote: > Hi, > > I am using an internal bridge for internal socket communication between the > host and various containers' applications. > This is purely an internal bridge and no external traffic is expected in > this. > I can use a regular private ip address subnet for this, for example a > 192.168.x.x/16 for this, and things are working. > But since the applications at the container and host handle external traffic > as well, we are forced to exclude this internal subnet for external use. > Using a 127.n.x.x/16 subnet is preferred, since that is not expected to be > used externally. > But this is requiring kernel code change, since 127.0.0.1/8 is programmed > for loopback interface 'lo' in host. > Towards this tried changing: > IFF_LOOPBACK 0x10 // in in.h, changed from 0x8 to 0x10 > ifa->ifa_prefixlen = 16; // in devinet.c, changed from 8 to 16 > And still do not see them connected. > > Any suggestions on this will be appreciated. > > regards, > Elwin. > _______________________________________________ > Containers mailing list > Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org > https://lists.linux-foundation.org/mailman/listinfo/containers