mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
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;
|
} 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 */
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user