Skip to content

Commit

Permalink
Add OK frame type
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Jun 20, 2019
1 parent 35b4f9e commit 072a8fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/dmsg/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (ft FrameType) String() string {
CloseType: "CLOSE",
FwdType: "FWD",
AckType: "ACK",
OkType: "OK",
}
if int(ft) >= len(names) {
return fmt.Sprintf("UNKNOWN:%d", ft)
Expand All @@ -66,6 +67,7 @@ const (
CloseType = FrameType(0x3)
FwdType = FrameType(0xa)
AckType = FrameType(0xb)
OkType = FrameType(0xc)
)

// Frame is the dmsg data unit.
Expand Down

0 comments on commit 072a8fe

Please sign in to comment.