mirror of https://github.com/ericonr/sndio.git
reply with a AMSG_STOP to AMSG_STOP and bump version
This commit is contained in:
parent
5cad7e6688
commit
1be9a4da0b
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue