Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: ReadPackets/SendPacketsToAdapter Thread Affinity #12818
    AndyG
    Participant

    I am using NDISAPI via the dll so i guess i cant do anything about it. Thanks for your quick reply.

    in reply to: Trying to understand the Bridge example #12796
    AndyG
    Participant

    I figured out my mistake. I wasn’t looping the ReadPackets Function and the internal buffer was filling up.

    in reply to: Trying to understand the Bridge example #12795
    AndyG
    Participant

    Does anyone have a C# example for this?

    in reply to: Trying to understand the Bridge example #12794
    AndyG
    Participant

    Sorry. How should I populate the _INTERMEDIATE_BUFFER for sending the packet to the adapter?

    This is what I tried originally,

    CopyMemory(recv_buf\m_IBuffer, send_buf\m_IBuffer, recv_buf\m_Length)

    send_buf\m_Length = recv_buf\m_Length

    send_buf\m_Flags = #NDIS_PACKET_TYPE_PROMISCUOUS

    SendPacketToAdapter(val\filter, val\send_pkt)

    in reply to: Trying to understand the Bridge example #12793
    AndyG
    Participant

    Hi thanks for the quick reply. I have found where the problem is but I am not sure what to do. When I copy the received packet ready for sending to the adapter, I am doing something wrong with the size. I tried fixing the the amount I copy to 1540 bytes just to see if something changed and it did. I can ping and get an ip everytime but bandwidth is low. I am sure now that i am not calculation the length for the packet send

Viewing 5 posts - 1 through 5 (of 5 total)