### Home Classes Methods

### In Files

- lib/packetfu/protos/eth/mixin.rb

### Methods

- #eth_daddr
- #eth_daddr=
- #eth_dst
- #eth_dst=
- #eth_dst_readable
- #eth_proto
- #eth_proto=
- #eth_proto_readable
- #eth_saddr
- #eth_saddr=
- #eth_src
- #eth_src=
- #eth_src_readable

### Files

- .document
- README.rdoc

### Class/Module Index

Quicksearch

- PacketFu
- PacketFu::ARPHeader
- PacketFu::ARPHeaderMixin
- PacketFu::ARPPacket
- PacketFu::AddrIpv6
- PacketFu::Capture
- PacketFu::Config
- PacketFu::EthHeader
- PacketFu::EthHeaderMixin
- PacketFu::EthMac
- PacketFu::EthNic
- PacketFu::EthOui
- PacketFu::EthPacket
- PacketFu::HSRPHeader
- PacketFu::HSRPHeaderMixin
- PacketFu::HSRPPacket
- PacketFu::ICMPHeader
- PacketFu::ICMPHeaderMixin
- PacketFu::ICMPPacket
- PacketFu::IPHeader
- PacketFu::IPHeaderMixin
- PacketFu::IPPacket
- PacketFu::IPv6Header
- PacketFu::IPv6HeaderMixin
- PacketFu::IPv6Packet
- PacketFu::Inject
- PacketFu::InvalidHeader
- PacketFu::InvalidPacket
- PacketFu::LLDPHeader
- PacketFu::LLDPHeaderMixin
- PacketFu::LLDPPacket
- PacketFu::Octets
- PacketFu::Packet
- PacketFu::PcapFile
- PacketFu::PcapHeader
- PacketFu::PcapPacket
- PacketFu::PcapPackets
- PacketFu::Read
- PacketFu::TCPHeader
- PacketFu::TCPHeaderMixin
- PacketFu::TCPPacket
- PacketFu::TcpEcn
- PacketFu::TcpFlags
- PacketFu::TcpHlen
- PacketFu::TcpOption
- PacketFu::TcpOption::ECHO
- PacketFu::TcpOption::ECHOREPLY
- PacketFu::TcpOption::EOL
- PacketFu::TcpOption::MSS
- PacketFu::TcpOption::NOP
- PacketFu::TcpOption::SACK
- PacketFu::TcpOption::SACKOK
- PacketFu::TcpOption::TS
- PacketFu::TcpOption::WS
- PacketFu::TcpOptions
- PacketFu::TcpReserved
- PacketFu::Timestamp
- PacketFu::UDPHeader
- PacketFu::UDPHeaderMixin
- PacketFu::UDPPacket
- PacketFu::Utils
- PacketFu::Write
- StructFu
- StructFu::Int
- StructFu::Int16
- StructFu::Int16be
- StructFu::Int16le
- StructFu::Int32
- StructFu::Int32be
- StructFu::Int32le
- StructFu::Int8
- StructFu::IntString
- StructFu::String
- Struct

No matching classes.

# PacketFu::EthHeaderMixin

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)

### Public Instance Methods

eth_daddr() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 6
    def eth_daddr; self.eth_header.eth_daddr ; end

eth_daddr=(v) click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 7
    def eth_daddr=(v); self.eth_header.eth_daddr= v; end

eth_dst() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 8
    def eth_dst; self.eth_header.eth_dst ; end

eth_dst=(v) click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 9
    def eth_dst=(v); self.eth_header.eth_dst= v; end

eth_dst_readable() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 10
    def eth_dst_readable; self.eth_header.eth_dst_readable ; end

eth_proto() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 11
    def eth_proto; self.eth_header.eth_proto ; end

eth_proto=(v) click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 12
    def eth_proto=(v); self.eth_header.eth_proto= v; end

eth_proto_readable() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 13
    def eth_proto_readable; self.eth_header.eth_proto_readable ; end

eth_saddr() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 14
    def eth_saddr; self.eth_header.eth_saddr ; end

eth_saddr=(v) click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 15
    def eth_saddr=(v); self.eth_header.eth_saddr= v; end

eth_src() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 16
    def eth_src; self.eth_header.eth_src ; end

eth_src=(v) click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 17
    def eth_src=(v); self.eth_header.eth_src= v; end

eth_src_readable() click to toggle source

    # File lib/packetfu/protos/eth/mixin.rb, line 18
    def eth_src_readable; self.eth_header.eth_src_readable ; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.