reply with a AMSG_STOP to AMSG_STOP and bump version

This commit is contained in:
Alexandre Ratchov 2011-04-12 10:38:24 +02:00
parent 5cad7e6688
commit 1be9a4da0b
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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;