amt.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2021 Taehee Yoo <ap420073@gmail.com>
  4. */
  5. #ifndef _AMT_H_
  6. #define _AMT_H_
  7. enum ifla_amt_mode {
  8. /* AMT interface works as Gateway mode.
  9. * The Gateway mode encapsulates IGMP/MLD traffic and decapsulates
  10. * multicast traffic.
  11. */
  12. AMT_MODE_GATEWAY = 0,
  13. /* AMT interface works as Relay mode.
  14. * The Relay mode encapsulates multicast traffic and decapsulates
  15. * IGMP/MLD traffic.
  16. */
  17. AMT_MODE_RELAY,
  18. __AMT_MODE_MAX,
  19. };
  20. #define AMT_MODE_MAX (__AMT_MODE_MAX - 1)
  21. enum {
  22. IFLA_AMT_UNSPEC,
  23. /* This attribute specify mode etier Gateway or Relay. */
  24. IFLA_AMT_MODE,
  25. /* This attribute specify Relay port.
  26. * AMT interface is created as Gateway mode, this attribute is used
  27. * to specify relay(remote) port.
  28. * AMT interface is created as Relay mode, this attribute is used
  29. * as local port.
  30. */
  31. IFLA_AMT_RELAY_PORT,
  32. /* This attribute specify Gateway port.
  33. * AMT interface is created as Gateway mode, this attribute is used
  34. * as local port.
  35. * AMT interface is created as Relay mode, this attribute is not used.
  36. */
  37. IFLA_AMT_GATEWAY_PORT,
  38. /* This attribute specify physical device */
  39. IFLA_AMT_LINK,
  40. /* This attribute specify local ip address */
  41. IFLA_AMT_LOCAL_IP,
  42. /* This attribute specify Relay ip address.
  43. * So, this is not used by Relay.
  44. */
  45. IFLA_AMT_REMOTE_IP,
  46. /* This attribute specify Discovery ip address.
  47. * When Gateway get started, it send discovery message to find the
  48. * Relay's ip address.
  49. * So, this is not used by Relay.
  50. */
  51. IFLA_AMT_DISCOVERY_IP,
  52. /* This attribute specify number of maximum tunnel. */
  53. IFLA_AMT_MAX_TUNNELS,
  54. __IFLA_AMT_MAX,
  55. };
  56. #define IFLA_AMT_MAX (__IFLA_AMT_MAX - 1)
  57. #endif /* _AMT_H_ */