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)
# File lib/packetfu/protos/udp/mixin.rb, line 14 def udp_calc_len; self.udp_header.udp_calc_len; end
# File lib/packetfu/protos/udp/mixin.rb, line 18 def udp_dport; self.udp_header.udp_dport; end
# File lib/packetfu/protos/udp/mixin.rb, line 19 def udp_dport=(v); self.udp_header.udp_dport= v; end
# File lib/packetfu/protos/udp/mixin.rb, line 9 def udp_dst; self.udp_header.udp_dst; end
# File lib/packetfu/protos/udp/mixin.rb, line 8 def udp_dst=(v); self.udp_header.udp_dst= v; end
# File lib/packetfu/protos/udp/mixin.rb, line 11 def udp_len; self.udp_header.udp_len; end
# File lib/packetfu/protos/udp/mixin.rb, line 10 def udp_len=(v); self.udp_header.udp_len= v; end
# File lib/packetfu/protos/udp/mixin.rb, line 15 def udp_recalc(*v); self.udp_header.udp_recalc(*v); end
# File lib/packetfu/protos/udp/mixin.rb, line 16 def udp_sport; self.udp_header.udp_sport; end
# File lib/packetfu/protos/udp/mixin.rb, line 17 def udp_sport=(v); self.udp_header.udp_sport= v; end
# File lib/packetfu/protos/udp/mixin.rb, line 7 def udp_src; self.udp_header.udp_src; end
# File lib/packetfu/protos/udp/mixin.rb, line 6 def udp_src=(v); self.udp_header.udp_src= v; end
# File lib/packetfu/protos/udp/mixin.rb, line 13 def udp_sum; self.udp_header.udp_sum; end
Generated with the Darkfish Rdoc Generator 2.