summaryrefslogtreecommitdiffhomepage
path: root/packet
diff options
context:
space:
mode:
authorDenis Shevchenko <shevchenko_d@bifit.com>2017-05-12 10:24:14 +0300
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-05-23 14:30:33 +0900
commitd3d1f3999d94031835984c7692578aa0f00498e4 (patch)
tree25c30764e1f55672248a3774046e381638b6249c /packet
parent2922f6e7f8ad76e118a9eaa9de248ce5022fa4b0 (diff)
flowspec: correct handling of | bit case in opflags
Diffstat (limited to 'packet')
-rw-r--r--packet/bgp/bgp.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index b7470529..17d96180 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -2745,6 +2745,8 @@ func parseDecValuesCmd(myCmd string, validationFunc func(int) error) ([][2]int,
decOperatorsAndValues = append(decOperatorsAndValues, operatorValue)
if myCmdChar == DECLogicOpNameMap[DEC_LOGIC_OP_AND] {
operatorValue[0] = int(bit)
+ } else {
+ operatorValue[0] = 0
}
operatorValue[1] = 0
index++