hsr_netlink.h 1.1 KB

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