summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/bgp.go
diff options
context:
space:
mode:
Diffstat (limited to 'packet/bgp/bgp.go')
-rw-r--r--packet/bgp/bgp.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index a3f137c4..d05e7c8d 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -2397,7 +2397,6 @@ func flowSpecEtherTypeParser(rf RouteFamily, args []string) (FlowSpecComponentIn
}
return fmt.Errorf("ethernet type range exceeded")
}
- fmt.Println(args)
return doFlowSpecNumericParser(0, args, validationFunc)
}
@@ -3301,10 +3300,9 @@ func CompareFlowSpecNLRI(n, m *FlowSpecNLRI) (int, error) {
w := shorter[idx]
if v.Type() < w.Type() {
return invert, nil
- } else if w.Type() > v.Type() {
+ } else if v.Type() > w.Type() {
return invert * -1, nil
- }
- if v.Type() == FLOW_SPEC_TYPE_DST_PREFIX || v.Type() == FLOW_SPEC_TYPE_SRC_PREFIX {
+ } else if v.Type() == FLOW_SPEC_TYPE_DST_PREFIX || v.Type() == FLOW_SPEC_TYPE_SRC_PREFIX {
// RFC5575 5.1
//
// For IP prefix values (IP destination and source prefix) precedence is