From 9f4abef9a3529b53f988197b6939fe4ff2982a35 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Wed, 26 Oct 2005 05:57:35 +0000 Subject: [PATCH] Since carp(4) interfaces presently are kinda fake yet possess IP addresses, mark them with LOOPBACK so that routing daemons take them easy for link-state routing protocols. Reviewed by: glebius --- sys/netinet/ip_carp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 3aad1512806d..5fe4577e6801 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -380,7 +380,7 @@ carp_clone_create(struct if_clone *ifc, int unit) ifp->if_softc = sc; if_initname(ifp, CARP_IFNAME, unit); ifp->if_mtu = ETHERMTU; - ifp->if_flags = 0; + ifp->if_flags = IFF_LOOPBACK; ifp->if_ioctl = carp_ioctl; ifp->if_output = carp_looutput; ifp->if_start = carp_start;