Method: PacketGen::Plugin::IKE::SAProposal#initialize
- Defined in:
- lib/packetgen/plugin/ike/sa.rb
#initialize(options = {}) ⇒ SAProposal
Returns a new instance of SAProposal.
445 446 447 448 449 450 |
# File 'lib/packetgen/plugin/ike/sa.rb', line 445 def initialize(={}) [:spi_size] = [:spi].size if [:spi] && [:spi_size].nil? super self.length = sz unless [:length] self.protocol = [:protocol] if [:protocol] end |