Go to the source code of this file.
|
enum | vrrp_vr_flags {
VRRP_API_VR_PREEMPT = 0x1,
VRRP_API_VR_ACCEPT = 0x2,
VRRP_API_VR_UNICAST = 0x4,
VRRP_API_VR_IPV6 = 0x8,
VRRP_VR_PREEMPT = 0x1,
VRRP_VR_ACCEPT = 0x2,
VRRP_VR_UNICAST = 0x4,
VRRP_VR_IPV6 = 0x8
} |
|
enum | vrrp_vr_state {
VRRP_API_VR_STATE_INIT = 0,
VRRP_API_VR_STATE_BACKUP,
VRRP_API_VR_STATE_MASTER,
VRRP_API_VR_STATE_INTF_DOWN,
foreach_vrrp_vr_state
} |
|
enum | vrrp_vr_timer_type { VRRP_VR_TIMER_ADV,
VRRP_VR_TIMER_MASTER_DOWN
} |
|
|
typedef | CLIB_PACKED (struct vrrp4_arp_key { union { struct { u32 sw_if_index;ip4_address_t addr;};u64 as_u64;};}) vrrp4_arp_key_t |
|
typedef | CLIB_PACKED (struct vrrp6_nd_key { u32 sw_if_index;ip6_address_t addr;}) vrrp6_nd_key_t |
|
clib_error_t * | vrrp_plugin_api_hookup (vlib_main_t *vm) |
|
int | vrrp_vr_add_del (u8 is_add, vrrp_vr_config_t *conf) |
|
int | vrrp_vr_start_stop (u8 is_start, vrrp_vr_key_t *vr_key) |
|
u8 * | format_vrrp_vr (u8 *s, va_list *args) |
|
u8 * | format_vrrp_vr_key (u8 *s, va_list *args) |
|
u8 * | format_vrrp_vr_state (u8 *s, va_list *args) |
|
u8 * | format_vrrp_packet_hdr (u8 *s, va_list *args) |
|
void | vrrp_vr_timer_set (vrrp_vr_t *vr, vrrp_vr_timer_type_t type) |
|
void | vrrp_vr_timer_cancel (vrrp_vr_t *vr) |
|
void | vrrp_vr_transition (vrrp_vr_t *vr, vrrp_vr_state_t new_state, void *data) |
|
int | vrrp_vr_set_peers (vrrp_vr_key_t *key, ip46_address_t *peers) |
|
int | vrrp_vr_multicast_group_join (vrrp_vr_t *vr) |
|
int | vrrp_adv_send (vrrp_vr_t *vr, int shutdown) |
|
int | vrrp_garp_or_na_send (vrrp_vr_t *vr) |
|
u16 | vrrp_adv_csum (void *l3_hdr, void *payload, u8 is_ipv6, u16 len) |
|
int | vrrp_vr_tracking_if_add_del (vrrp_vr_t *vr, u32 sw_if_index, u8 priority, u8 is_add) |
|
int | vrrp_vr_tracking_ifs_add_del (vrrp_vr_t *vr, vrrp_vr_tracking_if_t *track_ifs, u8 is_add) |
|
void | vrrp_vr_event (vrrp_vr_t *vr, vrrp_vr_state_t new_state) |
|
static void | vrrp_vr_skew_compute (vrrp_vr_t *vr) |
|
static void | vrrp_vr_master_down_compute (vrrp_vr_t *vr) |
|
static vrrp_vr_t * | vrrp_vr_lookup (u32 sw_if_index, u8 vr_id, u8 is_ipv6) |
|
static vrrp_vr_t * | vrrp_vr_lookup_index (u32 vr_index) |
|
static u32 | vrrp_vr_lookup_address (u32 sw_if_index, u8 is_ipv6, void *addr) |
|
static vrrp_intf_t * | vrrp_intf_get (u32 sw_if_index) |
|
static int | vrrp_intf_num_vrs (u32 sw_if_index, u8 is_ipv6) |
|
static u8 | vrrp_vr_is_ipv6 (vrrp_vr_t *vr) |
|
static u8 | vrrp_vr_is_unicast (vrrp_vr_t *vr) |
|
static u8 | vrrp_vr_is_owner (vrrp_vr_t *vr) |
|
static u8 | vrrp_vr_n_vr_addrs (vrrp_vr_t *vr) |
|
static u8 | vrrp_vr_n_peer_addrs (vrrp_vr_t *vr) |
|
static u8 | vrrp_vr_accept_mode_enabled (vrrp_vr_t *vr) |
|
static u32 | vrrp_vr_index (vrrp_vr_t *vr) |
|
static u8 | vrrp_vr_priority (vrrp_vr_t *vr) |
|
◆ foreach_vrrp_vr_state
#define foreach_vrrp_vr_state |
Value:_(0, INIT, "Initialize") \
_(1, BACKUP, "Backup") \
_(2, MASTER, "Master") \
_(3, INTF_DOWN, "Interface Down")
Definition at line 80 of file vrrp.h.
◆ VRRP_EVENT_PERIODIC_ENABLE_DISABLE
#define VRRP_EVENT_PERIODIC_ENABLE_DISABLE 3 |
◆ VRRP_EVENT_VR_STOP
#define VRRP_EVENT_VR_STOP 2 |
◆ VRRP_EVENT_VR_TIMER_UPDATE
#define VRRP_EVENT_VR_TIMER_UPDATE 1 |
◆ vrrp_vr_config_t
◆ vrrp_vr_flags_t
◆ vrrp_vr_key_t
◆ vrrp_vr_runtime_t
◆ vrrp_vr_state_t
◆ vrrp_vr_t
◆ vrrp_vr_timer_t
◆ vrrp_vr_timer_type_t
◆ vrrp_vr_tracking_if_t
◆ vrrp_vr_tracking_t
◆ vrrp_vr_flags
Enumerator |
---|
VRRP_API_VR_PREEMPT | |
VRRP_API_VR_ACCEPT | |
VRRP_API_VR_UNICAST | |
VRRP_API_VR_IPV6 | |
VRRP_VR_PREEMPT | |
VRRP_VR_ACCEPT | |
VRRP_VR_UNICAST | |
VRRP_VR_IPV6 | |
Definition at line 21 of file vrrp.h.
◆ vrrp_vr_state
Enumerator |
---|
VRRP_API_VR_STATE_INIT | |
VRRP_API_VR_STATE_BACKUP | |
VRRP_API_VR_STATE_MASTER | |
VRRP_API_VR_STATE_INTF_DOWN | |
foreach_vrrp_vr_state | |
Definition at line 87 of file vrrp.h.
◆ vrrp_vr_timer_type
Enumerator |
---|
VRRP_VR_TIMER_ADV | |
VRRP_VR_TIMER_MASTER_DOWN | |
Definition at line 114 of file vrrp.h.
◆ CLIB_PACKED() [1/2]
◆ CLIB_PACKED() [2/2]
◆ format_vrrp_packet_hdr()
u8* format_vrrp_packet_hdr |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_vrrp_vr()
u8* format_vrrp_vr |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_vrrp_vr_key()
u8* format_vrrp_vr_key |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_vrrp_vr_state()
u8* format_vrrp_vr_state |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ vrrp_adv_csum()
u16 vrrp_adv_csum |
( |
void * |
l3_hdr, |
|
|
void * |
payload, |
|
|
u8 |
is_ipv6, |
|
|
u16 |
len |
|
) |
| |
◆ vrrp_adv_send()
int vrrp_adv_send |
( |
vrrp_vr_t * |
vr, |
|
|
int |
shutdown |
|
) |
| |
◆ vrrp_garp_or_na_send()
◆ vrrp_intf_get()
◆ vrrp_intf_num_vrs()
static int vrrp_intf_num_vrs |
( |
u32 |
sw_if_index, |
|
|
u8 |
is_ipv6 |
|
) |
| |
|
inlinestatic |
◆ vrrp_plugin_api_hookup()
◆ vrrp_vr_accept_mode_enabled()
static u8 vrrp_vr_accept_mode_enabled |
( |
vrrp_vr_t * |
vr | ) |
|
|
inlinestatic |
◆ vrrp_vr_add_del()
◆ vrrp_vr_event()
◆ vrrp_vr_index()
◆ vrrp_vr_is_ipv6()
◆ vrrp_vr_is_owner()
◆ vrrp_vr_is_unicast()
◆ vrrp_vr_lookup()
◆ vrrp_vr_lookup_address()
static u32 vrrp_vr_lookup_address |
( |
u32 |
sw_if_index, |
|
|
u8 |
is_ipv6, |
|
|
void * |
addr |
|
) |
| |
|
inlinestatic |
◆ vrrp_vr_lookup_index()
◆ vrrp_vr_master_down_compute()
static void vrrp_vr_master_down_compute |
( |
vrrp_vr_t * |
vr | ) |
|
|
inlinestatic |
◆ vrrp_vr_multicast_group_join()
int vrrp_vr_multicast_group_join |
( |
vrrp_vr_t * |
vr | ) |
|
◆ vrrp_vr_n_peer_addrs()
◆ vrrp_vr_n_vr_addrs()
◆ vrrp_vr_priority()
◆ vrrp_vr_set_peers()
int vrrp_vr_set_peers |
( |
vrrp_vr_key_t * |
key, |
|
|
ip46_address_t * |
peers |
|
) |
| |
◆ vrrp_vr_skew_compute()
static void vrrp_vr_skew_compute |
( |
vrrp_vr_t * |
vr | ) |
|
|
inlinestatic |
◆ vrrp_vr_start_stop()
◆ vrrp_vr_timer_cancel()
◆ vrrp_vr_timer_set()
◆ vrrp_vr_tracking_if_add_del()
int vrrp_vr_tracking_if_add_del |
( |
vrrp_vr_t * |
vr, |
|
|
u32 |
sw_if_index, |
|
|
u8 |
priority, |
|
|
u8 |
is_add |
|
) |
| |
◆ vrrp_vr_tracking_ifs_add_del()
◆ vrrp_vr_transition()
◆ vrrp_main
◆ vrrp_node
◆ vrrp_periodic_node
(constructor) VLIB_REGISTER_NODE (vrrp_periodic_node)
Definition at line 214 of file vrrp_periodic.c.