MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_01CEBF8E.4008E8B0" This document is a Single File Web Page, also known as a Web Archive file. If you are seeing this message, your browser or editor doesn't support Web Archive files. Please download a browser that supports Web Archive, such as Windows® Internet Explorer®. ------=_NextPart_01CEBF8E.4008E8B0 Content-Location: file:///C:/0E5B2E2E/BASIC_STREAM_INJECTION.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="windows-1252"
BASIC STREAM= INJECTION
The Basic Stream Injection scenario will clone the dat= a and inject it back to the stream. No modification is performed on the data.
All filters added sit in WFPSampl= er's sublayer (which is weighted just below IPsec's sublayer), unless otherwise specified using the -sl <SUBLAYER> command line option. All filters are associated with WFPSampler's provider.
The following diagram shows how the code flows for this callout:

Figure A. Code flow for Basic Stream Injection Scenario
When traffic matches a filter at the specified layer, = ClassifyBasicStreamInjection() is invoked by the Filtering Engine. This function validates th= at we can perform the injection by looking at the pClassifyO= ut rights. It will then create the INJECTION_DATA which consists of the injectionHandle= span> and the injectionState. The injection method is determined (def= ault is Asynchronous), and the appropriate triggerFn= is called. At this point, the origin= al data will be blocked.
If the injection method is synchronous (inline), TriggerBasicStreamInjectionInline() is invoked. This function creates the CLASSIFY_DATA, which consists of the data that was passed into the cl= assifyFn. The performFn is then called.
If the injection method is asynchronous (out of band),= TriggerBasicStreamInjectionOutOfBand() is invoked. This function creates the CLASSIFY_DATA= which consists of copies and references of the data that was passed into the classifyFn. = Based on the queuing method, the appropriate queueFn is invoked.
Regardless of which queueFn is used, each will call PerformBasicStreamInjection().
The PerformBasicStreamInjection() will gather the required inject= ion information. The data is cloned, a= nd then injected back.
Upon successful injection, CompleteBasicStreamI= njection() will be called by the TCPIP stack. This function will show the status of the injected data. Additionally, any memory that was allocated from the functions above, will be freed and any references released.
v FWPM_LAYER_STREAM_V4
v FWPM_LAYER_STREAM_V6
|
Option |
Argument |
Meaning |
|
-s |
BASIC_STREAM_INJECTION |
Implement the BASIC_STREAM_INJECTION scenario |
|
-l |
Applicable Layer |
Layer at which this filter will apply |
|
-sl |
Applicable subLayer |
SubLayer to associate with the filter= . [default is WFPSAMPLER_SUBLAYER]. |
|
-v |
|
Make the objects associated with this scenario’s instance dynamic= |
|
-b |
|
Make the objects associated with this scenario’s instance availab= le during boot-time |
|
-in |
|
Perform the injection synchronously (inline) |
|
-tdpc |
|
Use threaded DPCs for asynchronous (out of band) queuing method= p> |
|
-wi |
|
Use work items for asynchronous (out of band) queuing method |
|
-r |
|
Remove objects associated with this scenario instance |
|
-? |
|
Display help |
“WFPSampler.E= xe -s BASIC_STREAM_INJECTION -?“ provides help output
“WFPSampler.E= xe -s BASIC_STREAM_INJECTION -l FWPM_LAYER_STREAM_V4 -v“ = adds a dynamic filter (-v) at FWPM_LAYER_STREAM_V4 (-l) which references the appropriate callout. This filter will have no conditions, meaning it will act on all traffic seen at = this layer.
“WFPSampler.E= xe -s BASIC_STREAM_INJECTION -l FWPM_LAYER_STREAM_V4 –v -r“ removes (-r) the dynamic filter (-v) at FWPM_LAYER_STRE= AM_V4 (-l) which references the appropriate callout.
“WFPSampler.E= xe -s BASIC_STREAM_INJECTION -l FWPM_LAYER_STREAM_V4 -ipla 1.0.0.1 –ipra 1.0.0.254“ adds a persistent filter at FWPM_LAYER_STREAM_V4 (-l) which references the appropriate callout. This filter will have 2 conditions; FWPM_CONDITION_IP_LOCAL_ADDRESS = (-ipla= ) equals 1.0.0.1, and FWPM_CONDITION_IP_REMOTE_ADDRESS (-ipra) equals 1.0.0.254.
“WFPSampler.E= xe -s BASIC_STREAM_INJECTION -l FWPM_LAYER_STREAM_V4 -ipla= span> 1.0.0.1 –ipra 1.0.0.254 -in“ adds a persistent filter at FWPM_LAYER_STREAM_V4 (-l) which references the appropriate callout. This filter will have 2 conditions; FWPM_CONDITION_IP_LOCAL_ADDRESS = (-ipla= ) equals 1.0.0.1, and FWPM_CONDITION_IP_REMOTE_ADDRESS (-ipra) equals 1.0.0.254. The injection will be performed synchro= nously (-in).
For a list of conditions applicable to each layer, ref= er to Filtering Conditions Available at Each Filtering Layer.
For a list of command line parameters for configuring = each condition, refer to Co= nditions for Command Line.