diff --git a/src/transport/raweth/config.c b/src/transport/raweth/config.c index 486853b1d..08e4684e7 100644 --- a/src/transport/raweth/config.c +++ b/src/transport/raweth/config.c @@ -37,6 +37,7 @@ const _zp_raweth_cfg_entry _ZP_RAWETH_CFG_ARRAY[] = { const _zp_raweth_cfg_whitelist_val _ZP_RAWETH_CFG_WHITELIST[] = { {{0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}}, {{0x00, 0x11, 0x22, 0x33, 0x44, 0x55}}, + {{0x30, 0x03, 0xc8, 0x37, 0x25, 0xa1}}, }; // Don't modify diff --git a/src/transport/raweth/tx.c b/src/transport/raweth/tx.c index 3c32f20e9..df14fbe9f 100644 --- a/src/transport/raweth/tx.c +++ b/src/transport/raweth/tx.c @@ -179,6 +179,8 @@ int8_t _z_raweth_send_t_msg(_z_transport_multicast_t *ztm, const _z_transport_me #if Z_FEATURE_MULTI_THREAD == 1 _z_mutex_lock(&ztm->_mutex_tx); #endif + // Reset wbuf + _z_wbuf_set_wpos(&ztm->_wbuf, 0); // Set socket info _Z_RETURN_IF_ERR(_zp_raweth_set_socket(NULL, &ztm->_link._socket._raweth)); // Write the message header @@ -234,6 +236,8 @@ int8_t _z_raweth_send_n_msg(_z_session_t *zn, const _z_network_message_t *n_msg, default: break; } + // Reset wbuf + _z_wbuf_set_wpos(&ztm->_wbuf, 0); // Set socket info _Z_RETURN_IF_ERR(_zp_raweth_set_socket(keyexpr, &ztm->_link._socket._raweth)); // Write the eth header