Class: PacketGen::Header::BOOTP

Inherits:
Object
  • Object
show all
Defined in:
lib/pcap2json/packetgen_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/pcap2json/packetgen_extensions.rb', line 40

def to_h
  {
    "op" => self.op,
    "htype" => self.htype,
    "hlen" => self.hlen,
    "xid" => self.xid,
    "secs" => self.secs,
    "flags" => self.flags,
    "ciaddr" => self.ciaddr,
    "yiaddr" => self.yiaddr,
    "siaddr" => self.siaddr,
    "giaddr" => self.giaddr,
    "chaddr" => self.chaddr,
    "sname" => self.sname,
    "file" => self.file,
  }
end