Add new control_net_module_args to global stack_driver_args union.
Report this change in the stack driver code, to keep consistent code. TODO: Implement NET_STACK_CONTROL_NET_MODULE in net_server_driver.c too! git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5163 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
73e65d4da8
commit
eb8b30128e
@ -151,6 +151,7 @@ struct stack_driver_args {
|
|||||||
struct transfer_args transfer;
|
struct transfer_args transfer;
|
||||||
struct sysctl_args sysctl;
|
struct sysctl_args sysctl;
|
||||||
struct select_args select;
|
struct select_args select;
|
||||||
|
struct control_net_module_args control;
|
||||||
} u;
|
} u;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -378,10 +378,8 @@ static status_t net_stack_control(void *cookie, uint32 op, void *data, size_t le
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
case NET_STACK_CONTROL_NET_MODULE: {
|
case NET_STACK_CONTROL_NET_MODULE: {
|
||||||
struct control_net_module_args *control_args =
|
return core->control_net_module(args->u.control.name, args->u.control.op,
|
||||||
(struct control_net_module_args*) data;
|
args->u.control.data, args->u.control.length);
|
||||||
return core->control_net_module(control_args->name, control_args->op,
|
|
||||||
control_args->data, control_args->length);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user