summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmil Palm <emil@x86.nu>2017-02-13 15:09:32 +0100
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-02-14 00:43:15 -0800
commitb99a2dc874c81e8c2b1732626709f3279bef7ceb (patch)
tree2142d5abc3bc58bf9d8490c4039ef9719202f4fc
parente84bf755a9740d5bca3405da494d3c4a85d30679 (diff)
Adding support for port number 0 and above instead of only above 0
-rw-r--r--packet/bgp/bgp.go2
1 files changed, 1 insertions, 1 deletions
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")