farsonic / mnc

Automatically exported from code.google.com/p/mnc
Other
0 stars 0 forks source link

does not increase TTL on solaris 10 and can not send packets #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run mnc
2. get an error 
mnc: Could not increase the TTL
mnc: Can not send multicast packets
3. no packets are sent

What is the expected output? What do you see instead?
no errors, send packets

What version of the product are you using? On what operating system?
Solaris 10/Intel x86

Please provide any additional information below.

Changing ttl value to unsigned char  in mnc_multicast.c fixes the issue

int multicast_setup_send(int socket, struct addrinfo * group,
                            struct addrinfo * source)
{
        unsigned char   ttl     = 25;

Original issue reported on code.google.com by save...@gmail.com on 30 Aug 2007 at 11:56

GoogleCodeExporter commented 8 years ago
Thanks for the report! I'll test and patch trunk.

Original comment by colm.mac...@gmail.com on 30 Aug 2007 at 11:59

GoogleCodeExporter commented 8 years ago
Also  INADDR_NONE is not defined in Solaris 8 for some reason

adding this makes it compile

#ifndef INADDR_NONE
#define INADDR_NONE ((unsigned long) -1)
#endif

Original comment by save...@gmail.com on 30 Aug 2007 at 12:10