Home | History | Annotate | Download | only in server

Lines Matching refs:interface

47 // Returns the PID of the clatd running on interface |interface|, or 0 if clatd is not running on
48 // |interface|.
49 pid_t ClatdController::getClatdPid(char* interface) {
50 auto it = mClatdPids.find(interface);
54 int ClatdController::startClatd(char* interface) {
55 pid_t pid = getClatdPid(interface);
58 ALOGE("clatd pid=%d already started on %s", pid, interface);
63 // Pass in the interface, a netid to use for DNS lookups, and a fwmark for outgoing packets.
64 unsigned netId = mNetCtrl->getNetworkForInterface(interface);
66 ALOGE("interface %s not assigned to any netId", interface);
83 ALOGD("starting clatd on %s", interface);
86 progname += interface;
97 interface,
112 mClatdPids[interface] = pid;
113 ALOGD("clatd started on %s", interface);
119 int ClatdController::stopClatd(char* interface) {
120 pid_t pid = getClatdPid(interface);
127 ALOGD("Stopping clatd pid=%d on %s", pid, interface);
131 mClatdPids.erase(interface);
133 ALOGD("clatd on %s stopped", interface);
138 bool ClatdController::isClatdStarted(char* interface) {
140 pid_t pid = getClatdPid(interface);
146 mClatdPids.erase(interface); // child exited, don't call waitpid on it again