-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnokia.go
38 lines (33 loc) · 784 Bytes
/
nokia.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package main
import (
"github.com/calmh/ipfix"
)
// Nokia constants
const (
VendorNokia = "vendor-nokia"
)
// add Nokia NAT vendor fields to the dictionary so that it will be resolved by
// the interpreter
func includeNokiaFields(i *ipfix.Interpreter) {
nokia91 := ipfix.DictionaryEntry{
Name: "natInsideSvcid",
FieldID: 91,
EnterpriseID: 637,
Type: ipfix.Uint16,
}
i.AddDictionaryEntry(nokia91)
nokia92 := ipfix.DictionaryEntry{
Name: "natOutsideSvcid",
FieldID: 92,
EnterpriseID: 637,
Type: ipfix.Uint16,
}
i.AddDictionaryEntry(nokia92)
nokia93 := ipfix.DictionaryEntry{
Name: "natSubString",
FieldID: 93,
EnterpriseID: 637,
Type: ipfix.String,
}
i.AddDictionaryEntry(nokia93)
}