Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6633549

(dc) Include-mode filtering of IPv6 sources does not block datagrams on Linux

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • 7
    • 8
    • core-libs
    • None
    • b51
    • generic
    • generic
    • Verified

    Backports

      Description

        This bug is for tracking purposes and is believed to be a bug in the Linux IPv6 stack.

        The failure duplicates on Ubuntu with 2.6.17-10 kernel and this test;
            test/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java

        On this kernel, IPv4 include-mode and exclude-mode filtering works correctly. With IPv6 then exclude-mode filtering works okay, but include-mode doesn't work.


        $ java MulticastSendReceiveTests
        create channel to INET socket
        join 225.4.5.6 @ eth0
        Send message from 129.156.232.195 -> group 225.4.5.6
        Waiting to receive message
        Message received from 129.156.232.195
        block 129.156.232.195
        Send message from 129.156.232.195 -> group 225.4.5.6
        Waiting to receive message
        No message received (correct)
        unblock 129.156.232.195
        Send message from 129.156.232.195 -> group 225.4.5.6
        Waiting to receive message
        Message received from 129.156.232.195
        join 225.4.5.6 @ eth0 only-source 1.2.3.4
        Send message from 129.156.232.195 -> group 225.4.5.6
        Waiting to receive message
        No message received (correct)
        join 225.4.5.6 @ eth0 only-source 129.156.232.195
        Send message from 129.156.232.195 -> group 225.4.5.6
        Waiting to receive message
        Message received from 129.156.232.195
        create channel to INET6 socket
        join ff02:0:0:0:0:0:0:a @ eth0
        Send message from fe80:0:0:0:206:5bff:fe75:37c3%2 -> group ff02:0:0:0:0:0:0:a
        Waiting to receive message
        Message received from fe80:0:0:0:206:5bff:fe75:37c3%2
        block fe80:0:0:0:206:5bff:fe75:37c3%2
        Send message from fe80:0:0:0:206:5bff:fe75:37c3%2 -> group ff02:0:0:0:0:0:0:a
        Waiting to receive message
        No message received (correct)
        unblock fe80:0:0:0:206:5bff:fe75:37c3%2
        Send message from fe80:0:0:0:206:5bff:fe75:37c3%2 -> group ff02:0:0:0:0:0:0:a
        Waiting to receive message
        Message received from fe80:0:0:0:206:5bff:fe75:37c3%2
        join ff02:0:0:0:0:0:0:a @ eth0 only-source fe80:0:0:0:0:0:0:1234
        Send message from fe80:0:0:0:206:5bff:fe75:37c3%2 -> group ff02:0:0:0:0:0:0:a
        Waiting to receive message
        Message received from fe80:0:0:0:206:5bff:fe75:37c3%2
        Exception in thread "main" java.lang.RuntimeException: Message not expected
                at MulticastSendReceiveTests.receiveDatagram(MulticastSendReceiveTests.java:101)
                at MulticastSendReceiveTests.test(MulticastSendReceiveTests.java:179)
                at MulticastSendReceiveTests.main(MulticastSendReceiveTests.java:210)

        Attachments

          Issue Links

            Activity

              People

                alanb Alan Bateman
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: