cvs commit: src/sys/netinet ip_carp.c

Max Laier max at love2party.net
Wed Oct 26 05:16:03 PDT 2005


On Wednesday 26 October 2005 11:58, Robert Watson wrote:
> On Wed, 26 Oct 2005, Gleb Smirnoff wrote:
> > On Wed, Oct 26, 2005 at 10:15:09AM +0100, Robert Watson wrote:
> > R> I think we may actually be in need of either a new flag,
> > R> IFF_OKSODONTTREATTHISQUITELIKEANINTERFACE, or maybe a more reliable
> > way R> for protocols to ask if an interface is a loopback interface or
> > not.
> >
> > I'd prefer to rewrite those subsystems that use interface layer but
> > aren't actually interfaces. I have plans to do this for CARP.
>
> At least in the case of if_disc, this won't help.  I'm not quite sure why
> if_disc is IFF_LOOPBACK.

Sad answer seems to be: copy and paste.  IFF_LOOPBACK is part of 1.1 which 
also contains the following comment:

/*
 * Discard interface driver for protocol testing and timing.
 * (Based on the loopback.)
 */

So it might be a good idea to get rid of it and work from there.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20051026/595a1a4a/attachment.bin


More information about the cvs-src mailing list