Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_carp.c
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | |||||
#define IFNET_FOREACH_CARP(ifp, sc) \ | #define IFNET_FOREACH_CARP(ifp, sc) \ | ||||
KASSERT(mtx_owned(&ifp->if_carp->cif_mtx) || \ | KASSERT(mtx_owned(&ifp->if_carp->cif_mtx) || \ | ||||
sx_xlocked(&carp_sx), ("cif_vrs not locked")); \ | sx_xlocked(&carp_sx), ("cif_vrs not locked")); \ | ||||
TAILQ_FOREACH((sc), &(ifp)->if_carp->cif_vrs, sc_list) | TAILQ_FOREACH((sc), &(ifp)->if_carp->cif_vrs, sc_list) | ||||
#define DEMOTE_ADVSKEW(sc) \ | #define DEMOTE_ADVSKEW(sc) \ | ||||
(((sc)->sc_advskew + V_carp_demotion > CARP_MAXSKEW) ? \ | (((sc)->sc_advskew + V_carp_demotion > CARP_MAXSKEW) ? \ | ||||
CARP_MAXSKEW : ((sc)->sc_advskew + V_carp_demotion)) | CARP_MAXSKEW : \ | ||||
(((sc)->sc_advskew + V_carp_demotion < 0) ? \ | |||||
0 : ((sc)->sc_advskew + V_carp_demotion))) | |||||
static void carp_input_c(struct mbuf *, struct carp_header *, sa_family_t); | static void carp_input_c(struct mbuf *, struct carp_header *, sa_family_t); | ||||
static struct carp_softc | static struct carp_softc | ||||
*carp_alloc(struct ifnet *); | *carp_alloc(struct ifnet *); | ||||
static void carp_destroy(struct carp_softc *); | static void carp_destroy(struct carp_softc *); | ||||
static struct carp_if | static struct carp_if | ||||
*carp_alloc_if(struct ifnet *); | *carp_alloc_if(struct ifnet *); | ||||
static void carp_free_if(struct carp_if *); | static void carp_free_if(struct carp_if *); | ||||
▲ Show 20 Lines • Show All 2,001 Lines • Show Last 20 Lines |