Hi…
This is my first time posting here.
Im in a small group making a projekt for our final IT-Engineering exam. We developing a small bandwidth limiter application for vista using WFP. Im quite new to driver development and have short question about a problem that has me baffled.
I have made a tcp callout at the transport layer and need to reinject the packeges.
I need to use FwpsInjectTransportReceiveAsync0 to reinject, however the function has a subInterfaceIndex parameter which i have no idea how to populate. It says in the documentation that classifyFn returns this, but i am unable to find it anywhere.
classifyFn(
IN const FWPS_INCOMING_VALUES0 *inFixedValues,
IN const FWPS_INCOMING_METADATA_VALUES0 *inMetaValues,
IN OUT VOID *layerData,
IN const FWPS_FILTER0 *filter,
IN UINT64 flowContext,
OUT FWPS_CLASSIFY_OUT0 *classifyOut
)
in the inMetaValues structure there is a IF_INDEX interfaceIndex… but no subInterfaceIndex.
Thx in advance
Jesper
Denmark
For a traffic shaper, you can just drop packets coming too fast, after
the send queue becomes too long.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi…
> This is my first time posting here.
>
> Im in a small group making a projekt for our final IT-Engineering exam. We
developing a small bandwidth limiter application for vista using WFP. Im quite
new to driver development and have short question about a problem that has me
baffled.
>
> I have made a tcp callout at the transport layer and need to reinject the
packeges.
>
> I need to use FwpsInjectTransportReceiveAsync0 to reinject, however the
function has a subInterfaceIndex parameter which i have no idea how to
populate. It says in the documentation that classifyFn returns this, but i am
unable to find it anywhere.
>
> classifyFn(
> IN const FWPS_INCOMING_VALUES0 *inFixedValues,
> IN const FWPS_INCOMING_METADATA_VALUES0 *inMetaValues,
> IN OUT VOID *layerData,
> IN const FWPS_FILTER0 *filter,
> IN UINT64 flowContext,
> OUT FWPS_CLASSIFY_OUT0 *classifyOut
> )
>
> in the inMetaValues structure there is a IF_INDEX interfaceIndex… but no
subInterfaceIndex.
>
> Thx in advance
>
> Jesper
> Denmark
>
Hi Maxim.
Yes that is a possibility we are considering, but we would like to try to implement more than one solution.
If anyone has an answar to my above question, an answar would still be most welcome.
Jesper
Try this…
index = FWPS_FIELD_INBOUND_TRANSPORT_V4_INTERFACE_INDEX;
InterfaceIndex = inFixedValues->incomingValue[index].value.uint16;
index = FWPS_FIELD_INBOUND_TRANSPORT_V4_SUB_INTERFACE_INDEX;
SubInterfaceIndex = inFixedValues->incomingValue[index].value.uint16;
On 4/28/07, xxxxx@hotmail.com wrote:
>
> Hi Maxim.
>
> Yes that is a possibility we are considering, but we would like to try to
> implement more than one solution.
>
> If anyone has an answar to my above question, an answar would still be
> most welcome.
>
> Jesper
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>