Skip to content

Commit 78aca1a

Browse files
wnageleaboch
authored andcommitted
Add SRv6 support for End.DT46
1 parent 7adcc37 commit 78aca1a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

nl/seg6local_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const (
3737
SEG6_LOCAL_ACTION_END_AS // 13
3838
SEG6_LOCAL_ACTION_END_AM // 14
3939
SEG6_LOCAL_ACTION_END_BPF // 15
40+
SEG6_LOCAL_ACTION_END_DT46 // 16
4041
__SEG6_LOCAL_ACTION_MAX
4142
)
4243
const (

route_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,6 +1921,9 @@ func TestSEG6LocalEqual(t *testing.T) {
19211921
var flags_end_dt6 [nl.SEG6_LOCAL_MAX]bool
19221922
flags_end_dt6[nl.SEG6_LOCAL_ACTION] = true
19231923
flags_end_dt6[nl.SEG6_LOCAL_TABLE] = true
1924+
var flags_end_dt46 [nl.SEG6_LOCAL_MAX]bool
1925+
flags_end_dt46[nl.SEG6_LOCAL_ACTION] = true
1926+
flags_end_dt46[nl.SEG6_LOCAL_VRFTABLE] = true
19241927
var flags_end_dt4 [nl.SEG6_LOCAL_MAX]bool
19251928
flags_end_dt4[nl.SEG6_LOCAL_ACTION] = true
19261929
flags_end_dt4[nl.SEG6_LOCAL_TABLE] = true
@@ -1974,6 +1977,11 @@ func TestSEG6LocalEqual(t *testing.T) {
19741977
Action: nl.SEG6_LOCAL_ACTION_END_DT4,
19751978
Table: 40,
19761979
},
1980+
{
1981+
Flags: flags_end_dt46,
1982+
Action: nl.SEG6_LOCAL_ACTION_END_DT46,
1983+
VrfTable: 50,
1984+
},
19771985
{
19781986
Flags: flags_end_b6,
19791987
Action: nl.SEG6_LOCAL_ACTION_END_B6,

0 commit comments

Comments
 (0)