Ignore:
Timestamp:
Jul 25, 2012, 11:41:36 AM (12 years ago)
Author:
Michael Tänzer
Message:

Merge the ASIO branch back into trunk

Location:
source/ariba/utility/bootstrap/modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/bootstrap/modules/bluetoothsdp

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • source/ariba/utility/bootstrap/modules/periodicbroadcast

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h

    r7532 r10653  
    5555#include "PeriodicBroadcastMessage.h"
    5656
     57//link-local
     58#include "ariba/utility/transport/tcpip/tcpip.hpp"
     59
    5760using std::map;
    5861using std::string;
    59 using std::cout;
    6062using boost::asio::ip::udp;
    6163
     
    296298                        {
    297299                                udp::endpoint endp(udp::v6(), PeriodicBroadcast::serverport_v6);
    298                                 endp.address( boost::asio::ip::address_v6::from_string("ff02::1") );
    299                                 socket_v6.send_to( boost::asio::buffer(pnt, len), endp, 0, err );
    300                                 if(err) logging_warn("failed sending message through ipv6 socket");
     300                                boost::asio::ip::address_v6 all_nodes = boost::asio::ip::address_v6::from_string("ff02::1");
     301                               
     302                                // include all link-local interfaces
     303                                vector<uint64_t> scope_ids = ariba::transport::tcpip::get_interface_scope_ids();
     304                               
     305                                BOOST_FOREACH ( uint64_t id, scope_ids )
     306                                {
     307                    all_nodes.scope_id(id);
     308                    endp.address( all_nodes );
     309                   
     310                    socket_v6.send_to( boost::asio::buffer(pnt, len), endp, 0, err );
     311                    if(err) logging_warn("failed sending message through ipv6 socket");
     312                                }
    301313                        }
    302314                }
Note: See TracChangeset for help on using the changeset viewer.