Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Jun 28, 2024
1 parent 1105f6f commit f26ab9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions internal/netfunc/headend-encaps-ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (h HeadendEncapsWithCtrl) Handle(packet []byte) ([]byte, error) {
return nil, err
}
src := net.ParseIP("fc00:3:1:0A03:0001:0868::30") // FIXME: dont hardcode
nextHop := action.NextHop.AsSlice() // FIXME: allow multiple segments
nextHop := action.NextHop.AsSlice()
ipheader := &layers.IPv6{
SrcIP: src,
// S06. Set the IPv6 DA = B
Expand All @@ -52,8 +52,6 @@ func (h HeadendEncapsWithCtrl) Handle(packet []byte) ([]byte, error) {
// TODO: Generate a FlowLabel with hash(IPv6SA + IPv6DA + policy)
TrafficClass: 0, // FIXME: put this in Action
}
// FIXME: allow multiple segments
//segList := append([]net.IP{seg0}, bsid.ReverseSegmentsList()...)
segList := []net.IP{}
for _, seg := range action.SRH {
segList = append(segList, seg.AsSlice())
Expand Down
2 changes: 1 addition & 1 deletion internal/netfunc/headend-gtp4-ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (h HeadendGTP4WithCtrl) Handle(packet []byte) ([]byte, error) {
HopLimit: h.HopLimit(),
// TODO: Generate a FlowLabel with hash(IPv6SA + IPv6DA + policy)
//TrafficClass: qfi << 2,
//TrafficClass: 0, // FIXME
TrafficClass: 0, // FIXME
}
segList := []net.IP{}
for _, seg := range action.SRH {
Expand Down

0 comments on commit f26ab9e

Please sign in to comment.