* We now use a FreeBSD compatible ifmediareq structure for SIOCIFMEDIA, and

SIOCSIFMEDIA.
* Made sure that the two media ioctls are actually forwarded to the driver.
* Added NetworkDevice.cpp to the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39389 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2010-11-10 21:44:26 +00:00
parent e78fea43f5
commit d72ede75fb
5 changed files with 53 additions and 24 deletions
+12
View File
@@ -64,6 +64,18 @@ struct ifaliasreq {
uint32_t ifra_flags;
};
/* used with SIOCGIFMEDIA */
struct ifmediareq {
char ifm_name[IF_NAMESIZE];
int ifm_current;
int ifm_mask;
int ifm_status;
int ifm_active;
int ifm_count;
int* ifm_ulist;
};
/* interface flags */
#define IFF_UP 0x0001
#define IFF_BROADCAST 0x0002 /* valid broadcast address */