aboutsummaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-30 11:39:46 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-30 11:39:46 +0200
commit536af7053debe983d7255671221d589c0d044ea5 (patch)
tree4826eeb4b3bb5a7293c2b84ac300c410b3208aa6 /parse
parent882d080d69c279107557a70ebf5e579dc9563824 (diff)
Show more packets
Diffstat (limited to 'parse')
-rw-r--r--parse/parse.go17
1 files changed, 14 insertions, 3 deletions
diff --git a/parse/parse.go b/parse/parse.go
index 598284a..f698303 100644
--- a/parse/parse.go
+++ b/parse/parse.go
@@ -52,6 +52,16 @@ var release = []byte{
0x62, 0x00,
}
+var monitor = []byte{
+ 0xA1, 0x11,
+ 0x02, 0x01, 0x78,
+ 0x02, 0x01, 0x47,
+ 0x30, 0x09,
+ 0x30, 0x05,
+ 0x80, 0x03, 0x31, 0x31, 0x31,
+ 0xA0, 0x00,
+}
+
func Chop(b []byte) (h byte, l int, v []byte, r []byte) {
if len(b) > 1 {
h = b[0]
@@ -95,7 +105,8 @@ func dump(b []byte, indent int) {
func main() {
dump(associate, 0)
- //dump(result, 0)
- //dump(reject, 0)
- //dump(release, 0)
+ dump(result, 0)
+ dump(reject, 0)
+ dump(release, 0)
+ dump(monitor, 0)
}