xref: /freebsd/sys/netinet/ip_carp_nl.h (revision 54521a2ff93ae06c95c31f79f89dc23c9b51c20b)
1 #ifndef _IP_CARP_NL_H
2 #define _IP_CARP_NL_H
3 
4 #include <net/if.h>
5 
6 #include <netinet/ip_carp.h>
7 #include <netlink/netlink_generic.h>
8 
9 /*
10  * Netlink interface to carp(4).
11  */
12 
13 #define CARP_NL_FAMILY_NAME	"carp"
14 
15 /* commands */
16 enum {
17 	CARP_NL_CMD_UNSPEC	= 0,
18 	CARP_NL_CMD_GET		= 1,
19 	CARP_NL_CMD_SET		= 2,
20 	__CARP_NL_CMD_MAX,
21 };
22 #define	CARP_NL_CMD_MAX	(__CARP_NL_CMD_MAX - 1)
23 
24 enum carp_nl_type_t {
25 	CARP_NL_UNSPEC,
26 	CARP_NL_VHID		= 1,	/* u32 */
27 	CARP_NL_STATE		= 2,	/* u32 */
28 	CARP_NL_ADVBASE		= 3,	/* s32 */
29 	CARP_NL_ADVSKEW		= 4,	/* s32 */
30 	CARP_NL_KEY		= 5,	/* byte array */
31 	CARP_NL_IFINDEX		= 6,	/* u32 */
32 	CARP_NL_ADDR		= 7,	/* in_addr_t */
33 	CARP_NL_ADDR6		= 8,	/* in6_addr_t */
34 	CARP_NL_IFNAME		= 9,	/* string */
35 	CARP_NL_VERSION		= 10,	/* u8 */
36 	CARP_NL_VRRP_PRIORITY	= 11,	/* u8 */
37 	CARP_NL_VRRP_ADV_INTER	= 12,	/* u16, 12-bit field in centiseconds*/
38 };
39 
40 #endif
41