Bug 45753 - linux-sun-jdk1.4.1 calls SIOCGIFCONF ioctl with null buffer
Summary: linux-sun-jdk1.4.1 calls SIOCGIFCONF ioctl with null buffer
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bruce M Simpson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-26 14:50 UTC by Jacques Garrigue
Modified: 2004-11-02 07:01 UTC (History)
0 users

See Also:


Attachments
linux_ioctl.c.diffs (940 bytes, text/plain)
2002-11-26 14:50 UTC, Jacques Garrigue
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacques Garrigue 2002-11-26 14:50:00 UTC
Sun's linux jdk1.4.1 implements java.net.NetworkInterface.getNetworkInterfaces
by first calling SIOCGIFCONF with a NULL buffer, expecting the buffer size as
result.
This call pattern was not implemented /sys/compat/linux/linux_ioctl.c.
The following patch appears to solve the problem.

Fix: Apply the following patch
How-To-Repeat: Calling java.net.NetworkInterface.getNetworkInterfaces() returns null.
Comment 1 Bruce M Simpson freebsd_committer freebsd_triage 2004-06-18 13:11:09 UTC
Responsible Changed
From-To: freebsd-bugs->emulation

One for the emulation team
Comment 2 Bruce M Simpson freebsd_committer freebsd_triage 2004-06-18 15:06:47 UTC
State Changed
From-To: open->patched

Committed to HEAD with cleanups, thanks! 


Comment 3 Bruce M Simpson freebsd_committer freebsd_triage 2004-06-18 15:06:47 UTC
Responsible Changed
From-To: emulation->bms

I'll take this as it's net related
Comment 4 Bruce M Simpson freebsd_committer freebsd_triage 2004-11-02 07:01:38 UTC
State Changed
From-To: patched->closed

RELENG_5 has now been branched as -STABLE