Ignore:
Timestamp:
May 26, 2009, 1:40:23 AM (16 years ago)
Author:
mies
Message:

Merged 20090512-mies-connectors changes r3472:r3689 into trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/BaseCommunication.cpp

    r3067 r3690  
    1 // [Licence]
     1// [License]
    22// The Ariba-Underlay Copyright
    33//
     
    3535// official policies, either expressed or implied, of the Institute of
    3636// Telematics.
    37 // [Licence]
     37// [License]
    3838
    3939#include "BaseCommunication.h"
     
    160160
    161161const LinkID BaseCommunication::establishLink(
    162                         const EndpointDescriptor& descriptor,
    163                         const QoSParameterSet& qos,
    164                         const SecurityParameterSet& sec){
    165 
     162        const EndpointDescriptor& descriptor,
     163        const LinkID& link_id,
     164        const QoSParameterSet& qos,
     165        const SecurityParameterSet& sec) {
     166
     167        // copy link id
     168        LinkID linkid = link_id;
     169
     170        // debug
    166171        logging_debug( "request to establish link" );
    167172
     
    169174        // just use the first locator in the endp descriptors
    170175        //
    171 
    172176        if( descriptor.locator == NULL ){
    173177                logging_error( "invalid destination endpoint" );
     
    183187        const NetworkLocator* local =  localDescriptor.locator;
    184188
    185         //
    186         // create link and link descriptor
    187         //
    188 
    189         LinkID linkid = LinkID::create();
    190 
     189        // create link identifier and link descriptor
     190        if (linkid.isUnspecified()) linkid = LinkID::create();
    191191        logging_debug( "creating new local descriptor entry with local link id " << linkid.toString() );
    192192        LinkDescriptor linkDescriptor( linkid, local, LinkID::UNSPECIFIED, remote, descriptor, false );
Note: See TracChangeset for help on using the changeset viewer.