hsr_netlink.h 1017 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef __UAPI_HSR_NETLINK_H
  13. #define __UAPI_HSR_NETLINK_H
  14. /* Generic Netlink HSR family definition
  15. */
  16. /* attributes */
  17. enum {
  18. HSR_A_UNSPEC,
  19. HSR_A_NODE_ADDR,
  20. HSR_A_IFINDEX,
  21. HSR_A_IF1_AGE,
  22. HSR_A_IF2_AGE,
  23. HSR_A_NODE_ADDR_B,
  24. HSR_A_IF1_SEQ,
  25. HSR_A_IF2_SEQ,
  26. HSR_A_IF1_IFINDEX,
  27. HSR_A_IF2_IFINDEX,
  28. HSR_A_ADDR_B_IFINDEX,
  29. __HSR_A_MAX,
  30. };
  31. #define HSR_A_MAX (__HSR_A_MAX - 1)
  32. /* commands */
  33. enum {
  34. HSR_C_UNSPEC,
  35. HSR_C_RING_ERROR,
  36. HSR_C_NODE_DOWN,
  37. HSR_C_GET_NODE_STATUS,
  38. HSR_C_SET_NODE_STATUS,
  39. HSR_C_GET_NODE_LIST,
  40. HSR_C_SET_NODE_LIST,
  41. __HSR_C_MAX,
  42. };
  43. #define HSR_C_MAX (__HSR_C_MAX - 1)
  44. #endif /* __UAPI_HSR_NETLINK_H */