aboutsummaryrefslogtreecommitdiff
path: root/parse/parse.go
blob: a5ca5460cbc772c0fe9921eab58327c4e42d098b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main

import (
	"fmt"

	"dim13.org/asn1/ber"
)

var t = map[byte]string{
	0x60: "ACSE Associate Request",
	0x61: "ACSE Associate Result",
	0x62: "ACSE Release Request",
	0x63: "ACSE Release Result",
	0x64: "ACSE Abort",
	0xa1: "ROSE Invoke",
	0xa2: "ROSE Response",
}

func main() {
	for n, s := range session {
		fmt.Println(">>> packet", n, t[s[0]])
		fmt.Println(ber.Dump(s))
	}
}