### Home Classes Methods

### In Files

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

### Methods

- #tcp_ack
- #tcp_ack=
- #tcp_ack_readable
- #tcp_calc_hlen
- #tcp_calc_seq
- #tcp_calc_src
- #tcp_dport
- #tcp_dport=
- #tcp_dst
- #tcp_dst=
- #tcp_ecn
- #tcp_ecn=
- #tcp_flags
- #tcp_flags=
- #tcp_flags_dotmap
- #tcp_flags_readable
- #tcp_hlen
- #tcp_hlen=
- #tcp_options
- #tcp_options=
- #tcp_opts
- #tcp_opts=
- #tcp_opts_len
- #tcp_opts_readable
- #tcp_recalc
- #tcp_reserved
- #tcp_reserved=
- #tcp_seq
- #tcp_seq=
- #tcp_seq_readable
- #tcp_sport
- #tcp_sport=
- #tcp_src
- #tcp_src=
- #tcp_sum
- #tcp_sum=
- #tcp_sum_readable
- #tcp_urg
- #tcp_urg=
- #tcp_win
- #tcp_win=

### 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::TCPHeaderMixin

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

### Public Instance Methods

tcp_ack() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 13
    def tcp_ack; self.tcp_header.tcp_ack; end

tcp_ack=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 12
    def tcp_ack=(v); self.tcp_header.tcp_ack= v; end

tcp_ack_readable() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 41
    def tcp_ack_readable; self.tcp_header.tcp_ack_readable; end

tcp_calc_hlen() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 31
    def tcp_calc_hlen; self.tcp_header.tcp_calc_hlen; end

tcp_calc_seq() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 28
    def tcp_calc_seq; self.tcp_header.tcp_calc_seq; end

tcp_calc_src() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 29
    def tcp_calc_src; self.tcp_header.tcp_calc_src; end

tcp_dport() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 37
    def tcp_dport; self.tcp_header.tcp_dport; end

tcp_dport=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 38
    def tcp_dport=(v); self.tcp_header.tcp_dport= v; end

tcp_dst() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 9
    def tcp_dst; self.tcp_header.tcp_dst; end

tcp_dst=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 8
    def tcp_dst=(v); self.tcp_header.tcp_dst= v; end

tcp_ecn() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 24
    def tcp_ecn; self.tcp_header.tcp_ecn; end

tcp_ecn=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 25
    def tcp_ecn=(v); self.tcp_header.tcp_ecn= v; end

tcp_flags() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 45
    def tcp_flags; self.tcp_header.tcp_flags; end

tcp_flags=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 46
    def tcp_flags=(v); self.tcp_header.tcp_flags= v; end

tcp_flags_dotmap() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 33
    def tcp_flags_dotmap; self.tcp_header.tcp_flags_dotmap; end

tcp_flags_readable() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 40
    def tcp_flags_readable; self.tcp_header.tcp_flags_readable; end

tcp_hlen() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 20
    def tcp_hlen; self.tcp_header.tcp_hlen; end

tcp_hlen=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 21
    def tcp_hlen=(v); self.tcp_header.tcp_hlen= v; end

tcp_options() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 32
    def tcp_options; self.tcp_header.tcp_options; end

tcp_options=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 34
    def tcp_options=(v); self.tcp_header.tcp_options= v; end

tcp_opts() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 26
    def tcp_opts; self.tcp_header.tcp_opts; end

tcp_opts=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 27
    def tcp_opts=(v); self.tcp_header.tcp_opts= v; end

tcp_opts_len() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 30
    def tcp_opts_len; self.tcp_header.tcp_opts_len; end

tcp_opts_readable() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 44
    def tcp_opts_readable; self.tcp_header.tcp_opts_readable; end

tcp_recalc(*v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 39
    def tcp_recalc(*v); self.tcp_header.tcp_recalc(*v); end

tcp_reserved() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 22
    def tcp_reserved; self.tcp_header.tcp_reserved; end

tcp_reserved=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 23
    def tcp_reserved=(v); self.tcp_header.tcp_reserved= v; end

tcp_seq() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 11
    def tcp_seq; self.tcp_header.tcp_seq; end

tcp_seq=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 10
    def tcp_seq=(v); self.tcp_header.tcp_seq= v; end

tcp_seq_readable() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 42
    def tcp_seq_readable; self.tcp_header.tcp_seq_readable; end

tcp_sport() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 35
    def tcp_sport; self.tcp_header.tcp_sport; end

tcp_sport=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 36
    def tcp_sport=(v); self.tcp_header.tcp_sport= v; end

tcp_src() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 7
    def tcp_src; self.tcp_header.tcp_src; end

tcp_src=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 6
    def tcp_src=(v); self.tcp_header.tcp_src= v; end

tcp_sum() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 17
    def tcp_sum; self.tcp_header.tcp_sum; end

tcp_sum=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 16
    def tcp_sum=(v); self.tcp_header.tcp_sum= v; end

tcp_sum_readable() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 43
    def tcp_sum_readable; self.tcp_header.tcp_sum_readable; end

tcp_urg() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 19
    def tcp_urg; self.tcp_header.tcp_urg; end

tcp_urg=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 18
    def tcp_urg=(v); self.tcp_header.tcp_urg= v; end

tcp_win() click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 15
    def tcp_win; self.tcp_header.tcp_win; end

tcp_win=(v) click to toggle source

    # File lib/packetfu/protos/tcp/mixin.rb, line 14
    def tcp_win=(v); self.tcp_header.tcp_win= v; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.