critical impact:
inet_* APIs - additional header files needed (CrCh121)
Problem description
The identified Application Programming Interfaces (APIs) on HP-UX require additional header files.
On Tru64 UNIX, you needed to include the
<arpa/inet.h> header file in order to use these APIs. On HP-UX, you also need the <sys/socket> and <netinet/in.h> header files. Identifiers
 inet_addr |
 inet_makeaddr |
 inet_network |
 inet_lnaof |
 inet_netof |
 inet_ntoa |
See also
Solution description
Review the applicable manpages and code.
In order to correctly use these APIs, add the following lines to your code:
#include <sys/socket>
#include <netinet/in.h>
See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| NW |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|