Method: PacketGen::Header::GRE#initialize

Defined in:
lib/packetgen/header/gre.rb

#initialize(options = {}) ⇒ GRE

Returns a new instance of GRE.

Since:

  • 2.1.0

[View source]

87
88
89
90
# File 'lib/packetgen/header/gre.rb', line 87

def initialize(options={})
  opts = { r: false, reserved0: 0, version: 0 }.merge(options)
  super(opts)
end