From 54f0eb5f04fa76a6450c0673dc82e45b972d562e Mon Sep 17 00:00:00 2001 From: yar Date: Wed, 26 Oct 2005 05:57:35 +0000 Subject: 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(-) (limited to 'sys/netinet/ip_carp.c') diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 3aad151..5fe4577 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; -- cgit v1.1