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
- #arp_daddr_ip ⇒ Object
- #arp_daddr_ip=(v) ⇒ Object
- #arp_daddr_mac ⇒ Object
- #arp_daddr_mac=(v) ⇒ Object
- #arp_dst_ip ⇒ Object
- #arp_dst_ip=(v) ⇒ Object
- #arp_dst_ip_readable ⇒ Object
- #arp_dst_mac ⇒ Object
- #arp_dst_mac=(v) ⇒ Object
- #arp_dst_mac_readable ⇒ Object
- #arp_hw ⇒ Object
- #arp_hw=(v) ⇒ Object
- #arp_hw_len ⇒ Object
- #arp_hw_len=(v) ⇒ Object
- #arp_opcode ⇒ Object
- #arp_opcode=(v) ⇒ Object
- #arp_proto ⇒ Object
- #arp_proto=(v) ⇒ Object
- #arp_proto_len ⇒ Object
- #arp_proto_len=(v) ⇒ Object
- #arp_proto_readable ⇒ Object
- #arp_saddr_ip ⇒ Object
- #arp_saddr_ip=(v) ⇒ Object
- #arp_saddr_mac ⇒ Object
- #arp_saddr_mac=(v) ⇒ Object
- #arp_src_ip ⇒ Object
- #arp_src_ip=(v) ⇒ Object
- #arp_src_ip_readable ⇒ Object
- #arp_src_mac ⇒ Object
- #arp_src_mac=(v) ⇒ Object
- #arp_src_mac_readable ⇒ Object
Instance Method Details
#arp_daddr_ip ⇒ Object
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_mac ⇒ Object
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_ip ⇒ Object
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_readable ⇒ Object
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_mac ⇒ Object
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_readable ⇒ Object
34 |
# File 'lib/packetfu/protos/arp/mixin.rb', line 34 def arp_dst_mac_readable; self.arp_header.arp_dst_mac_readable; end |
#arp_hw ⇒ Object
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_len ⇒ Object
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_opcode ⇒ Object
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_proto ⇒ Object
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_len ⇒ Object
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_readable ⇒ Object
37 |
# File 'lib/packetfu/protos/arp/mixin.rb', line 37 def arp_proto_readable; self.arp_header.arp_proto_readable; end |
#arp_saddr_ip ⇒ Object
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_mac ⇒ Object
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_ip ⇒ Object
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_readable ⇒ Object
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_mac ⇒ Object
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_readable ⇒ Object
33 |
# File 'lib/packetfu/protos/arp/mixin.rb', line 33 def arp_src_mac_readable; self.arp_header.arp_src_mac_readable; end |