added a compiler for ASN/BER syntax, avoids interpreting it for
every packet we parse.
This commit is contained in:
parent
7fd1089115
commit
bc54a9c826
2 changed files with 34 additions and 12 deletions
|
@ -271,7 +271,7 @@ module Net
|
|||
SearchScope_WholeSubtree = 2
|
||||
SearchScopes = [SearchScope_BaseObject, SearchScope_SingleLevel, SearchScope_WholeSubtree]
|
||||
|
||||
AsnSyntax = {
|
||||
AsnSyntax = BER.compile_syntax({
|
||||
:application => {
|
||||
:constructed => {
|
||||
0 => :array, # BindRequest
|
||||
|
@ -306,7 +306,7 @@ module Net
|
|||
3 => :array, # Seach referral
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
DefaultHost = "127.0.0.1"
|
||||
DefaultPort = 389
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue