In news:(E-Mail Removed),
Rajesh Gupta <(E-Mail Removed)> posted their thoughts, then I offered mine
> Hi everyone,
>
> I am trying to modify the NDIS packet. Do i need to allocate new
> buffers?
>
> I want to modify the destination IP address. I am doing the address
> mapping, if i receive data for specific destination, i want to
> redirect that data to go to another IP address. Do i need to allocate
> new buffers, copy all the data from old packet, modify it and then
> send it again. Can i do the following?
>
> 1. Query the NDIS packet.
> 2. Get the Virtual Address.
> 3. Modify the Header, with new IP and checksum.
> 4. Allocate new packet from my own pool.
> 5. Copy all the header information and OOB data.
> 6. Send that packet again.
>
>
> Can i use the same buffer and packet. Or i will have to allocate new
> buffer and packet if i am modifing the data in the packet.
>
> Thanks in Advance
>
> Rajesh
Not sure, but see if this helps:
Q. Can I modify a NDIS packet that I did not allocate myself? A. No.
http://www.ndis.com/faq/QA01030301.htm
NDIS_PACKET Discussion - Part 1 - NDIS Packet Data
http://www.ndis.com/papers/ndispacket/ndispacket1.htm
Look here for more info:
http://www.google.com/search?hl=en&i...fy+ndis+packet
--
Regards,
Ace
Please direct all replies to the newsgroup so all can benefit.
This posting is provided "AS-IS" with no warranties and confers no
rights.
Ace Fekay, MCSE 2000, MCSE+I, MCSA, MCT, MVP
Microsoft Windows MVP - Active Directory
HAM AND EGGS: A day's work for a chicken; A lifetime commitment for a
pig. --
=================================