G
Guest
Guest
Archived from groups: microsoft.public.windowsxp.device_driver.dev (More info?)
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
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