2 * SR-IPv6 implementation
5 * David Lebrun <david.lebrun@uclouvain.be>
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.
14 #ifndef _UAPI_LINUX_SEG6_LOCAL_H
15 #define _UAPI_LINUX_SEG6_LOCAL_H
17 #include <linux/seg6.h>
32 #define SEG6_LOCAL_MAX (__SEG6_LOCAL_MAX - 1)
35 SEG6_LOCAL_ACTION_UNSPEC = 0,
37 SEG6_LOCAL_ACTION_END = 1,
38 /* adjacency segment (IPv6 cross-connect) */
39 SEG6_LOCAL_ACTION_END_X = 2,
40 /* lookup of next seg NH in table */
41 SEG6_LOCAL_ACTION_END_T = 3,
42 /* decap and L2 cross-connect */
43 SEG6_LOCAL_ACTION_END_DX2 = 4,
44 /* decap and IPv6 cross-connect */
45 SEG6_LOCAL_ACTION_END_DX6 = 5,
46 /* decap and IPv4 cross-connect */
47 SEG6_LOCAL_ACTION_END_DX4 = 6,
48 /* decap and lookup of DA in v6 table */
49 SEG6_LOCAL_ACTION_END_DT6 = 7,
50 /* decap and lookup of DA in v4 table */
51 SEG6_LOCAL_ACTION_END_DT4 = 8,
52 /* binding segment with insertion */
53 SEG6_LOCAL_ACTION_END_B6 = 9,
54 /* binding segment with encapsulation */
55 SEG6_LOCAL_ACTION_END_B6_ENCAP = 10,
56 /* binding segment with MPLS encap */
57 SEG6_LOCAL_ACTION_END_BM = 11,
58 /* lookup last seg in table */
59 SEG6_LOCAL_ACTION_END_S = 12,
60 /* forward to SR-unaware VNF with static proxy */
61 SEG6_LOCAL_ACTION_END_AS = 13,
62 /* forward to SR-unaware VNF with masquerading */
63 SEG6_LOCAL_ACTION_END_AM = 14,
64 /* custom BPF action */
65 SEG6_LOCAL_ACTION_END_BPF = 15,
67 __SEG6_LOCAL_ACTION_MAX,
70 #define SEG6_LOCAL_ACTION_MAX (__SEG6_LOCAL_ACTION_MAX - 1)
73 SEG6_LOCAL_BPF_PROG_UNSPEC,
75 SEG6_LOCAL_BPF_PROG_NAME,
76 __SEG6_LOCAL_BPF_PROG_MAX,
79 #define SEG6_LOCAL_BPF_PROG_MAX (__SEG6_LOCAL_BPF_PROG_MAX - 1)