prp_netlink.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * prp_netlink.h: This is based on hsr_netlink.h from Arvid Brodin,
  3. * arvid.brodin@alten.se
  4. *
  5. * Copyright (C) 2017 Texas Instruments Incorporated
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the Free
  9. * Software Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * Author(s):
  13. * 2017 Murali Karicheri <m-karicheri2@ti.com>
  14. */
  15. #ifndef __UAPI_PRP_NETLINK_H
  16. #define __UAPI_PRP_NETLINK_H
  17. /* Generic Netlink PRP family definition
  18. */
  19. /* attributes */
  20. enum {
  21. PRP_A_UNSPEC,
  22. PRP_A_NODE_ADDR,
  23. PRP_A_IFINDEX,
  24. PRP_A_IF1_AGE,
  25. PRP_A_IF2_AGE,
  26. PRP_A_NODE_ADDR_B,
  27. PRP_A_IF1_SEQ,
  28. PRP_A_IF2_SEQ,
  29. PRP_A_IF1_IFINDEX,
  30. PRP_A_IF2_IFINDEX,
  31. PRP_A_ADDR_B_IFINDEX,
  32. __PRP_A_MAX,
  33. };
  34. #define PRP_A_MAX (__PRP_A_MAX - 1)
  35. /* commands */
  36. enum {
  37. PRP_C_UNSPEC,
  38. PRP_C_NODE_DOWN,
  39. PRP_C_GET_NODE_STATUS,
  40. PRP_C_SET_NODE_STATUS,
  41. PRP_C_GET_NODE_LIST,
  42. PRP_C_SET_NODE_LIST,
  43. __PRP_C_MAX,
  44. };
  45. #define PRP_C_MAX (__PRP_C_MAX - 1)
  46. #endif /* __UAPI_PRP_NETLINK_H */