Go to the source code of this file.
|
int | carp_ioctl (struct ifreq *, u_long, struct thread *) |
|
int | carp_attach (struct ifaddr *, int) |
|
void | carp_detach (struct ifaddr *, bool) |
|
void | carp_carpdev_state (struct ifnet *) |
|
int | carp_input (struct mbuf **, int *, int) |
|
int | carp6_input (struct mbuf **, int *, int) |
|
int | carp_output (struct ifnet *, struct mbuf *, const struct sockaddr *) |
|
int | carp_master (struct ifaddr *) |
|
int | carp_iamatch (struct ifaddr *, uint8_t **) |
|
struct ifaddr * | carp_iamatch6 (struct ifnet *, struct in6_addr *) |
|
char * | carp_macmatch6 (struct ifnet *, struct mbuf *, const struct in6_addr *) |
|
int | carp_forus (struct ifnet *, u_char *) |
|
◆ CARP_ADVERTISEMENT
#define CARP_ADVERTISEMENT 0x01 |
◆ CARP_DFLTINTV
◆ CARP_DFLTTL
◆ CARP_KEY_LEN
#define CARP_KEY_LEN 20 /* a sha1 hash of a passphrase */ |
◆ CARP_MAXSKEW
◆ CARP_MAXSTATE
◆ CARP_MAXVHID
◆ CARP_STATES
#define CARP_STATES "INIT", "BACKUP", "MASTER" |
◆ CARP_VERSION
◆ SIOCGVH
#define SIOCGVH _IOWR('i', 246, struct ifreq) |
◆ SIOCSVH
#define SIOCSVH _IOWR('i', 245, struct ifreq) |
◆ carp6_input()
int carp6_input |
( |
struct mbuf ** |
, |
|
|
int * |
, |
|
|
int |
|
|
) |
| |
◆ carp_attach()
int carp_attach |
( |
struct ifaddr * |
ifa, |
|
|
int |
vhid |
|
) |
| |
Definition at line 1910 of file ip_carp.c.
References carp_grow_ifas(), CARP_LOCK, carp_multicast_setup(), carp_sc_state(), CARP_UNLOCK, CIF_FREE, IFNET_FOREACH_CARP, carp_softc::sc_ifas, carp_softc::sc_ifasiz, carp_softc::sc_naddrs, carp_softc::sc_naddrs6, and carp_softc::sc_vhid.
Referenced by carp_mod_load().
◆ carp_carpdev_state()
void carp_carpdev_state |
( |
struct ifnet * |
| ) |
|
◆ carp_detach()
void carp_detach |
( |
struct ifaddr * |
ifa, |
|
|
bool |
keep_cif |
|
) |
| |
◆ carp_forus()
int carp_forus |
( |
struct ifnet * |
ifp, |
|
|
u_char * |
dhost |
|
) |
| |
◆ carp_iamatch()
int carp_iamatch |
( |
struct ifaddr * |
, |
|
|
uint8_t ** |
|
|
) |
| |
◆ carp_iamatch6()
struct ifaddr * carp_iamatch6 |
( |
struct ifnet * |
, |
|
|
struct in6_addr * |
|
|
) |
| |
◆ carp_input()
int carp_input |
( |
struct mbuf ** |
, |
|
|
int * |
, |
|
|
int |
|
|
) |
| |
◆ carp_ioctl()
int carp_ioctl |
( |
struct ifreq * |
ifr, |
|
|
u_long |
cmd, |
|
|
struct thread * |
td |
|
) |
| |
Definition at line 1733 of file ip_carp.c.
References carp_softc::BACKUP, carp_alloc(), carp_carprcp(), carp_delroute(), CARP_DFLTINTV, CARP_LOCK, carp_master_down_locked(), CARP_MAXVHID, carp_set_state(), carp_setrun(), CARP_UNLOCK, carpreq::carpr_advbase, carpreq::carpr_advskew, carpreq::carpr_count, carpreq::carpr_key, carpreq::carpr_state, carpreq::carpr_vhid, CIF_UNLOCK, count, IFNET_FOREACH_CARP, carp_softc::INIT, carp_softc::MASTER, carp_softc::sc_ad_tmo, carp_softc::sc_addr, carp_softc::sc_advbase, carp_softc::sc_advskew, carp_softc::sc_key, carp_softc::sc_state, carp_softc::sc_vhid, SIOCGVH, and SIOCSVH.
Referenced by carp_mod_load().
◆ carp_macmatch6()
char * carp_macmatch6 |
( |
struct ifnet * |
, |
|
|
struct mbuf * |
, |
|
|
const struct in6_addr * |
|
|
) |
| |
◆ carp_master()
int carp_master |
( |
struct ifaddr * |
ifa | ) |
|
◆ carp_output()
int carp_output |
( |
struct ifnet * |
ifp, |
|
|
struct mbuf * |
m, |
|
|
const struct sockaddr * |
sa |
|
) |
| |
◆ __packed
◆ carp_attach_p
int(* carp_attach_p) (struct ifaddr *, int) |
( |
struct ifaddr * |
, |
|
|
int |
|
|
) |
| |
|
extern |
◆ carp_demote_adj_p
void(* carp_demote_adj_p) (int, char *) |
( |
int |
, |
|
|
char * |
|
|
) |
| |
|
extern |
◆ carp_detach_p
void(* carp_detach_p) (struct ifaddr *, bool) |
( |
struct ifaddr * |
, |
|
|
bool |
|
|
) |
| |
|
extern |
◆ carp_forus_p
int(* carp_forus_p) (struct ifnet *, u_char *) |
( |
struct ifnet * |
, |
|
|
u_char * |
|
|
) |
| |
|
extern |
◆ carp_get_vhid_p
int(* carp_get_vhid_p) (struct ifaddr *) |
( |
struct ifaddr * |
| ) |
|
|
extern |
◆ carp_ioctl_p
int(* carp_ioctl_p) (struct ifreq *, u_long, struct thread *) |
( |
struct ifreq * |
, |
|
|
u_long |
, |
|
|
struct thread * |
|
|
) |
| |
|
extern |
◆ carp_linkstate_p
void(* carp_linkstate_p) (struct ifnet *) |
( |
struct ifnet * |
| ) |
|
|
extern |
◆ carp_master_p
int(* carp_master_p) (struct ifaddr *) |
( |
struct ifaddr * |
| ) |
|
|
extern |
◆ carp_output_p
int(* carp_output_p) (struct ifnet *, struct mbuf *, const struct sockaddr *) |
( |
struct ifnet * |
, |
|
|
struct mbuf * |
, |
|
|
const struct sockaddr * |
|
|
) |
| |
|
extern |