How to set Jumbo Packet and Receive/Transmit Buffers for advanced network adapter properties in Windows?

£可爱£侵袭症+ 提交于 2021-02-07 13:43:05

问题


I am trying to set some advanced properties for Network adapter e.g. Jumbo Packet, Receive/Transmit Buffers. I tried with Win32_NetworkAdapter, Win32_NetworkConnection, Win32_NetworkAdapterConfiguration WMI classes. None of them can do that.

Can anyone help me?


回答1:


"Jumbo Packet" support just means a big MTU (typically 9000 bytes). Maybe the SetMTU method of the Win32_NetworkAdapterConfiguration class, or the SetIFEntry() function (see the dwMtu field).

The size of the transmit and receive buffers is set at the socket level, independent of the network interface. Look for an interface to setsockopt() with the SO_RCVBUF and SO_SNDBUF options.




回答2:


Consider looking at the .Net APIs.

  • http://msdn.microsoft.com/en-us/library/3ew4thdx.aspx


来源:https://stackoverflow.com/questions/9192751/how-to-set-jumbo-packet-and-receive-transmit-buffers-for-advanced-network-adapt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!