diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-11-18 20:34:59 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-11-18 20:34:59 +0000 |
commit | 1fa3f59a4f31b57c47d2acbf45e02438c3670d37 (patch) | |
tree | 95128292f6f55a1d7033598bc6e1020dba9da15a /ace/SOCK_Dgram_Bcast.cpp | |
parent | c1739b5f00210a2b421887d82c606b5e6adf16e8 (diff) | |
download | ATCD-1fa3f59a4f31b57c47d2acbf45e02438c3670d37.tar.gz |
ChangeLogTag:Thu Nov 18 08:19:39 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/SOCK_Dgram_Bcast.cpp')
-rw-r--r-- | ace/SOCK_Dgram_Bcast.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ace/SOCK_Dgram_Bcast.cpp b/ace/SOCK_Dgram_Bcast.cpp index 833e89ff404..c8b67d81b6a 100644 --- a/ace/SOCK_Dgram_Bcast.cpp +++ b/ace/SOCK_Dgram_Bcast.cpp @@ -169,8 +169,16 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ASYS_TCHAR *host_name) if (ifr->ifr_addr.sa_family != AF_INET) { - ACE_ERROR ((LM_ERROR, "%p\n", - "ACE_SOCK_Dgram_Bcast::mk_broadcast: Not AF_INET")); + // Note that some systems seem to generate 0 (AF_UNDEF) for + // the sa_family, even when there are no errors! Thus, we + // only print an error if this is not the case, or if we're + // in "debugging" mode. + if (ifr->ifr_addr.sa_family != 0 + || ACE::debug () > 0) + ACE_DEBUG ((LM_DEBUG, + "warning %p: sa_family: %d\n", + "ACE_SOCK_Dgram_Bcast::mk_broadcast: Not AF_INET", + ifr->ifr_addr.sa_family)); continue; } |