Sha256: fb49876ec4c488fff99a2fa15ee4c63b7a72eb11fdfb426c7b6834edd333a980

Contents?: true

Size: 679 Bytes

Versions: 10

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

# This file is part of PacketGen
# See https://github.com/sdaubert/packetgen for more informations
# Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net>
# This program is published under MIT license.
require_relative 'pcaprub_wrapper'

module PacketGen
  # Module to inject packets on wire
  # @author Sylvain Daubert
  # @api private
  # @since 3.1.4
  module Inject
    # Inject given data onto wire
    # @param [String] iface interface name
    # @param [String,Packet,Header::Base] data to inject
    # @return [void]
    def self.inject(iface:, data:)
      PCAPRUBWrapper.inject(iface: iface, data: data.to_s)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
packetgen-3.3.1 lib/packetgen/inject.rb
packetgen-3.3.0 lib/packetgen/inject.rb
packetgen-3.2.2 lib/packetgen/inject.rb
packetgen-3.2.1 lib/packetgen/inject.rb
packetgen-3.2.0 lib/packetgen/inject.rb
packetgen-3.1.8 lib/packetgen/inject.rb
packetgen-3.1.7 lib/packetgen/inject.rb
packetgen-3.1.6 lib/packetgen/inject.rb
packetgen-3.1.5 lib/packetgen/inject.rb
packetgen-3.1.4 lib/packetgen/inject.rb