Update udp_socket and udp_close
@@ -18,18 +18,12 @@ static unsigned char BUF_TX_CFG[2 * sizeof(sock_addr_t)];
static unsigned char BUF_RX_CFG[2 * sizeof(sock_addr_t)];
int udp_socket(sock_handle_t *handle, sock_addr_t *addr) {
- /*
memcpy(&(handle->addr), addr, sizeof(sock_addr_t));
- return allow(UDP_DRIVER, ALLOW_HANDLE, (void *) handle, sizeof(sock_handle_t));
- */
- return TOCK_ENOSUPPORT;
+ return TOCK_SUCCESS;
}
int udp_close(sock_handle_t *handle) {
- /*
- return allow(UDP_DRIVER, ALLOW_HANDLE, NULL, sizeof(sock_handle_t));
- */
- return TOCK_ENOSUPPORT;
+ return TOCK_SUCCESS;
}
static int tx_result;
