diff options
author | 2015-05-15 11:53:06 +0000 | |
---|---|---|
committer | 2015-05-15 11:53:06 +0000 | |
commit | 1cc422ba2cb2a84bc4e0fac65c07bfc33e174aad (patch) | |
tree | c438279f7c298e6839a78d7a00f369aa416b4051 /sys/netinet/ip_carp.c | |
parent | Convert to if_input(). (diff) | |
download | wireguard-openbsd-1cc422ba2cb2a84bc4e0fac65c07bfc33e174aad.tar.xz wireguard-openbsd-1cc422ba2cb2a84bc4e0fac65c07bfc33e174aad.zip |
Give carp(4) interfaces their own low priority. The change should not
change behaviour for now but will allow to share the same address with
the parent interface without major hacks.
OK mpi@
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 8460aa6074e..76185eb4d10 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.255 2015/05/15 10:09:23 mpi Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.256 2015/05/15 11:53:06 claudio Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -752,6 +752,7 @@ carp_clone_create(ifc, unit) ifp->if_type = IFT_CARP; ifp->if_sadl->sdl_type = IFT_CARP; ifp->if_output = carp_output; + ifp->if_priority = IF_CARP_DEFAULT_PRIORITY; /* Hook carp_addr_updated to cope with address and route changes. */ sc->ah_cookie = hook_establish(sc->sc_if.if_addrhooks, 0, |