Bug 3387
Summary: | getsockname/getpeername do not follow the BSD standard | ||
---|---|---|---|
Product: | Networking | Reporter: | Ioannis Aslanidis (deathwing00) |
Component: | Other | Assignee: | Hideaki YOSHIFUJI (yoshfuji) |
Status: | REJECTED INVALID | ||
Severity: | normal | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.* | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
This is the headers file for gso.cpp
This is a sample source code that reproduces the bug (requires the header file) |
Description
Ioannis Aslanidis
2004-09-13 08:47:09 UTC
Created attachment 3663 [details]
This is the headers file for gso.cpp
Created attachment 3664 [details]
This is a sample source code that reproduces the bug (requires the header file)
This file and gso.h reproduce the bug. Compile simply and check the code.
You'll notice that it returns != 0 while errno tells successful. Additionally I
have tested this with some servers, like google.com, by connecting to port 80
and getting the IP addresses of both sides correctly.
Kernel is not responsible to errno, but glibc is; it should setup errno appropriately returned from syscall. Please report this to the appropriate community (glibc). Please, stop bouncing this bug. glibc sent me to you and you send me back to them. I start getting tired of this situation. Reported back to: http://sources.redhat.com/bugzilla/show_bug.cgi?id=345 |