Skip to content

Commit f26ab9e

Browse files
committed
Remove comments
1 parent 1105f6f commit f26ab9e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

internal/netfunc/headend-encaps-ctrl.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (h HeadendEncapsWithCtrl) Handle(packet []byte) ([]byte, error) {
4141
return nil, err
4242
}
4343
src := net.ParseIP("fc00:3:1:0A03:0001:0868::30") // FIXME: dont hardcode
44-
nextHop := action.NextHop.AsSlice() // FIXME: allow multiple segments
44+
nextHop := action.NextHop.AsSlice()
4545
ipheader := &layers.IPv6{
4646
SrcIP: src,
4747
// S06. Set the IPv6 DA = B
@@ -52,8 +52,6 @@ func (h HeadendEncapsWithCtrl) Handle(packet []byte) ([]byte, error) {
5252
// TODO: Generate a FlowLabel with hash(IPv6SA + IPv6DA + policy)
5353
TrafficClass: 0, // FIXME: put this in Action
5454
}
55-
// FIXME: allow multiple segments
56-
//segList := append([]net.IP{seg0}, bsid.ReverseSegmentsList()...)
5755
segList := []net.IP{}
5856
for _, seg := range action.SRH {
5957
segList = append(segList, seg.AsSlice())

internal/netfunc/headend-gtp4-ctrl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (h HeadendGTP4WithCtrl) Handle(packet []byte) ([]byte, error) {
127127
HopLimit: h.HopLimit(),
128128
// TODO: Generate a FlowLabel with hash(IPv6SA + IPv6DA + policy)
129129
//TrafficClass: qfi << 2,
130-
//TrafficClass: 0, // FIXME
130+
TrafficClass: 0, // FIXME
131131
}
132132
segList := []net.IP{}
133133
for _, seg := range action.SRH {

0 commit comments

Comments
 (0)