summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/constant.go
diff options
context:
space:
mode:
Diffstat (limited to 'packet/bgp/constant.go')
-rw-r--r--packet/bgp/constant.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet/bgp/constant.go b/packet/bgp/constant.go
index d4120471..5ea7b414 100644
--- a/packet/bgp/constant.go
+++ b/packet/bgp/constant.go
@@ -126,7 +126,7 @@ func (f TCPFlag) String() string {
return strings.Join(flags, "")
}
-type BitmaskFlagOp int
+type BitmaskFlagOp uint8
const (
BITMASK_FLAG_OP_OR BitmaskFlagOp = iota
@@ -215,7 +215,7 @@ func (f FragmentFlag) String() string {
return strings.Join(flags, "+")
}
-type DECNumOp int
+type DECNumOp uint8
const (
DEC_NUM_OP_TRUE DECNumOp = iota // true always with END bit set