summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfcolin2001-01-17 12:55:11 +0000
committerfcolin2001-01-17 12:55:11 +0000
commit70519ae7685e8c56e5a7df49b647f2b945a2e421 (patch)
tree18fefc35425da5aa0b0cbb4868cd76dac3632a0d /src
parent95c18e91e2c8b87510e33974724b9e7b7c2911cc (diff)
downloadivy-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ivy.c b/src/ivy.c
index e91dd36..1fd5a99 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -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 );