From 247f83ca46104161f63f2d1753c7782ce1796d66 Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Sat, 17 Nov 2007 19:38:08 +0000 Subject: 2007-11-17 Till Straumann * 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. --- cpukit/ChangeLog | 6 ++++++ cpukit/libnetworking/rtems/rtems_glue.c | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'cpukit') 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 + + * 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 * 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; -- cgit v1.2.3