Dealing with networking in the kernel-mode driver is good idea

Hi All,

I am going through the Winsock programming documents for my virtual driver at kernel level. After reading the documents, i checked for any sample driver/software using the Winsock at the driver level. But I couldn’t find any such example, even MS sample driver directory does not have one. Specifically i looked example for this function “WskSendTo”.

So now i am wondering is it good to deal networking at the driver level. Please provide your inputs.

Thanks,

i am wondering is it good to deal networking at the driver level

In general, this is too broad a question to get a seriously meaningful answer. After all, the entire TCP and IP protocols are implemented by drivers. So…

But in general, best practice is to do as little as possible in kernel mode. Doing things in your driver, instead of in an app, gains you nothing but complexity and lack of resilience in error handling.

Peter

1 Like

Unless you have a provably good reason, the answer is an unequivical no. I can saturate a 40 Gb/s link from UM so I don’t see many reasons