Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134411

allAddresses () is not working as expected on AIX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 6.9.0 Beta3
    • Network
    • None
    • Linux/Other display system

    Description

      Hello,

      with allAddresses (), we should be able to get the list of available IPs on the same interface.

      Is this a limitation of QNetworkInterface::allAddresses() on AIX?

       

      As we can see below, I have multiple IP addresses assigned to the same interface, en3. The problem is that when using  QNetworkInterface::allAddresses() from Qt, it only lists the primary address of the interface.

       

      --> ifconfig -a
      en3: flags=1e084863,18c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),LARGESEND,CHAIN>
              inet 10.30.4.70 netmask 0xfffffe00 broadcast 10.30.5.255
              inet 10.30.4.71 netmask 0xfffffe00 broadcast 10.30.5.255
              inet 10.30.4.73 netmask 0xfffffe00 broadcast 10.30.5.255
               tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1
      lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN>
              inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
              inet6 ::1%1/64
               tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

       

      I am only able to get only the primary Ip from each interface.

      eg: - Only able to list out 10.30.4.70, but not the other two(10.30.4.71 ,10.30.4.73 )

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            justhem MURARI GUPTA
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes