xref: /freebsd/sys/netinet/ip_carp_nl.h (revision 40e0435964094dfda21089d9989197999c06c4bc)
1*40e04359SKristof Provost #ifndef _IP_CARP_NL_H
2*40e04359SKristof Provost #define _IP_CARP_NL_H
3*40e04359SKristof Provost 
4*40e04359SKristof Provost #include <net/if.h>
5*40e04359SKristof Provost 
6*40e04359SKristof Provost #include <netinet/ip_carp.h>
7*40e04359SKristof Provost #include <netlink/netlink_generic.h>
8*40e04359SKristof Provost 
9*40e04359SKristof Provost /*
10*40e04359SKristof Provost  * Netlink interface to carp(4).
11*40e04359SKristof Provost  */
12*40e04359SKristof Provost 
13*40e04359SKristof Provost #define CARP_NL_FAMILY_NAME	"carp"
14*40e04359SKristof Provost 
15*40e04359SKristof Provost /* commands */
16*40e04359SKristof Provost enum {
17*40e04359SKristof Provost 	CARP_NL_CMD_UNSPEC	= 0,
18*40e04359SKristof Provost 	CARP_NL_CMD_GET		= 1,
19*40e04359SKristof Provost 	CARP_NL_CMD_SET		= 2,
20*40e04359SKristof Provost 	__CARP_NL_CMD_MAX,
21*40e04359SKristof Provost };
22*40e04359SKristof Provost #define	CARP_NL_CMD_MAX	(__CARP_NL_CMD_MAX - 1)
23*40e04359SKristof Provost 
24*40e04359SKristof Provost enum carp_nl_type_t {
25*40e04359SKristof Provost 	CARP_NL_UNSPEC,
26*40e04359SKristof Provost 	CARP_NL_VHID		= 1,	/* u32 */
27*40e04359SKristof Provost 	CARP_NL_STATE		= 2,	/* u32 */
28*40e04359SKristof Provost 	CARP_NL_ADVBASE		= 3,	/* s32 */
29*40e04359SKristof Provost 	CARP_NL_ADVSKEW		= 4,	/* s32 */
30*40e04359SKristof Provost 	CARP_NL_KEY		= 5,	/* byte array */
31*40e04359SKristof Provost 	CARP_NL_IFINDEX		= 6,	/* u32 */
32*40e04359SKristof Provost };
33*40e04359SKristof Provost 
34*40e04359SKristof Provost #endif
35