HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1139 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 1139.


Report 1139 Actions


    Problem Report Number 1139
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0341
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Sockets (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.1.1
    Test Identification sockets/connect 15
    Problem Summary PG4U.00131 This IR claims that EHOSTUNREACH is the proper result.
    Problem Text
    The IUT is setting errno to EHOSTUNREACH under these conditions.
    Default routing is not configured.

    The difference between EHOSTUNREACH and ENETUNREACH
    is very fuzzy and one way it can be interpreted is:
    If the socket (used to connect) has a setsockopt(SO_DONTROUTE),
    the stack should skip the routing tables search for the destination
    host and try to see if there is a direct link to the network of the
    destination. If not then return a ENETUNREACH.
    If this socket does not have this setsockopt(SO_DONTROUTE) set, then
    routing tables should be searched. If no route to the destination
    is found, then EHOSTUNREACH is to be returned.

    Test Output
    TEST CASE: connect

    TEST PURPOSE #15
    If the implementation supports a communications domain
    and a connection-oriented socket type:
    ENETUNREACH in errno and return -1 on a call to int
    connect(int socket, const struct sockaddr *address,
    size_t address_len) when no route to the network is
    present.
    PREP: Create test sockaddr_in: address = 129.40.217.7, port = 63741
    PREP: Change address to configuration parameter VSU_ADDRESS_INVALID
    TEST: AF_INET SOCK_STREAM
    PREP: Create socket
    TEST: Call connect with unreachable address
    TEST: Return value
    TEST: errno value
    ERROR: connect call failed incorrectly, errno was 1130(EHOSTUNREACH - Destination host cannot be reached) should have been
    ENETUNREACH
    15 FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.

    In the VSU User's Guide, Appendix B.1, the section describing the
    VSU_ADDRESS_INVALID configuration variable states:

    A host address on a network which must be unreachable from the
    platform under test. It may be necessary to disable default routing
    on the platform to meet this condition.

    The SO_DONTROUTE option is not defined by the X/Open Sockets Interface
    and is thus not normative. The IUT must be configured to produce this
    condition through system configuration and without the use of
    non-normative calls.

    If no default route exists as described in the above, then connect()
    should return ENETUNREACH since there is no route to the network is
    present. Otherwise, the system is misconfigured and a default route
    or actual route to the network was found erroneously.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority