public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/20615] New: IP address 255.255.255.255 cannot be set with GNAT.Sockets
@ 2005-03-24 9:40 sbellon at sbellon dot de
2005-03-24 12:51 ` [Bug ada/20615] " schwab at suse dot de
0 siblings, 1 reply; 4+ messages in thread
From: sbellon at sbellon dot de @ 2005-03-24 9:40 UTC (permalink / raw)
To: gcc-bugs
GNAT.Sockets.Inet_Addr ("255.255.255.255") raises an socket error because
inet_addr returns -1 which is the same as error indication.
I think there are two ways of resolving this problem:
1) Make a special case for "255.255.255.255" inside GNAT.Sockets.Inet_Addr and
return Inet_Addr_Type'(Family_Inet, (others => 255)) in that case (the same
should be done for the equivalent IPv6 case as well, I think).
2) I think there is no harm in making the Inet_Addr*Type types public in
g-socket.ads so the address can be set directly without using
GNAT.Sockets.Inet_Addr.
--
Summary: IP address 255.255.255.255 cannot be set with
GNAT.Sockets
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sbellon at sbellon dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20615
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug ada/20615] IP address 255.255.255.255 cannot be set with GNAT.Sockets
2005-03-24 9:40 [Bug ada/20615] New: IP address 255.255.255.255 cannot be set with GNAT.Sockets sbellon at sbellon dot de
@ 2005-03-24 12:51 ` schwab at suse dot de
0 siblings, 0 replies; 4+ messages in thread
From: schwab at suse dot de @ 2005-03-24 12:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schwab at suse dot de 2005-03-24 12:50 -------
3) Use inet_aton which does not have this problem. inet_addr is obsolete.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20615
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug ada/20615] IP address 255.255.255.255 cannot be set with GNAT.Sockets
[not found] <bug-20615-10133@http.gcc.gnu.org/bugzilla/>
2007-11-16 14:14 ` sam at rfc1149 dot net
@ 2007-11-25 14:15 ` sam at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-11-25 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sam at gcc dot gnu dot org 2007-11-25 14:15 -------
Bug is fixed in current sources
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gcc dot gnu dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20615
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug ada/20615] IP address 255.255.255.255 cannot be set with GNAT.Sockets
[not found] <bug-20615-10133@http.gcc.gnu.org/bugzilla/>
@ 2007-11-16 14:14 ` sam at rfc1149 dot net
2007-11-25 14:15 ` sam at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: sam at rfc1149 dot net @ 2007-11-16 14:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from sam at rfc1149 dot net 2007-11-16 14:14 -------
This bug does not exist in current GCC sources, which have a special test case
for 255.255.255.255 in g-socket.adb. I suggest that this bug be closed.
--
sam at rfc1149 dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at rfc1149 dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20615
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-25 14:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-24 9:40 [Bug ada/20615] New: IP address 255.255.255.255 cannot be set with GNAT.Sockets sbellon at sbellon dot de
2005-03-24 12:51 ` [Bug ada/20615] " schwab at suse dot de
[not found] <bug-20615-10133@http.gcc.gnu.org/bugzilla/>
2007-11-16 14:14 ` sam at rfc1149 dot net
2007-11-25 14:15 ` sam at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).