diff --git a/aucat/amsg.h b/aucat/amsg.h index 8a57715..bba4784 100644 --- a/aucat/amsg.h +++ b/aucat/amsg.h @@ -83,7 +83,7 @@ struct amsg { } vol; struct amsg_hello { uint16_t mode; /* bitmap of MODE_XXX */ -#define AMSG_VERSION 3 +#define AMSG_VERSION 4 uint8_t version; /* protocol version */ uint8_t reserved1[5]; /* for future use */ char opt[12]; /* profile name */ diff --git a/aucat/sock.c b/aucat/sock.c index adb0c5d..b80c1ea 100644 --- a/aucat/sock.c +++ b/aucat/sock.c @@ -1224,7 +1224,7 @@ sock_execmsg(struct sock *f) else f->pstate = SOCK_STOP; AMSG_INIT(m); - m->cmd = AMSG_ACK; + m->cmd = AMSG_STOP; f->rstate = SOCK_RRET; f->rtodo = sizeof(struct amsg); break;