def to_w(iface=nil, calc: true, number: 1, interval: 1)
      iface ||= PacketGen.default_iface

      if first_header.respond_to? :to_w
        self.calc if calc

        number.times do
          first_header.to_w(iface)
          sleep interval if number > 1
        end
      else
        type = first_header.protocol_name
        raise WireError, "don't known how to send a #{type} packet on wire"
      end
    end
def to_w(iface=nil, calc: true, number: 1, interval: 1)
      iface ||= PacketGen.default_iface

      if first_header.respond_to? :to_w
        self.calc if calc

        number.times do
          first_header.to_w(iface)
          sleep interval if number > 1
        end
      else
        type = first_header.protocol_name
        raise WireError, "don't known how to send a #{type} packet on wire"
      end
    end
Send packet on wire. Use first header +#to_w+ method.
 @param [String] iface interface name. Default to first non-loopback interface
 @param [Boolean] calc if +true+, call {#calc} on packet before sending it.
 @param [Integer] number number of times to send the packets
 @param [Integer,Float] interval time, in seconds, between sending 2 packets
 @return [void]
 @since 2.1.4 add `calc`, `number` and `interval` parameters
 @since 3.0.0 +calc+ defaults to +true+