/*
* This follows the recommended mappings between DSCP code points and WMM access classes
*/
-static u_int8_t so_tc_from_dscp(u_int8_t dscp);
-static u_int8_t
+static u_int32_t so_tc_from_dscp(u_int8_t dscp);
+static u_int32_t
so_tc_from_dscp(u_int8_t dscp)
{
- u_int8_t tc;
+ u_int32_t tc;
if (dscp >= 0x30 && dscp <= 0x3f)
tc = SO_TC_VO;
else
tc = SO_TC_BE;
- return tc;
+ return (tc);
}
errno_t
#endif
(*new_so)->so_upcall = (so_upcall)callback;
(*new_so)->so_upcallarg = context;
+ (*new_so)->last_pid = 0;
+ (*new_so)->last_upid = 0;
}
return error;
}
return;
socket_lock(sock, 1);
- if (sock->so_flags & SOF_UPCALLINUSE)
+ if (sock->so_upcallusecount)
soclose_wait_locked(sock);
sock->so_retaincnt--;