Fix crash when running ifconfig: ifconf struct ioctl() argument wasn't
mapped correctly thru IPC channel... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5216 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b79e5b6020
commit
f0d1aa5337
@ -27,6 +27,7 @@
|
|||||||
// Private includes
|
// Private includes
|
||||||
#include <net_stack_driver.h>
|
#include <net_stack_driver.h>
|
||||||
#include <userland_ipc.h>
|
#include <userland_ipc.h>
|
||||||
|
#include <sys/sockio.h>
|
||||||
|
|
||||||
/* these are missing from KernelExport.h ... */
|
/* these are missing from KernelExport.h ... */
|
||||||
#define B_SELECT_READ 1
|
#define B_SELECT_READ 1
|
||||||
@ -681,17 +682,13 @@ set_command_areas(net_command *command)
|
|||||||
get_area_from_address(&command->area[4], args->u.sysctl.newp);
|
get_area_from_address(&command->area[4], args->u.sysctl.newp);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/*
|
|
||||||
TODO/FIXME: phoudoin: where are these opcodes defined!?!
|
|
||||||
case OSIOCGIFCONF:
|
case OSIOCGIFCONF:
|
||||||
case SIOCGIFCONF:
|
case SIOCGIFCONF: {
|
||||||
{
|
struct ifconf *ifc = (void *) args;
|
||||||
struct ifconf *ifc = data;
|
|
||||||
|
|
||||||
get_area_from_address(&command->area[1],ifc->ifc_buf);
|
get_area_from_address(&command->area[1], ifc->ifc_buf);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user