|
Packit Service |
3880ab |
/*
|
|
Packit Service |
3880ab |
* SR-IPv6 implementation
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
* Author:
|
|
Packit Service |
3880ab |
* David Lebrun <david.lebrun@uclouvain.be>
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
3880ab |
* modify it under the terms of the GNU General Public License
|
|
Packit Service |
3880ab |
* as published by the Free Software Foundation; either version
|
|
Packit Service |
3880ab |
* 2 of the License, or (at your option) any later version.
|
|
Packit Service |
3880ab |
*/
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#ifndef _LINUX_SEG6_LOCAL_H
|
|
Packit Service |
3880ab |
#define _LINUX_SEG6_LOCAL_H
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#include <linux/seg6.h>
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
enum {
|
|
Packit Service |
3880ab |
SEG6_LOCAL_UNSPEC,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_SRH,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_TABLE,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_NH4,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_NH6,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_IIF,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_OIF,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_BPF,
|
|
Packit Service |
3880ab |
__SEG6_LOCAL_MAX,
|
|
Packit Service |
3880ab |
};
|
|
Packit Service |
3880ab |
#define SEG6_LOCAL_MAX (__SEG6_LOCAL_MAX - 1)
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
enum {
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_UNSPEC = 0,
|
|
Packit Service |
3880ab |
/* node segment */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END = 1,
|
|
Packit Service |
3880ab |
/* adjacency segment (IPv6 cross-connect) */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_X = 2,
|
|
Packit Service |
3880ab |
/* lookup of next seg NH in table */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_T = 3,
|
|
Packit Service |
3880ab |
/* decap and L2 cross-connect */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_DX2 = 4,
|
|
Packit Service |
3880ab |
/* decap and IPv6 cross-connect */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_DX6 = 5,
|
|
Packit Service |
3880ab |
/* decap and IPv4 cross-connect */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_DX4 = 6,
|
|
Packit Service |
3880ab |
/* decap and lookup of DA in v6 table */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_DT6 = 7,
|
|
Packit Service |
3880ab |
/* decap and lookup of DA in v4 table */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_DT4 = 8,
|
|
Packit Service |
3880ab |
/* binding segment with insertion */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_B6 = 9,
|
|
Packit Service |
3880ab |
/* binding segment with encapsulation */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_B6_ENCAP = 10,
|
|
Packit Service |
3880ab |
/* binding segment with MPLS encap */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_BM = 11,
|
|
Packit Service |
3880ab |
/* lookup last seg in table */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_S = 12,
|
|
Packit Service |
3880ab |
/* forward to SR-unaware VNF with static proxy */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_AS = 13,
|
|
Packit Service |
3880ab |
/* forward to SR-unaware VNF with masquerading */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_AM = 14,
|
|
Packit Service |
3880ab |
/* custom BPF action */
|
|
Packit Service |
3880ab |
SEG6_LOCAL_ACTION_END_BPF = 15,
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
__SEG6_LOCAL_ACTION_MAX,
|
|
Packit Service |
3880ab |
};
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#define SEG6_LOCAL_ACTION_MAX (__SEG6_LOCAL_ACTION_MAX - 1)
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
enum {
|
|
Packit Service |
3880ab |
SEG6_LOCAL_BPF_PROG_UNSPEC,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_BPF_PROG,
|
|
Packit Service |
3880ab |
SEG6_LOCAL_BPF_PROG_NAME,
|
|
Packit Service |
3880ab |
__SEG6_LOCAL_BPF_PROG_MAX,
|
|
Packit Service |
3880ab |
};
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#define SEG6_LOCAL_BPF_PROG_MAX (__SEG6_LOCAL_BPF_PROG_MAX - 1)
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#endif
|