< prev index next >

src/java.base/unix/native/libnet/NetworkInterface.c

Print this page
rev 55685 : 8227737: avoid implicit-function-declaration on AIX


  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 #include <arpa/inet.h>
  26 #include <errno.h>
  27 #include <net/if.h>
  28 #include <net/if_arp.h>
  29 #include <stdlib.h>
  30 #include <string.h>
  31 #include <sys/ioctl.h>
  32 
  33 #if defined(_AIX)
  34 #include <netinet/in6_var.h>
  35 #include <sys/ndd_var.h>
  36 #include <sys/kinfo.h>

  37 #endif
  38 
  39 #if defined(__solaris__)
  40 #include <stropts.h>
  41 #include <sys/dlpi.h>
  42 #include <sys/sockio.h>
  43 #endif
  44 
  45 #if defined(_ALLBSD_SOURCE)
  46 #include <net/ethernet.h>
  47 #include <net/if_dl.h>
  48 #include <ifaddrs.h>
  49 #endif
  50 
  51 #include "net_util.h"
  52 
  53 #include "java_net_InetAddress.h"
  54 
  55 #if defined(__linux__)
  56     #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 #include <arpa/inet.h>
  26 #include <errno.h>
  27 #include <net/if.h>
  28 #include <net/if_arp.h>
  29 #include <stdlib.h>
  30 #include <string.h>
  31 #include <sys/ioctl.h>
  32 
  33 #if defined(_AIX)
  34 #include <netinet/in6_var.h>
  35 #include <sys/ndd_var.h>
  36 #include <sys/kinfo.h>
  37 #include <strings.h>
  38 #endif
  39 
  40 #if defined(__solaris__)
  41 #include <stropts.h>
  42 #include <sys/dlpi.h>
  43 #include <sys/sockio.h>
  44 #endif
  45 
  46 #if defined(_ALLBSD_SOURCE)
  47 #include <net/ethernet.h>
  48 #include <net/if_dl.h>
  49 #include <ifaddrs.h>
  50 #endif
  51 
  52 #include "net_util.h"
  53 
  54 #include "java_net_InetAddress.h"
  55 
  56 #if defined(__linux__)
  57     #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"


< prev index next >