summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2007-11-17 19:38:08 +0000
committerTill Straumann <strauman@slac.stanford.edu>2007-11-17 19:38:08 +0000
commit247f83ca46104161f63f2d1753c7782ce1796d66 (patch)
tree2a1a7ee08170df00c220f66621f1a12abdfc61f5 /cpukit
parentUpdate. (diff)
downloadrtems-247f83ca46104161f63f2d1753c7782ce1796d66.tar.bz2
2007-11-17 Till Straumann <strauman@slac.stanford.edu>
* libnetworking/rtems/rtems_glue.c: let rtems_bsdnet_ifconfig (SIOCGIFMEDIA) pass the user parameter down to the ioctl so that it knows what PHY they want to look at.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/libnetworking/rtems/rtems_glue.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 18d6091cdb..575515ab39 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-17 Till Straumann <strauman@slac.stanford.edu>
+
+ * libnetworking/rtems/rtems_glue.c: let rtems_bsdnet_ifconfig
+ (SIOCGIFMEDIA) pass the user parameter down to the ioctl
+ so that it knows what PHY they want to look at.
+
2007-11-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/apimutexlock.c, score/src/apimutexunlock.c: Functions were
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index 892e3eabe8..ad254dfca1 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -1098,6 +1098,10 @@ int rtems_bsdnet_ifconfig (const char *ifname, uint32_t cmd, void *param)
break;
case SIOCGIFMEDIA:
+ /* 'param' passes the phy index they want to
+ * look at...
+ */
+ ifreq.ifr_media = *((int*) param);
if ((r = ioctl (s, cmd, &ifreq)) < 0)
break;
*((int*) param) = ifreq.ifr_media;