NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4568


Ignore:
Timestamp:
Oct 16, 2009, 4:59:08 PM (8 years ago)
Author:
stud-lenk
Message:

Set IP TTL for IPv4 multicast to IP hop limit. Otherwise the kernel would assume a TTL of 1 for multicast destinations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protlib/branches/20090723-multicast/src/tp_queryencap.cpp

    r4211 r4568  
    137137                if ( ret != 0 )
    138138                        ERRLog(tpparam.name, "setting IPv4 TTL failed");
     139                else
     140                {
     141                        ret = setsockopt(sockfd, SOL_IP, IP_MULTICAST_TTL,
     142                                        &hop_limit, sizeof hop_limit);
     143                        if ( ret != 0 )
     144                                ERRLog(tpparam.name, "setting IPv4 Multicast TTL failed");
     145                }
    139146        }
    140147
Note: See TracChangeset for help on using the changeset viewer.