Isolate datagram proxy state and replies between instances and peers
This commit is contained in:
1 parent
4be1e62251
commit
268243feeb
8 files changed
+125
-89
No files matched your search
@@ -96,7 +96,7 @@ static void cli_recv_cb(struct ETCP_CONN* conn, struct ll_entry* entry) {
|
||||
if (entry) { queue_dgram_free(entry); queue_entry_free(entry); } return;
|
||||
}
|
||||
size_t payload_len = entry->len - UDP_PROXY_RECV_HDR_SIZE;
|
||||
if (entry->dgram[ROUTER_SVC_PAYLOAD_OFF] == UDP_PROXY_SUBCMD_DATA) {
|
||||
if (entry->dgram[ROUTER_SVC_PAYLOAD_OFF] == UDP_PROXY_SUBCMD_REPLY) {
|
||||
uint8_t* payload = entry->dgram + UDP_PROXY_RECV_HDR_SIZE;
|
||||
if (payload_len == PAYLOAD_SIZE && memcmp(payload, send_buf, PAYLOAD_SIZE) == 0) {
|
||||
reply_rcvd = 1; g_done = 1; g_ok = 1;
|
||||
|
||||
Reference in new issue
Block a user