byteblowerll.byteblower.DHCPv4SessionInfo

class byteblowerll.byteblower.DHCPv4SessionInfo(*args, **kwargs)

Class containing the info about the DHCPSession.

This class represents the session info gathered from a DHCPSession. It will contain counters of the amount of DHCPMessages transmitted and received. It also contains some values of the obtained lease ( leasetime, GiAddr, SiAddr, OptionValues )

session_info = protocol.DHCPv4SessionInfoGet()
for option in info.DHCPOptionGet():
         print(option)
__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

AckTimestampLastGet() Returns the timestamp when the last DHCP Ack message is received.
DHCPOptionGet() Returns a list if received DHCPOptions.
DHCPServerAddrGet() Returns the ipAddress of the DHCPServer.
DescriptionGet(*args) Gets a textual description for the current object
DiscoverTimestampLastGet() Returns the timestamp when the last DHCP Discover message is sent.
GiAddrGet() Returns the ipAddress of the relay agent, used in booting via a relay agent.
LeaseTimeGet() Returns IP Address lease time.
OfferTimestampLastGet() Returns the timestamp when the last DHCP Offer message is received.
ParentGet() Returns the parent object.
Refresh() Retrieves the latest data from the server for this object.
RefreshTimestampGet() Returns the timestamp when the counters of this object where last refreshed.
RequestTimestampLastGet() Returns the timestamp when the last DHCP Request message is sent.
RxGet() Returns the number of DHCPMessages recieved.
SiAddrGet() Returns the IP address of next server to use in bootstrap.
TransactionIDGet()
TxGet() Returns the number of DHCPMessages transmitted.
__init__(*args, **kwargs) Initialize self.

Attributes

thisown The membership flag