You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 394 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Problem: Unix.inet_addr_of_string "255.255.255.255" raises an exception.
Cause: the implementation uses inet_addr instead of inet_aton;
inet_addr is obsolete and cannot handle the broadcast address
255.255.255.255.
The text was updated successfully, but these errors were encountered:
Problem: Unix.inet_addr_of_string "255.255.255.255" raises an
exception.
Cause: the implementation uses inet_addr instead of inet_aton;
inet_addr is obsolete and cannot handle the broadcast address
255.255.255.255.
I didn't know about the inet_aton alternative. Too bad it's not part
of the Unix98 spec. At any rate, I've added code to use inet_aton()
instead of inet_addr() whenever the former is available.
If inet_aton is not available, then I would add an explicit test for
255.255.255.255. (It is the only case for which inet_addr won't work.)
This address is used quite a bit and I don't know of another way to
construct it in Ocaml, because inet_addr is opaque.
Problem: Unix.inet_addr_of_string "255.255.255.255" raises an exception.
Cause: the implementation uses inet_addr instead of inet_aton;
inet_addr is obsolete and cannot handle the broadcast address
255.255.255.255.
I didn't know about the inet_aton alternative. Too bad it's not part
of the Unix98 spec. At any rate, I've added code to use inet_aton()
instead of inet_addr() whenever the former is available.
Original bug ID: 394
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Raoul Bhoedjang
Version: 3.01
OS: Linux 2.4.2-2
Submission from: syr-66-24-49-102.twcny.rr.com (66.24.49.102)
Problem: Unix.inet_addr_of_string "255.255.255.255" raises an exception.
Cause: the implementation uses inet_addr instead of inet_aton;
inet_addr is obsolete and cannot handle the broadcast address
255.255.255.255.
The text was updated successfully, but these errors were encountered: