IMA_SetDefaultGateway - Sets the default gateway for the specified physical network port.
cc [ flag... ] file... -lima [ library... ] #include <ima.h> IMA_STATUS IMA_SetDefaultGateway( /* in */ IMA_OID oid, /* in */ IMA_IP_ADDRESS defaultGateway );
The object ID of the physical network port (PNP) whose default gateway is to be set
The new default gateway for the PNP
The IMA_SetDefaultGateway() API sets the default gateway for the specified PNP.
Returned if a reboot is necessary before the setting of the defaultGateway argument takes effect
Returned if setting the defaultGateway argument is not supported by the specified PNP
Returned if any fields in the defaultGateway argument contain invalid values
Returned if the oid argument does not specify a valid object type
Returned if the oid argument does not specify a PNP
Returned if the oid argument does not specify a PNP known to the system
See attributes(7) for descriptions of the following attributes:
|