mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 12:44:25 +01:00
Removed Utils::ip_to_int/string. Everything is using IPv4Address now.
This commit is contained in:
@@ -138,6 +138,20 @@ namespace Tins {
|
||||
* \return The current inner PDU. Might be 0.
|
||||
*/
|
||||
PDU *inner_pdu() const { return _inner_pdu; }
|
||||
|
||||
/**
|
||||
* \brief Releases the inner PDU.
|
||||
*
|
||||
* This method makes this PDU to <b>no longer own</b> the inner
|
||||
* PDU. The current inner PDU is returned, and is <b>not</b>
|
||||
* destroyed.
|
||||
*
|
||||
* Use this method if you want to somehow re-use a PDU that
|
||||
* is already owned by another PDU.
|
||||
*
|
||||
* \return The current inner PDU. Might be 0.
|
||||
*/
|
||||
PDU *release_inner_pdu();
|
||||
|
||||
/** \brief Sets the flag identifier.
|
||||
*/
|
||||
|
||||
@@ -73,20 +73,6 @@ namespace Tins {
|
||||
*/
|
||||
IPv4Address mask;
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Convert a dotted-ip-notation string to an integer.
|
||||
*
|
||||
* \param ip A dotted ip notation string
|
||||
*/
|
||||
uint32_t ip_to_int(const std::string &ip);
|
||||
|
||||
/**
|
||||
* \brief Convert an integer ip to a dotted-ip-notation string.
|
||||
*
|
||||
* \param ip An integer ip.
|
||||
*/
|
||||
std::string ip_to_string(uint32_t ip);
|
||||
|
||||
/**
|
||||
* \brief Resolves a domain name and returns its corresponding ip address.
|
||||
|
||||
Reference in New Issue
Block a user