Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  *  SR-IPv6 implementation
0003  *
0004  *  Author:
0005  *  David Lebrun <david.lebrun@uclouvain.be>
0006  *
0007  *
0008  *  This program is free software; you can redistribute it and/or
0009  *      modify it under the terms of the GNU General Public License
0010  *      as published by the Free Software Foundation; either version
0011  *      2 of the License, or (at your option) any later version.
0012  */
0013 
0014 #ifndef _UAPI_LINUX_SEG6_LOCAL_H
0015 #define _UAPI_LINUX_SEG6_LOCAL_H
0016 
0017 #include <linux/seg6.h>
0018 
0019 enum {
0020     SEG6_LOCAL_UNSPEC,
0021     SEG6_LOCAL_ACTION,
0022     SEG6_LOCAL_SRH,
0023     SEG6_LOCAL_TABLE,
0024     SEG6_LOCAL_NH4,
0025     SEG6_LOCAL_NH6,
0026     SEG6_LOCAL_IIF,
0027     SEG6_LOCAL_OIF,
0028     SEG6_LOCAL_BPF,
0029     __SEG6_LOCAL_MAX,
0030 };
0031 #define SEG6_LOCAL_MAX (__SEG6_LOCAL_MAX - 1)
0032 
0033 enum {
0034     SEG6_LOCAL_ACTION_UNSPEC    = 0,
0035     /* node segment */
0036     SEG6_LOCAL_ACTION_END       = 1,
0037     /* adjacency segment (IPv6 cross-connect) */
0038     SEG6_LOCAL_ACTION_END_X     = 2,
0039     /* lookup of next seg NH in table */
0040     SEG6_LOCAL_ACTION_END_T     = 3,
0041     /* decap and L2 cross-connect */
0042     SEG6_LOCAL_ACTION_END_DX2   = 4,
0043     /* decap and IPv6 cross-connect */
0044     SEG6_LOCAL_ACTION_END_DX6   = 5,
0045     /* decap and IPv4 cross-connect */
0046     SEG6_LOCAL_ACTION_END_DX4   = 6,
0047     /* decap and lookup of DA in v6 table */
0048     SEG6_LOCAL_ACTION_END_DT6   = 7,
0049     /* decap and lookup of DA in v4 table */
0050     SEG6_LOCAL_ACTION_END_DT4   = 8,
0051     /* binding segment with insertion */
0052     SEG6_LOCAL_ACTION_END_B6    = 9,
0053     /* binding segment with encapsulation */
0054     SEG6_LOCAL_ACTION_END_B6_ENCAP  = 10,
0055     /* binding segment with MPLS encap */
0056     SEG6_LOCAL_ACTION_END_BM    = 11,
0057     /* lookup last seg in table */
0058     SEG6_LOCAL_ACTION_END_S     = 12,
0059     /* forward to SR-unaware VNF with static proxy */
0060     SEG6_LOCAL_ACTION_END_AS    = 13,
0061     /* forward to SR-unaware VNF with masquerading */
0062     SEG6_LOCAL_ACTION_END_AM    = 14,
0063     /* custom BPF action */
0064     SEG6_LOCAL_ACTION_END_BPF   = 15,
0065 
0066     __SEG6_LOCAL_ACTION_MAX,
0067 };
0068 
0069 #define SEG6_LOCAL_ACTION_MAX (__SEG6_LOCAL_ACTION_MAX - 1)
0070 
0071 enum {
0072     SEG6_LOCAL_BPF_PROG_UNSPEC,
0073     SEG6_LOCAL_BPF_PROG,
0074     SEG6_LOCAL_BPF_PROG_NAME,
0075     __SEG6_LOCAL_BPF_PROG_MAX,
0076 };
0077 
0078 #define SEG6_LOCAL_BPF_PROG_MAX (__SEG6_LOCAL_BPF_PROG_MAX - 1)
0079 
0080 #endif