From f0d1aa53373b4db44198f5c984ec192a08267334 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 30 Oct 2003 23:12:14 +0000 Subject: [PATCH] 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 --- .../kernel/drivers/network/stack/net_server_driver.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/add-ons/kernel/drivers/network/stack/net_server_driver.c b/src/add-ons/kernel/drivers/network/stack/net_server_driver.c index ccbe23481f..2568cce9cd 100644 --- a/src/add-ons/kernel/drivers/network/stack/net_server_driver.c +++ b/src/add-ons/kernel/drivers/network/stack/net_server_driver.c @@ -27,6 +27,7 @@ // Private includes #include #include +#include /* these are missing from KernelExport.h ... */ #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); break; -/* - TODO/FIXME: phoudoin: where are these opcodes defined!?! case OSIOCGIFCONF: - case SIOCGIFCONF: - { - struct ifconf *ifc = data; + case SIOCGIFCONF: { + struct ifconf *ifc = (void *) args; - get_area_from_address(&command->area[1],ifc->ifc_buf); + get_area_from_address(&command->area[1], ifc->ifc_buf); break; } -*/ } }