From: Andrew B. <an...@be...> - 2011-02-28 19:08:22
|
On Feb 28, 2011, at 4:48 PM, Adam Stokes wrote: > Hi, > > I'm Adam, one of the developers for matahari project (http://github.com/matahari). We are attempting to provide some useful apis over a remote interface (qpid.apache.org) that is cross platform. > > The resources used for cross compilation is mingw32. The first patch is for allowing sigar to compile successfully under those requirements. > > Some of the routines in the api (specifically network) we expose the ability to start/stop network interfaces through Windows netsh application. With the current sigar implementation interfaces are listed as 'ethX' which is fine when doing read only within the realm of sigar. When attempting to branch out and use application such as netsh in conjunction with sigar this fails due to netsh requiring a Friendly Name of the network interface. The second patch allows us to capture the interfaces friendlyname and at worst its interface description. The other thing to point out (and thus help justify the increased size of fields such as 'ifname') is that with the recent trend away from ethX for Linux device names[1], its likely that 16 bytes may no longer be sufficient there either. [1] http://digitizor.com/2011/01/25/fedora-15-network-device-naming/ > > > The pull request can be found here, > > https://github.com/hyperic/sigar/pull/5 > > Thank you > Adam > > |