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

Instance Method Details

#tcp_ackObject



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_readableObject



42
# File 'lib/packetfu/protos/tcp/mixin.rb', line 42

def tcp_ack_readable; self.tcp_header.tcp_ack_readable; end

#tcp_calc_hlenObject



32
# File 'lib/packetfu/protos/tcp/mixin.rb', line 32

def tcp_calc_hlen; self.tcp_header.tcp_calc_hlen; end

#tcp_calc_seqObject



29
# File 'lib/packetfu/protos/tcp/mixin.rb', line 29

def tcp_calc_seq; self.tcp_header.tcp_calc_seq; end

#tcp_calc_srcObject



30
# File 'lib/packetfu/protos/tcp/mixin.rb', line 30

def tcp_calc_src; self.tcp_header.tcp_calc_src; end

#tcp_dportObject



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_dstObject



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_ecnObject



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_flagsObject



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_dotmapObject



34
# File 'lib/packetfu/protos/tcp/mixin.rb', line 34

def tcp_flags_dotmap; self.tcp_header.tcp_flags_dotmap; end

#tcp_flags_readableObject



41
# File 'lib/packetfu/protos/tcp/mixin.rb', line 41

def tcp_flags_readable; self.tcp_header.tcp_flags_readable; end

#tcp_hlenObject



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_optionsObject



33
# File 'lib/packetfu/protos/tcp/mixin.rb', line 33

def tcp_options; self.tcp_header.tcp_options; end

#tcp_options=(v) ⇒ Object



35
# File 'lib/packetfu/protos/tcp/mixin.rb', line 35

def tcp_options=(v); self.tcp_header.tcp_options= v; end

#tcp_optsObject



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_lenObject



31
# File 'lib/packetfu/protos/tcp/mixin.rb', line 31

def tcp_opts_len; self.tcp_header.tcp_opts_len; end

#tcp_opts_readableObject



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_reservedObject



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_seqObject



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_readableObject



43
# File 'lib/packetfu/protos/tcp/mixin.rb', line 43

def tcp_seq_readable; self.tcp_header.tcp_seq_readable; end

#tcp_sportObject



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_srcObject



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_sumObject



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_readableObject



44
# File 'lib/packetfu/protos/tcp/mixin.rb', line 44

def tcp_sum_readable; self.tcp_header.tcp_sum_readable; end

#tcp_urgObject



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_winObject



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