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; } vol;
struct amsg_hello { struct amsg_hello {
uint16_t mode; /* bitmap of MODE_XXX */ uint16_t mode; /* bitmap of MODE_XXX */
#define AMSG_VERSION 3 #define AMSG_VERSION 4
uint8_t version; /* protocol version */ uint8_t version; /* protocol version */
uint8_t reserved1[5]; /* for future use */ uint8_t reserved1[5]; /* for future use */
char opt[12]; /* profile name */ char opt[12]; /* profile name */

View File

@ -1224,7 +1224,7 @@ sock_execmsg(struct sock *f)
else else
f->pstate = SOCK_STOP; f->pstate = SOCK_STOP;
AMSG_INIT(m); AMSG_INIT(m);
m->cmd = AMSG_ACK; m->cmd = AMSG_STOP;
f->rstate = SOCK_RRET; f->rstate = SOCK_RRET;
f->rtodo = sizeof(struct amsg); f->rtodo = sizeof(struct amsg);
break; break;