Module: PacketFu::ARPHeaderMixin

Included in:
ARPPacket
Defined in:
lib/packetfu/protos/arp/mixin.rb

Overview

This Mixin simplifies access to the ARPHeaders. Mix this in with your packet interface, and it will add methods that essentially delegate to the ‘arp_header’ method (assuming that it is a ARPHeader object)

Instance Method Summary collapse

Instance Method Details

#arp_daddr_ipObject



32
# File 'lib/packetfu/protos/arp/mixin.rb', line 32

def arp_daddr_ip; self.arp_header.arp_daddr_ip; end

#arp_daddr_ip=(v) ⇒ Object



31
# File 'lib/packetfu/protos/arp/mixin.rb', line 31

def arp_daddr_ip=(v); self.arp_header.arp_daddr_ip= v; end

#arp_daddr_macObject



28
# File 'lib/packetfu/protos/arp/mixin.rb', line 28

def arp_daddr_mac; self.arp_header.arp_daddr_mac; end

#arp_daddr_mac=(v) ⇒ Object



27
# File 'lib/packetfu/protos/arp/mixin.rb', line 27

def arp_daddr_mac=(v); self.arp_header.arp_daddr_mac= v; end

#arp_dst_ipObject



24
# File 'lib/packetfu/protos/arp/mixin.rb', line 24

def arp_dst_ip; self.arp_header.arp_dst_ip; end

#arp_dst_ip=(v) ⇒ Object



23
# File 'lib/packetfu/protos/arp/mixin.rb', line 23

def arp_dst_ip=(v); self.arp_header.arp_dst_ip= v; end

#arp_dst_ip_readableObject



36
# File 'lib/packetfu/protos/arp/mixin.rb', line 36

def arp_dst_ip_readable; self.arp_header.arp_dst_ip_readable; end

#arp_dst_macObject



22
# File 'lib/packetfu/protos/arp/mixin.rb', line 22

def arp_dst_mac; self.arp_header.arp_dst_mac; end

#arp_dst_mac=(v) ⇒ Object



21
# File 'lib/packetfu/protos/arp/mixin.rb', line 21

def arp_dst_mac=(v); self.arp_header.arp_dst_mac= v; end

#arp_dst_mac_readableObject



34
# File 'lib/packetfu/protos/arp/mixin.rb', line 34

def arp_dst_mac_readable; self.arp_header.arp_dst_mac_readable; end

#arp_hwObject



8
# File 'lib/packetfu/protos/arp/mixin.rb', line 8

def arp_hw; self.arp_header.arp_hw; end

#arp_hw=(v) ⇒ Object



7
# File 'lib/packetfu/protos/arp/mixin.rb', line 7

def arp_hw=(v); self.arp_header.arp_hw= v; end

#arp_hw_lenObject



12
# File 'lib/packetfu/protos/arp/mixin.rb', line 12

def arp_hw_len; self.arp_header.arp_hw_len; end

#arp_hw_len=(v) ⇒ Object



11
# File 'lib/packetfu/protos/arp/mixin.rb', line 11

def arp_hw_len=(v); self.arp_header.arp_hw_len= v; end

#arp_opcodeObject



16
# File 'lib/packetfu/protos/arp/mixin.rb', line 16

def arp_opcode; self.arp_header.arp_opcode; end

#arp_opcode=(v) ⇒ Object



15
# File 'lib/packetfu/protos/arp/mixin.rb', line 15

def arp_opcode=(v); self.arp_header.arp_opcode= v; end

#arp_protoObject



10
# File 'lib/packetfu/protos/arp/mixin.rb', line 10

def arp_proto; self.arp_header.arp_proto; end

#arp_proto=(v) ⇒ Object



9
# File 'lib/packetfu/protos/arp/mixin.rb', line 9

def arp_proto=(v); self.arp_header.arp_proto= v; end

#arp_proto_lenObject



14
# File 'lib/packetfu/protos/arp/mixin.rb', line 14

def arp_proto_len; self.arp_header.arp_proto_len; end

#arp_proto_len=(v) ⇒ Object



13
# File 'lib/packetfu/protos/arp/mixin.rb', line 13

def arp_proto_len=(v); self.arp_header.arp_proto_len= v; end

#arp_proto_readableObject



37
# File 'lib/packetfu/protos/arp/mixin.rb', line 37

def arp_proto_readable; self.arp_header.arp_proto_readable; end

#arp_saddr_ipObject



30
# File 'lib/packetfu/protos/arp/mixin.rb', line 30

def arp_saddr_ip; self.arp_header.arp_saddr_ip; end

#arp_saddr_ip=(v) ⇒ Object



29
# File 'lib/packetfu/protos/arp/mixin.rb', line 29

def arp_saddr_ip=(v); self.arp_header.arp_saddr_ip= v; end

#arp_saddr_macObject



26
# File 'lib/packetfu/protos/arp/mixin.rb', line 26

def arp_saddr_mac; self.arp_header.arp_saddr_mac; end

#arp_saddr_mac=(v) ⇒ Object



25
# File 'lib/packetfu/protos/arp/mixin.rb', line 25

def arp_saddr_mac=(v); self.arp_header.arp_saddr_mac= v; end

#arp_src_ipObject



20
# File 'lib/packetfu/protos/arp/mixin.rb', line 20

def arp_src_ip; self.arp_header.arp_src_ip; end

#arp_src_ip=(v) ⇒ Object



19
# File 'lib/packetfu/protos/arp/mixin.rb', line 19

def arp_src_ip=(v); self.arp_header.arp_src_ip= v; end

#arp_src_ip_readableObject



35
# File 'lib/packetfu/protos/arp/mixin.rb', line 35

def arp_src_ip_readable; self.arp_header.arp_src_ip_readable; end

#arp_src_macObject



18
# File 'lib/packetfu/protos/arp/mixin.rb', line 18

def arp_src_mac; self.arp_header.arp_src_mac; end

#arp_src_mac=(v) ⇒ Object



17
# File 'lib/packetfu/protos/arp/mixin.rb', line 17

def arp_src_mac=(v); self.arp_header.arp_src_mac= v; end

#arp_src_mac_readableObject



33
# File 'lib/packetfu/protos/arp/mixin.rb', line 33

def arp_src_mac_readable; self.arp_header.arp_src_mac_readable; end