diff options
author | mbrudka <mbrudka@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-05-15 18:56:53 +0000 |
---|---|---|
committer | mbrudka <mbrudka@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-05-15 18:56:53 +0000 |
commit | 2bee0726976ad087bd980e2fb9043aef4ee4ea94 (patch) | |
tree | dbc8def6fd78b8a28cd84c64b9b1c913699bd60b /ace/SOCK_Dgram_Bcast.cpp | |
parent | 33f501545a06ccbd686661371023c0ffff1a18c2 (diff) | |
download | ATCD-2bee0726976ad087bd980e2fb9043aef4ee4ea94.tar.gz |
ChangeLogTag: Sat May 15 19:48:00 2004 Marek Brudka <mbrudka@elka.pw.edu.pl>
Diffstat (limited to 'ace/SOCK_Dgram_Bcast.cpp')
-rw-r--r-- | ace/SOCK_Dgram_Bcast.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/SOCK_Dgram_Bcast.cpp b/ace/SOCK_Dgram_Bcast.cpp index 2b03bed033c..bf7597c48ae 100644 --- a/ace/SOCK_Dgram_Bcast.cpp +++ b/ace/SOCK_Dgram_Bcast.cpp @@ -161,14 +161,14 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name) } -#if !defined(CHORUS_4) && !defined(AIX) && !defined (__QNX__) +#if !defined(CHORUS_4) && !defined(AIX) && !defined (__QNX__) && !defined (__FreeBSD__) for (int n = ifc.ifc_len / sizeof (struct ifreq) ; n > 0; n--, ifr++) #else /* There are addresses longer than sizeof (struct sockaddr) eg. IPv6 or QNX::links. In this case address does not fit into struct ifreq. - The code below could be applied everywhere, but now every system + The code below could be applied everywhere, but not every system provides sockaddr.sa_len field. */ for (int nbytes = ifc.ifc_len; nbytes >= (int) sizeof (struct ifreq) && @@ -179,7 +179,7 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name) ifr = (struct ifreq *) ((caddr_t) &ifr->ifr_addr + ifr->ifr_addr.sa_len)) : (nbytes -= sizeof (struct ifreq), ifr++))) -#endif +#endif /* !defined(CHORUS_4) && !defined(AIX) && !defined (__QNX__) && !defined (__FreeBSD__) */ { #if defined (__QNX__) // Silently skip link interfaces |