Remove STARTED and STOPPED

This commit is contained in:
Adrien Gallouët
2016-11-07 15:08:25 +00:00
parent 2934228005
commit a75f3b0fd8
2 changed files with 1 additions and 15 deletions

2
mud

Submodule mud updated: 22d61780fd...c612a0772e

View File

@@ -386,8 +386,6 @@ int main (int argc, char **argv)
fd_set rfds;
FD_ZERO(&rfds);
int started = 0;
struct {
unsigned char *buf;
} send, recv;
@@ -443,18 +441,6 @@ int main (int argc, char **argv)
}
}
if (mud_is_up(mud)) {
if (!started) {
state_send(gt.state_fd, "STARTED", tun_name);
started = 1;
}
} else {
if (started) {
state_send(gt.state_fd, "STOPPED", tun_name);
started = 0;
}
}
if (FD_ISSET(tun_fd, &rfds)) {
while (send_size<mtu) {
const ssize_t r = tun_read(tun_fd, send.buf+send_size, mtu);