Bug 113637
| Summary: | ioctl SIOCGIFCONF returns incorrect value/count | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Gene Czarcinski <gczarcinski> | ||||
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 1 | CC: | 64bit_fedora | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2004-01-16 13:06:21 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Gene Czarcinski
2004-01-16 00:36:24 UTC
Created attachment 97047 [details]
test program to demonstrate problem
Oops ... just realized that since the 32 bit test application ran OK on the 64 bit kernel, the problem could not be the kernel ... but instead glibc. I have changed the component and assignment. No, this has nothing to do with glibc, but neither with kernel. The test program is broken. Look at how is struct ifreq defined. Among other things it contains ifr_map field, and on 64-bit machines struct ifmap is bigger than struct sockaddr (the former 24 bytes (16 bytes on 32-bits), the latter 16 bytes (the same as on 32-bit)). So struct ifreq is 40 bytes on AMD64, while sizeof (ifr->ifr_name) + sizeof (struct sockaddr) is 32. |