|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1182 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1182.
Report 1182 Actions
Problem Report Number 1182 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0384 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.0 Test Identification sockets/connect 12 Problem Summary PG4U.00083 The IR claims that EINVAL is a valid error return for this test. Problem Text
We believe this is a test suite deficiency.
The X/Open CAE Specification (1994) Networking Services, Issue 4 states
that, for connect, EINVAL may be returned if there is an invalid address
family in the sockaddr structure.
Our implementation checks this first since our processing has not gone
far enough, at this point, to look at the address itself. But, if
INET sockaddr is specified to the UNIX file system it is already
apparent that this is an invalid scenario.
We believe that either EINVAL or EAFNOSUPPORT should be valid errnos for
this test case.Test Output
TEST PURPOSE #12
If the implementation supports a communications domain
and a socket type:
EAFNOSUPPORT in errno and return -1 on a call to int
connect(int socket, const struct sockaddr *address,
size_t address_len) when address is not valid for the
address family of the socket.
TEST: AF_INET SOCK_STREAM
PREP: Create test sockaddr_in: address = 198.151.241.50, port = 3101
PREP: Create test sockaddr_un: path = ../tmp/unix.hBfcxQ
PREP: Create socket
TEST: Connect to socket with AF_UNIX address
TEST: Return value
TEST: errno value
CLEANUP: Close socket
TEST: AF_UNIX SOCK_STREAM
PREP: Create test sockaddr_in: address = 198.151.241.50, port = 3102
PREP: Create test sockaddr_un: path = ../tmp/unix.cCGbxQ
PREP: Create socket
TEST: connect with AF_INET address
TEST: Return value
TEST: errno value
ERROR: connect call failed incorrectly, errno was 121(EINVAL - Invalid argument) should have been EAFNOSUPPORT
12 FAILReview 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.
We believe that EINVAL is reserved for use where the address
family in the sockaddr is not implemented by the IUT, or where
the address specified in the sockaddr is clearly invalid for the
address family specified in the sockaddr.
Since the AF_INET address family is specified in the sockaddr used
by the test and the address specified is a valid AF_INET address,
EINVAL should not be returned.
If the submitter's argument were true there would be no need for
an EAFNOSUPPORT error condition. It would be identical to one
of the possible EINVAL conditions.
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:
- View Report 1182
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority