diff options
author | fcolin | 2001-01-17 12:55:11 +0000 |
---|---|---|
committer | fcolin | 2001-01-17 12:55:11 +0000 |
commit | 70519ae7685e8c56e5a7df49b647f2b945a2e421 (patch) | |
tree | 18fefc35425da5aa0b0cbb4868cd76dac3632a0d /src | |
parent | 95c18e91e2c8b87510e33974724b9e7b7c2911cc (diff) | |
download | ivy-c-70519ae7685e8c56e5a7df49b647f2b945a2e421.zip ivy-c-70519ae7685e8c56e5a7df49b647f2b945a2e421.tar.gz ivy-c-70519ae7685e8c56e5a7df49b647f2b945a2e421.tar.bz2 ivy-c-70519ae7685e8c56e5a7df49b647f2b945a2e421.tar.xz |
correction bug sur SUN_OS inet_ntoa
Diffstat (limited to 'src')
-rw-r--r-- | src/ivy.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -567,6 +567,7 @@ void IvyClasses( int argc, const char **argv) void IvyStart (const char* bus) { + struct in_addr baddr; unsigned long mask = 0xffffffff; unsigned char elem = 0; int numdigit = 0; @@ -635,7 +636,8 @@ void IvyStart (const char* bus) /* addresses are terminated by a comma or end of string */ } else { - printf ("Broadcasting on network %s, port %d\n", inet_ntoa(htonl(mask)), SupervisionPort); + baddr.s_addr = htonl(mask); + printf ("Broadcasting on network %s, port %d\n", inet_ntoa(baddr), SupervisionPort); // test mask value agaisnt CLASS D if ( IN_MULTICAST( mask ) ) SocketAddMember (broadcast , mask ); |