[patch] checking loopback ip address for ipv4?

Jeremy Allison jra at samba.org
Thu Sep 4 18:52:25 GMT 2008


On Thu, Sep 04, 2008 at 08:46:21PM +0200, Stefan (metze) Metzmacher wrote:
> boyang schrieb:
> > Hi, everybody:
> >       First I am quite sorry that I didn't realize the format to send
> > email. I am quite sorry for the inconvenience.
> >      
> >       According to RFC3330 and RFC1700, 127.0.0.0/8 is used for loopback
> > address. Therefore, it is not enough just to check 127.0.0.1, any
> > address resides in 127.0.0.0/8 is loopback address. The issue appears in
> > net ads dns register, somebody has configured 127.0.0.2 to loopback
> > interface, and it is registered with dns, which is not right.
> >       It is true that 127.0.0.1 is the popular way that is used by
> > loopback interface, but there is always exceptions that somebody uses
> > other address in 127.0.0.0/8 as loopback address.
> >       patch for v3-[023]-test and v3-devel arrive in attachment, please
> > review it.
> 
> Hi,
> 
> are you sure this doesn't break 'make test'?

Actually I'm pretty sure it does :-). I recently tried to
mess with is_loopback() and ran into that.

> We may need some more magic...

Yep.

Jeremy.


More information about the samba-technical mailing list