SetNumForwardPackets method of the Win32_NetworkAdapterConfiguration class
The SetNumForwardPackets WMI class static method is used to set the number of IP packet headers allocated for the router packet queue. When all headers are in use, the router will begin to discard packets from the queue at random.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
- NumForwardPackets [in]
Number of IP packet headers allocated for the router packet queue. This should be at least as large as the value of the ForwardBufferMemory property divided by the maximum IP data size of the networks connected to the router. It should be no larger than the ForwardBufferMemory value divided by 256, since at least 256 bytes of forward buffer memory are required by each packet. The optimal number of forward packets for a given ForwardBufferMemory size depends on the type of traffic carried on the network, and will be somewhere between these two values. If the router is disabled, this parameter is ignored and no headers are allocated. Valid range: 1 - 0xFFFFFFFE.
Returns a value of 0 (zero) for a successful completion when no reboot is required, 1 (one) for a successful completion when a reboot is required, and a different number if there is an error. For more information on error codes, see WMI Error Constants or WbemErrorEnum. For general HRESULT values, see System Error Codes.
- Successful completion, no reboot required
Successful completion, no reboot required.
- Successful completion, reboot required
Successful completion, reboot required.
- Method not supported on this platform
Method not supported on this platform.
- Unknown failure
- Invalid subnet mask
Invalid subnet mask.
- An error occurred while processing an Instance that was returned
An error occurred while processing an instance that was returned.
- Invalid input parameter
Invalid input parameter.
- More than 5 gateways specified
More than five gateways specified.
- Invalid IP address
Invalid IP address.
- Invalid gateway IP address
Invalid gateway IP address.
- An error occurred while accessing the Registry for the requested information
An error occurred while accessing the registry for the requested information.
- Invalid domain name
Invalid domain name.
- Invalid host name
Invalid host name.
- No primary/secondary WINS server defined
No primary or secondary WINS server defined.
- Invalid file
- Invalid system path
Invalid system path.
- File copy failed
File copy failed.
- Invalid security parameter
Invalid security parameter.
- Unable to configure TCP/IP service
Unable to configure TCP/IP service.
- Unable to configure DHCP service
Unable to configure DHCP service.
- Unable to renew DHCP lease
Unable to renew DHCP lease.
- Unable to release DHCP lease
Unable to release DHCP lease.
- IP not enabled on adapter
IP not enabled on adapter.
- IPX not enabled on adapter
IPX not enabled on adapter.
- Frame/network number bounds error
Frame or network number bounds error.
- Invalid frame type
Invalid frame type.
- Invalid network number
Invalid network number.
- Duplicate network number
Duplicate network number.
- Parameter out of bounds
Parameter out of bounds.
- Access denied
- Out of memory
Out of memory.
- Already exists
- Path, file or object not found
Path, file, or object not found.
- Unable to notify service
Unable to notify service.
- Unable to notify DNS service
Unable to notify DNS service.
- Interface not configurable
Interface not configurable.
- Not all DHCP leases could be released/renewed
Not all DHCP leases could be released or renewed.
- DHCP not enabled on adapter
DHCP not enabled on adapter.
The Modify the Number of Allowed Forward Packets VBScript sample configures the number of forward packets allocated to the router packet queue.
Minimum supported client
Minimum supported server
Windows Server 2008
- Computer System Hardware Classes
- WMI Tasks: Networking
- WMI Tasks: Accounts and Domains
- IPv6 and IPv4 Support in WMI