1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linu 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 /* 2 /* 3 * Copyright 2011-2013 Autronica Fire and Secu 3 * Copyright 2011-2013 Autronica Fire and Security AS 4 * 4 * 5 * This program is free software; you can redi 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public L 6 * under the terms of the GNU General Public License as published by the Free 7 * Software Foundation; either version 2 of th 7 * Software Foundation; either version 2 of the License, or (at your option) 8 * any later version. 8 * any later version. 9 * 9 * 10 * Author(s): 10 * Author(s): 11 * 2011-2013 Arvid Brodin, arvid.brodin@x 11 * 2011-2013 Arvid Brodin, arvid.brodin@xdin.com 12 */ 12 */ 13 13 14 #ifndef __UAPI_HSR_NETLINK_H 14 #ifndef __UAPI_HSR_NETLINK_H 15 #define __UAPI_HSR_NETLINK_H 15 #define __UAPI_HSR_NETLINK_H 16 16 17 /* Generic Netlink HSR family definition 17 /* Generic Netlink HSR family definition 18 */ 18 */ 19 19 20 /* attributes for HSR or PRP node */ !! 20 /* attributes */ 21 enum { 21 enum { 22 HSR_A_UNSPEC, 22 HSR_A_UNSPEC, 23 HSR_A_NODE_ADDR, 23 HSR_A_NODE_ADDR, 24 HSR_A_IFINDEX, 24 HSR_A_IFINDEX, 25 HSR_A_IF1_AGE, 25 HSR_A_IF1_AGE, 26 HSR_A_IF2_AGE, 26 HSR_A_IF2_AGE, 27 HSR_A_NODE_ADDR_B, 27 HSR_A_NODE_ADDR_B, 28 HSR_A_IF1_SEQ, 28 HSR_A_IF1_SEQ, 29 HSR_A_IF2_SEQ, 29 HSR_A_IF2_SEQ, 30 HSR_A_IF1_IFINDEX, 30 HSR_A_IF1_IFINDEX, 31 HSR_A_IF2_IFINDEX, 31 HSR_A_IF2_IFINDEX, 32 HSR_A_ADDR_B_IFINDEX, 32 HSR_A_ADDR_B_IFINDEX, 33 __HSR_A_MAX, 33 __HSR_A_MAX, 34 }; 34 }; 35 #define HSR_A_MAX (__HSR_A_MAX - 1) 35 #define HSR_A_MAX (__HSR_A_MAX - 1) 36 36 37 37 38 /* commands */ 38 /* commands */ 39 enum { 39 enum { 40 HSR_C_UNSPEC, 40 HSR_C_UNSPEC, 41 HSR_C_RING_ERROR, 41 HSR_C_RING_ERROR, 42 HSR_C_NODE_DOWN, 42 HSR_C_NODE_DOWN, 43 HSR_C_GET_NODE_STATUS, 43 HSR_C_GET_NODE_STATUS, 44 HSR_C_SET_NODE_STATUS, 44 HSR_C_SET_NODE_STATUS, 45 HSR_C_GET_NODE_LIST, 45 HSR_C_GET_NODE_LIST, 46 HSR_C_SET_NODE_LIST, 46 HSR_C_SET_NODE_LIST, 47 __HSR_C_MAX, 47 __HSR_C_MAX, 48 }; 48 }; 49 #define HSR_C_MAX (__HSR_C_MAX - 1) 49 #define HSR_C_MAX (__HSR_C_MAX - 1) 50 50 51 #endif /* __UAPI_HSR_NETLINK_H */ 51 #endif /* __UAPI_HSR_NETLINK_H */ 52 52
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.