aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_carp_nl.h
blob: de4c0367c1d34ae922703bc35afd6308b4043c90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _IP_CARP_NL_H
#define _IP_CARP_NL_H

#include <net/if.h>

#include <netinet/ip_carp.h>
#include <netlink/netlink_generic.h>

/*
 * Netlink interface to carp(4).
 */

#define CARP_NL_FAMILY_NAME	"carp"

/* commands */
enum {
	CARP_NL_CMD_UNSPEC	= 0,
	CARP_NL_CMD_GET		= 1,
	CARP_NL_CMD_SET		= 2,
	__CARP_NL_CMD_MAX,
};
#define	CARP_NL_CMD_MAX	(__CARP_NL_CMD_MAX - 1)

enum carp_nl_type_t {
	CARP_NL_UNSPEC,
	CARP_NL_VHID		= 1,	/* u32 */
	CARP_NL_STATE		= 2,	/* u32 */
	CARP_NL_ADVBASE		= 3,	/* s32 */
	CARP_NL_ADVSKEW		= 4,	/* s32 */
	CARP_NL_KEY		= 5,	/* byte array */
	CARP_NL_IFINDEX		= 6,	/* u32 */
	CARP_NL_ADDR		= 7,	/* in_addr_t */
	CARP_NL_ADDR6		= 8,	/* in6_addr_t */
	CARP_NL_IFNAME		= 9,	/* string */
	CARP_NL_VERSION		= 10,	/* u8 */
	CARP_NL_VRRP_PRIORITY	= 11,	/* u8 */
	CARP_NL_VRRP_ADV_INTER	= 12,	/* u16, 12-bit field in centiseconds*/
};

#endif