This Mixin simplifies access to the EthHeaders. Mix this in with your packet interface, and it will add methods that essentially delegate to the ‘eth_header’ method (assuming that it is a EthHeader object)
# File lib/packetfu/protos/eth/mixin.rb, line 6 def eth_daddr; self.eth_header.eth_daddr ; end
# File lib/packetfu/protos/eth/mixin.rb, line 7 def eth_daddr=(v); self.eth_header.eth_daddr= v; end
# File lib/packetfu/protos/eth/mixin.rb, line 8 def eth_dst; self.eth_header.eth_dst ; end
# File lib/packetfu/protos/eth/mixin.rb, line 9 def eth_dst=(v); self.eth_header.eth_dst= v; end
# File lib/packetfu/protos/eth/mixin.rb, line 10 def eth_dst_readable; self.eth_header.eth_dst_readable ; end
# File lib/packetfu/protos/eth/mixin.rb, line 11 def eth_proto; self.eth_header.eth_proto ; end
# File lib/packetfu/protos/eth/mixin.rb, line 12 def eth_proto=(v); self.eth_header.eth_proto= v; end
# File lib/packetfu/protos/eth/mixin.rb, line 13 def eth_proto_readable; self.eth_header.eth_proto_readable ; end
# File lib/packetfu/protos/eth/mixin.rb, line 14 def eth_saddr; self.eth_header.eth_saddr ; end
# File lib/packetfu/protos/eth/mixin.rb, line 15 def eth_saddr=(v); self.eth_header.eth_saddr= v; end
# File lib/packetfu/protos/eth/mixin.rb, line 16 def eth_src; self.eth_header.eth_src ; end
Generated with the Darkfish Rdoc Generator 2.