Commit 6fcf37c3 authored by Aurelio Colosimo's avatar Aurelio Colosimo

arch-spec/spec-socket: implement net_shutdown

This patch is very important because wrpc-sw provides the ptp start/stop
commands in its shell. At each of them, sockets must be correctly created
and released, or NET_MAX_SOCKETS limit is easily reached
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent a2e7407e
......@@ -106,7 +106,8 @@ int spec_net_init(struct pp_instance *ppi)
int spec_net_shutdown(struct pp_instance *ppi)
{
//GGDD
ptpd_netif_close_socket(
(wr_socket_t *)NP(ppi)->ch[PP_NP_EVT].custom);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment