问题
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