Module: PacketFu::TCPHeaderMixin
- Included in:
- TCPPacket
- Defined in:
- lib/packetfu/protos/tcp/mixin.rb
Overview
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)
Instance Method Summary collapse
- #tcp_ack ⇒ Object
- #tcp_ack=(v) ⇒ Object
- #tcp_ack_readable ⇒ Object
- #tcp_calc_hlen ⇒ Object
- #tcp_calc_seq ⇒ Object
- #tcp_calc_src ⇒ Object
- #tcp_dport ⇒ Object
- #tcp_dport=(v) ⇒ Object
- #tcp_dst ⇒ Object
- #tcp_dst=(v) ⇒ Object
- #tcp_ecn ⇒ Object
- #tcp_ecn=(v) ⇒ Object
- #tcp_flags ⇒ Object
- #tcp_flags=(v) ⇒ Object
- #tcp_flags_dotmap ⇒ Object
- #tcp_flags_readable ⇒ Object
- #tcp_hlen ⇒ Object
- #tcp_hlen=(v) ⇒ Object
- #tcp_options ⇒ Object
- #tcp_options=(v) ⇒ Object
- #tcp_opts ⇒ Object
- #tcp_opts=(v) ⇒ Object
- #tcp_opts_len ⇒ Object
- #tcp_opts_readable ⇒ Object
- #tcp_recalc(*v) ⇒ Object
- #tcp_reserved ⇒ Object
- #tcp_reserved=(v) ⇒ Object
- #tcp_seq ⇒ Object
- #tcp_seq=(v) ⇒ Object
- #tcp_seq_readable ⇒ Object
- #tcp_sport ⇒ Object
- #tcp_sport=(v) ⇒ Object
- #tcp_src ⇒ Object
- #tcp_src=(v) ⇒ Object
- #tcp_sum ⇒ Object
- #tcp_sum=(v) ⇒ Object
- #tcp_sum_readable ⇒ Object
- #tcp_urg ⇒ Object
- #tcp_urg=(v) ⇒ Object
- #tcp_win ⇒ Object
- #tcp_win=(v) ⇒ Object
Instance Method Details
#tcp_ack ⇒ Object
14 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 14 def tcp_ack; self.tcp_header.tcp_ack; end |
#tcp_ack=(v) ⇒ Object
13 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 13 def tcp_ack=(v); self.tcp_header.tcp_ack= v; end |
#tcp_ack_readable ⇒ Object
42 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 42 def tcp_ack_readable; self.tcp_header.tcp_ack_readable; end |
#tcp_calc_hlen ⇒ Object
32 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 32 def tcp_calc_hlen; self.tcp_header.tcp_calc_hlen; end |
#tcp_calc_seq ⇒ Object
29 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 29 def tcp_calc_seq; self.tcp_header.tcp_calc_seq; end |
#tcp_calc_src ⇒ Object
30 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 30 def tcp_calc_src; self.tcp_header.tcp_calc_src; end |
#tcp_dport ⇒ Object
38 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 38 def tcp_dport; self.tcp_header.tcp_dport; end |
#tcp_dport=(v) ⇒ Object
39 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 39 def tcp_dport=(v); self.tcp_header.tcp_dport= v; end |
#tcp_dst ⇒ Object
10 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 10 def tcp_dst; self.tcp_header.tcp_dst; end |
#tcp_dst=(v) ⇒ Object
9 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 9 def tcp_dst=(v); self.tcp_header.tcp_dst= v; end |
#tcp_ecn ⇒ Object
25 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 25 def tcp_ecn; self.tcp_header.tcp_ecn; end |
#tcp_ecn=(v) ⇒ Object
26 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 26 def tcp_ecn=(v); self.tcp_header.tcp_ecn= v; end |
#tcp_flags ⇒ Object
46 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 46 def tcp_flags; self.tcp_header.tcp_flags; end |
#tcp_flags=(v) ⇒ Object
47 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 47 def tcp_flags=(v); self.tcp_header.tcp_flags= v; end |
#tcp_flags_dotmap ⇒ Object
34 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 34 def tcp_flags_dotmap; self.tcp_header.tcp_flags_dotmap; end |
#tcp_flags_readable ⇒ Object
41 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 41 def tcp_flags_readable; self.tcp_header.tcp_flags_readable; end |
#tcp_hlen ⇒ Object
21 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 21 def tcp_hlen; self.tcp_header.tcp_hlen; end |
#tcp_hlen=(v) ⇒ Object
22 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 22 def tcp_hlen=(v); self.tcp_header.tcp_hlen= v; end |
#tcp_options ⇒ Object
33 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 33 def ; self.tcp_header.; end |
#tcp_options=(v) ⇒ Object
35 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 35 def (v); self.tcp_header.= v; end |
#tcp_opts ⇒ Object
27 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 27 def tcp_opts; self.tcp_header.tcp_opts; end |
#tcp_opts=(v) ⇒ Object
28 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 28 def tcp_opts=(v); self.tcp_header.tcp_opts= v; end |
#tcp_opts_len ⇒ Object
31 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 31 def tcp_opts_len; self.tcp_header.tcp_opts_len; end |
#tcp_opts_readable ⇒ Object
45 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 45 def tcp_opts_readable; self.tcp_header.tcp_opts_readable; end |
#tcp_recalc(*v) ⇒ Object
40 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 40 def tcp_recalc(*v); self.tcp_header.tcp_recalc(*v); end |
#tcp_reserved ⇒ Object
23 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 23 def tcp_reserved; self.tcp_header.tcp_reserved; end |
#tcp_reserved=(v) ⇒ Object
24 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 24 def tcp_reserved=(v); self.tcp_header.tcp_reserved= v; end |
#tcp_seq ⇒ Object
12 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 12 def tcp_seq; self.tcp_header.tcp_seq; end |
#tcp_seq=(v) ⇒ Object
11 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 11 def tcp_seq=(v); self.tcp_header.tcp_seq= v; end |
#tcp_seq_readable ⇒ Object
43 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 43 def tcp_seq_readable; self.tcp_header.tcp_seq_readable; end |
#tcp_sport ⇒ Object
36 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 36 def tcp_sport; self.tcp_header.tcp_sport; end |
#tcp_sport=(v) ⇒ Object
37 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 37 def tcp_sport=(v); self.tcp_header.tcp_sport= v; end |
#tcp_src ⇒ Object
8 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 8 def tcp_src; self.tcp_header.tcp_src; end |
#tcp_src=(v) ⇒ Object
7 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 7 def tcp_src=(v); self.tcp_header.tcp_src= v; end |
#tcp_sum ⇒ Object
18 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 18 def tcp_sum; self.tcp_header.tcp_sum; end |
#tcp_sum=(v) ⇒ Object
17 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 17 def tcp_sum=(v); self.tcp_header.tcp_sum= v; end |
#tcp_sum_readable ⇒ Object
44 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 44 def tcp_sum_readable; self.tcp_header.tcp_sum_readable; end |
#tcp_urg ⇒ Object
20 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 20 def tcp_urg; self.tcp_header.tcp_urg; end |
#tcp_urg=(v) ⇒ Object
19 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 19 def tcp_urg=(v); self.tcp_header.tcp_urg= v; end |
#tcp_win ⇒ Object
16 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 16 def tcp_win; self.tcp_header.tcp_win; end |
#tcp_win=(v) ⇒ Object
15 |
# File 'lib/packetfu/protos/tcp/mixin.rb', line 15 def tcp_win=(v); self.tcp_header.tcp_win= v; end |