hi everybody
I write a miniport driver under Vista base on the sample rtlnwifi, and I
crypt the out data. What I do like this:
1, get the NET_BUFFER from NET_BUFFER_LIST
2, get the MDL from this NET_BUFFER
3, get the data address of the MDL
4, so I copy all the data of the NET_BUFFER_LIST to a buffer use this
method, and I crypt the data within the buffer(size of data not changed)
5, at last I copy the data back to NET_BUUFER_LIST, send it out through the
NIC
on the other PC which has Vista on it, I decrypt the data.
The problem is:
I share a fold, and copy some files in it, such as 123.txt or aaa.bmp, from
PC1 to PC2, PC2 can get the
file correctly, but the strange thing is that the files on PC1 are changed,
even the fold is read only! aaa.bmp can not be recognized as BMP file, and
the content of 123.txt which should be "123" also can not be recognized. It
seems that when I crypt the data and copy it back to NBL, I also change the
content of the file(or the content in memory, because after I reboot, the
files are be OK). But I think that the NBL which my miniport get from the
protocol driver should can be modified, it should not changed the content of
any file or other things.
Sorry for my poor English.
--
Arthur Tu
best regards