diff options
author | Denis Shevchenko <shevchenko_d@bifit.com> | 2017-05-18 13:01:19 +0300 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-05-23 14:30:33 +0900 |
commit | 579c128555046ddf0d8dbe9a57a1a990a010d85e (patch) | |
tree | 960b9c330f04bfe1a023a383eae0b53aa90a4c1e | |
parent | d3d1f3999d94031835984c7692578aa0f00498e4 (diff) |
flowspec: formatting of flowspec ranges in nice order
-rw-r--r-- | packet/bgp/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 17d96180..12403368 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -3293,7 +3293,7 @@ func formatNumeric(op int, value int) string { if DECNumOp(gtlteqOnly) == DECNumOpValueMap[DECNumOpNameMap[DEC_NUM_OP_FALSE]] || DECNumOp(gtlteqOnly) == DECNumOpValueMap[DECNumOpNameMap[DEC_NUM_OP_TRUE]] { return fmt.Sprintf("%s%s", formatNumericOpFrontQty(op), formatNumericOpBackLogic(op)) } else { - return fmt.Sprintf("%s%d%s", formatNumericOpFrontQty(op), value, formatNumericOpBackLogic(op)) + return fmt.Sprintf("%s%s%d", formatNumericOpBackLogic(op), formatNumericOpFrontQty(op), value) } } |