Opening win-socket in kernel mode specifying session number
I'm writing a windows driver (of course in c and I'm in kernel mode) and I'd like to open a socket from the outside specifying the sequence number the first SYN packet should have.

I tried modifying the packet filtering it with Windows Filtering Platform, but of course it doesn't work because the stack think that the correct number is the original one and the recipient's stack think that the correct one is modified one.

I'm looking somethink like:
OpenSocket(..., UINT32 seqNum, UINT16 winSize)
or anything equivalent.

There is a way to do that?

Thanks,
Marco

Opening win-socket in kernel mode specifying session number
===

I'm writing a windows driver (of course in c and I'm in kernel mode) and I'd like to open a socket from the outside specifying the sequence number the first SYN packet should have.

I tried modifying the packet filtering it with Windows Filtering Platform, but of course it doesn't work because the stack think that the correct number is the original one and the recipient's stack think that the correct one is modified one.

I'm looking somethink like:
OpenSocket(..., UINT32 seqNum, UINT16 winSize)
or anything equivalent.

There is a way to do that?

Thanks,
Marco
