Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
HostIp Class Reference

HostIp handles and manipulates the default gateway on end devices. More...

Inheritance diagram for HostIp:
Process

Public Member Functions

void setDefaultGateway (ip)
 Sets the default gateway with the specified IP address. More...
 
ip getDefaultGateway ()
 Returns the IP address of the default gateway. More...
 
- Public Member Functions inherited from Process
Device getOwnerDevice ()
 Returns the device for this process. More...
 

Detailed Description

HostIp handles and manipulates the default gateway on end devices.

Member Function Documentation

◆ getDefaultGateway()

ip HostIp::getDefaultGateway ( )

Returns the IP address of the default gateway.

Returns
ip, the IP address of the default gateway.

◆ setDefaultGateway()

void HostIp::setDefaultGateway ( ip  )

Sets the default gateway with the specified IP address.

Parameters
gatewayIp,theIP address of the gateway.

The documentation for this class was generated from the following file: