Module: PacketGen::Inject Private

Defined in:
lib/packetgen/inject.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Module to inject packets on wire

Author:

  • Sylvain Daubert

Since:

  • 3.1.4

Class Method Summary collapse

Class Method Details

.inject(iface:, data:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Inject given data onto wire

Parameters:

Since:

  • 3.1.4


19
20
21
# File 'lib/packetgen/inject.rb', line 19

def self.inject(iface:, data:)
  PCAPRUBWrapper.inject(iface: iface, data: data.to_s)
end