From b99a2dc874c81e8c2b1732626709f3279bef7ceb Mon Sep 17 00:00:00 2001 From: Emil Palm Date: Mon, 13 Feb 2017 15:09:32 +0100 Subject: Adding support for port number 0 and above instead of only above 0 --- packet/bgp/bgp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packet') diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index b10034c5..b66e197f 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -2604,7 +2604,7 @@ func flowSpecNumericParser(rf RouteFamily, args []string) (FlowSpecComponentInte func flowSpecPortParser(rf RouteFamily, args []string) (FlowSpecComponentInterface, error) { f := func(i int) error { - if 0 < i && i < 65536 { + if 0 <= i && i < 65536 { return nil } return fmt.Errorf("port range exceeded") -- cgit v1.2.3