static bool bsb_is_reply_for(byte *reply, byte *req) {
// Check source and destination address
if (reply[BF_DEST] != BSB_ADDR_GATEWAY ||
- reply[BF_SRC] != req[BF_DEST] ^ 0x80)
+ reply[BF_SRC] != (req[BF_DEST] ^ 0x80))
return 0;
// Extract body of request and reply
rq_len -= BF_BODY + 2;
rp_len -= BF_BODY + 2;
+ // debug_printf("BSB: Matching reply op=%u/len=%u for op=%u/len=%u\n", reply[BF_OP], rp_len, req[BF_OP], rq_len);
+
switch (req[BF_OP]) {
case BSB_OP_QUERY:
switch (reply[BF_OP]) {