Class: Capp::Packet::ARPHeader

Inherits:
Struct
  • Object
show all
Defined in:
lib/capp/packet.rb

Overview

ARP header. See RFC 826

Instance Attribute Summary collapse

Instance Attribute Details

#hardwareObject

Returns the value of attribute hardware

Returns:

  • (Object)

    the current value of hardware



25
26
27
# File 'lib/capp/packet.rb', line 25

def hardware
  @hardware
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



25
26
27
# File 'lib/capp/packet.rb', line 25

def operation
  @operation
end

#protocolObject

Returns the value of attribute protocol

Returns:

  • (Object)

    the current value of protocol



25
26
27
# File 'lib/capp/packet.rb', line 25

def protocol
  @protocol
end

#sender_hardware_addressObject Also known as: sha

Returns the value of attribute sender_hardware_address

Returns:

  • (Object)

    the current value of sender_hardware_address



25
26
27
# File 'lib/capp/packet.rb', line 25

def sender_hardware_address
  @sender_hardware_address
end

#sender_protocol_addressObject Also known as: spa

Returns the value of attribute sender_protocol_address

Returns:

  • (Object)

    the current value of sender_protocol_address



25
26
27
# File 'lib/capp/packet.rb', line 25

def sender_protocol_address
  @sender_protocol_address
end

#target_hardware_addressObject Also known as: tha

Returns the value of attribute target_hardware_address

Returns:

  • (Object)

    the current value of target_hardware_address



25
26
27
# File 'lib/capp/packet.rb', line 25

def target_hardware_address
  @target_hardware_address
end

#target_protocol_addressObject Also known as: tpa

Returns the value of attribute target_protocol_address

Returns:

  • (Object)

    the current value of target_protocol_address



25
26
27
# File 'lib/capp/packet.rb', line 25

def target_protocol_address
  @target_protocol_address
end