Method: PacketFu::UDPHeader#udp_calc_len
- Defined in:
- lib/packetfu/protos/udp/header.rb
#udp_calc_len ⇒ Object
Returns the true length of the UDP packet.
64 65 66 |
# File 'lib/packetfu/protos/udp/header.rb', line 64 def udp_calc_len body.to_s.size + 8 end |