### Home Classes Methods

### In Files

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

### Methods

- #udp_calc_len
- #udp_dport
- #udp_dport=
- #udp_dst
- #udp_dst=
- #udp_len
- #udp_len=
- #udp_recalc
- #udp_sport
- #udp_sport=
- #udp_src
- #udp_src=
- #udp_sum
- #udp_sum=
- #udp_sum_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::UDPHeaderMixin

This Mixin simplifies access to the UDPHeaders. Mix this in with your packet interface, and it will add methods that essentially delegate to the 'udp_header' method (assuming that it is a UDPHeader object)

### Public Instance Methods

udp_calc_len() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 14
    def udp_calc_len; self.udp_header.udp_calc_len; end

udp_dport() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 18
    def udp_dport; self.udp_header.udp_dport; end

udp_dport=(v) click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 19
    def udp_dport=(v); self.udp_header.udp_dport= v; end

udp_dst() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 9
    def udp_dst; self.udp_header.udp_dst; end

udp_dst=(v) click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 8
    def udp_dst=(v); self.udp_header.udp_dst= v; end

udp_len() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 11
    def udp_len; self.udp_header.udp_len; end

udp_len=(v) click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 10
    def udp_len=(v); self.udp_header.udp_len= v; end

udp_recalc(*v) click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 15
    def udp_recalc(*v); self.udp_header.udp_recalc(*v); end

udp_sport() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 16
    def udp_sport; self.udp_header.udp_sport; end

udp_sport=(v) click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 17
    def udp_sport=(v); self.udp_header.udp_sport= v; end

udp_src() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 7
    def udp_src; self.udp_header.udp_src; end

udp_src=(v) click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 6
    def udp_src=(v); self.udp_header.udp_src= v; end

udp_sum() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 13
    def udp_sum; self.udp_header.udp_sum; end

udp_sum=(v) click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 12
    def udp_sum=(v); self.udp_header.udp_sum= v; end

udp_sum_readable() click to toggle source

    # File lib/packetfu/protos/udp/mixin.rb, line 20
    def udp_sum_readable; self.udp_header.udp_sum_readable; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.