/**
 * @brief	Changes the internal IP of the port map.
 *
 * @param	internalIP	New internal IP.
 * @param	portMapID Ignored.
 */
void UpnpNatPortMapAction::SetInternalIP(const Packet & internalIP, size_t portMapID)
{
    ComString comInternalIP(internalIP.GetNullTerminated());

    HRESULT hResult = ptrPortMap->EditInternalClient(comInternalIP.GetBSTR());
    _ErrorException((hResult != S_OK), "setting the internal IP of a port map", hResult, __LINE__,__FILE__);

    this->internalIP = internalIP;
}
/**
 * @brief	Changes the description of the port map.
 *
 * @param	description New Description. Must be NULL terminated.
 * @param	portMapID Ignored.
 */
void UpnpNatPortMapAction::SetDescription(const Packet & description, size_t portMapID)
{
    ComString comDescription(description.GetNullTerminated());

    HRESULT hResult = ptrPortMap->EditDescription(comDescription.GetBSTR());
    _ErrorException((hResult != S_OK), "setting the description of a port map", hResult, __LINE__,__FILE__);

    this->description = description;
}