diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2007-11-17 19:38:08 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2007-11-17 19:38:08 +0000 |
commit | 247f83ca46104161f63f2d1753c7782ce1796d66 (patch) | |
tree | 2a1a7ee08170df00c220f66621f1a12abdfc61f5 /cpukit/libnetworking/rtems | |
parent | Update. (diff) | |
download | rtems-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/libnetworking/rtems')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_glue.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |