lib/packetgen/plugin/ike/payload.rb
def calc_length
        # Here, #body is next payload, so body size should not be taken in
        # account (payload's real body is #content).
        self.length = sz - self[:body].sz
      end
# Compute length and set {#length} field
# @return [Integer] new length
Compute length and set {#length} field
Compute length and set { #length } field
def calc_length
        self.length = sz - self[:body].sz
      end
def calc_length self . length = sz - self [ :body ] . sz end
Compute length and set {#length} field
Compute length and set { #length } field
# Here, #body is next payload, so body size should not be taken in # account (payload's real body is #content).
None
Integer