seg6_local.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * SR-IPv6 implementation
  3. *
  4. * Author:
  5. * David Lebrun <david.lebrun@uclouvain.be>
  6. *
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version
  11. * 2 of the License, or (at your option) any later version.
  12. */
  13. #ifndef _UAPI_LINUX_SEG6_LOCAL_H
  14. #define _UAPI_LINUX_SEG6_LOCAL_H
  15. #include <linux/seg6.h>
  16. enum {
  17. SEG6_LOCAL_UNSPEC,
  18. SEG6_LOCAL_ACTION,
  19. SEG6_LOCAL_SRH,
  20. SEG6_LOCAL_TABLE,
  21. SEG6_LOCAL_NH4,
  22. SEG6_LOCAL_NH6,
  23. SEG6_LOCAL_IIF,
  24. SEG6_LOCAL_OIF,
  25. __SEG6_LOCAL_MAX,
  26. };
  27. #define SEG6_LOCAL_MAX (__SEG6_LOCAL_MAX - 1)
  28. enum {
  29. SEG6_LOCAL_ACTION_UNSPEC = 0,
  30. /* node segment */
  31. SEG6_LOCAL_ACTION_END = 1,
  32. /* adjacency segment (IPv6 cross-connect) */
  33. SEG6_LOCAL_ACTION_END_X = 2,
  34. /* lookup of next seg NH in table */
  35. SEG6_LOCAL_ACTION_END_T = 3,
  36. /* decap and L2 cross-connect */
  37. SEG6_LOCAL_ACTION_END_DX2 = 4,
  38. /* decap and IPv6 cross-connect */
  39. SEG6_LOCAL_ACTION_END_DX6 = 5,
  40. /* decap and IPv4 cross-connect */
  41. SEG6_LOCAL_ACTION_END_DX4 = 6,
  42. /* decap and lookup of DA in v6 table */
  43. SEG6_LOCAL_ACTION_END_DT6 = 7,
  44. /* decap and lookup of DA in v4 table */
  45. SEG6_LOCAL_ACTION_END_DT4 = 8,
  46. /* binding segment with insertion */
  47. SEG6_LOCAL_ACTION_END_B6 = 9,
  48. /* binding segment with encapsulation */
  49. SEG6_LOCAL_ACTION_END_B6_ENCAP = 10,
  50. /* binding segment with MPLS encap */
  51. SEG6_LOCAL_ACTION_END_BM = 11,
  52. /* lookup last seg in table */
  53. SEG6_LOCAL_ACTION_END_S = 12,
  54. /* forward to SR-unaware VNF with static proxy */
  55. SEG6_LOCAL_ACTION_END_AS = 13,
  56. /* forward to SR-unaware VNF with masquerading */
  57. SEG6_LOCAL_ACTION_END_AM = 14,
  58. __SEG6_LOCAL_ACTION_MAX,
  59. };
  60. #define SEG6_LOCAL_ACTION_MAX (__SEG6_LOCAL_ACTION_MAX - 1)
  61. #endif