Class: RubySMB::Dcerpc::BindAck

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/ruby_smb/dcerpc/bind_ack.rb

Constant Summary collapse

ACCEPTANCE =

Presentation context negotiation results

0
USER_REJECTION =
1
PROVIDER_REJECTION =
2
REASON_NOT_SPECIFIED =

Reasons for rejection of a context element

0
ABSTRACT_SYNTAX_NOT_SUPPORTED =
1
PROPOSED_TRANSFER_SYNTAXES_NOT_SUPPORTED =
2
LOCAL_LIMIT_EXCEEDED =
3

Instance Method Summary collapse

Instance Method Details

#initialize_instanceObject



60
61
62
63
# File 'lib/ruby_smb/dcerpc/bind_ack.rb', line 60

def initialize_instance
  super
  pdu_header.ptype = RubySMB::Dcerpc::PTypes::BIND_ACK
end

#pad_lengthObject



65
66
67
68
# File 'lib/ruby_smb/dcerpc/bind_ack.rb', line 65

def pad_length
  offset = (sec_addr.abs_offset + sec_addr.do_num_bytes) % 4
  (4 - offset) % 4
end