Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011-2013 Autronica Fire and Security AS |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of the GNU General Public License as published by the Free |
| 6 | * Software Foundation; either version 2 of the License, or (at your option) |
| 7 | * any later version. |
| 8 | * |
| 9 | * Author(s): |
| 10 | * 2011-2013 Arvid Brodin, arvid.brodin@xdin.com |
| 11 | */ |
| 12 | |
| 13 | #ifndef __UAPI_HSR_NETLINK_H |
| 14 | #define __UAPI_HSR_NETLINK_H |
| 15 | |
| 16 | /* Generic Netlink HSR family definition |
| 17 | */ |
| 18 | |
| 19 | /* attributes */ |
| 20 | enum { |
| 21 | HSR_A_UNSPEC, |
| 22 | HSR_A_NODE_ADDR, |
| 23 | HSR_A_IFINDEX, |
| 24 | HSR_A_IF1_AGE, |
| 25 | HSR_A_IF2_AGE, |
| 26 | HSR_A_NODE_ADDR_B, |
| 27 | HSR_A_IF1_SEQ, |
| 28 | HSR_A_IF2_SEQ, |
| 29 | HSR_A_IF1_IFINDEX, |
| 30 | HSR_A_IF2_IFINDEX, |
| 31 | HSR_A_ADDR_B_IFINDEX, |
| 32 | __HSR_A_MAX, |
| 33 | }; |
| 34 | #define HSR_A_MAX (__HSR_A_MAX - 1) |
| 35 | |
| 36 | |
| 37 | /* commands */ |
| 38 | enum { |
| 39 | HSR_C_UNSPEC, |
| 40 | HSR_C_RING_ERROR, |
| 41 | HSR_C_NODE_DOWN, |
| 42 | HSR_C_GET_NODE_STATUS, |
| 43 | HSR_C_SET_NODE_STATUS, |
| 44 | HSR_C_GET_NODE_LIST, |
| 45 | HSR_C_SET_NODE_LIST, |
| 46 | __HSR_C_MAX, |
| 47 | }; |
| 48 | #define HSR_C_MAX (__HSR_C_MAX - 1) |
| 49 | |
| 50 | #endif /* __UAPI_HSR_NETLINK_H */ |