Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6369

[java6][classlib][luni]Get network interface information failed on AIX, netif.c does NOT use portlib code as trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0M12
    • Classlib
    • None
    • AIX

    Description

      Hi All,

      On AIX, failed to get the network interface information (name, IP, mac and so on) correctly.

      The java code actually invoke the native code in netif.c.

      I notice that in harmony truck, in netif.c Java_java_net_NetworkInterface_getNetworkInterfacesImpl() simply invoke the portlib API hysock_get_network_interfaces() to get network interface infomation.
      But in java6 branch according to JIRA 4155, netif.c was modified and added some API for java6.

      The question is why in java6 branch, netif.c has its own implementation to get the network interface information instead of invoking the portlib code?

      I think it should invoke the portlib to make the similar code in only one place.

      Any comments?

      Attachments

        1. Harmony-6369.diff
          47 kB
          Ray Chen

        Activity

          People

            regis_xu Regis Xu
            chleicdl Ray Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: