...
This commit is contained in:
parent
4bac134538
commit
f2f2088c64
2 changed files with 3 additions and 3 deletions
|
@ -841,7 +841,7 @@ err_t mmnif_init(struct netif* netif)
|
|||
DEBUGPRINTF("mmnif init(): allocating shared memory failed\n");
|
||||
return ERR_MEM;
|
||||
}
|
||||
memset(mmnif->rx_buff, 0, (sizeof(mm_rx_buffer_t) + MMNIF_RX_QUEUELEN* MMNIF_RX_BUFFERLEN)* MMNIF_CORES);
|
||||
memset(mmnif->rx_buff, 0, sizeof(mm_rx_buffer_t) + MMNIF_RX_QUEUELEN* MMNIF_RX_BUFFERLEN);
|
||||
|
||||
/* init the lock for the hdr
|
||||
*/
|
||||
|
|
|
@ -225,7 +225,7 @@ void* client_task(void* e)
|
|||
/* fill in the socket structure with host information */
|
||||
memset(&pin, 0, sizeof(pin));
|
||||
pin.sin_family = AF_INET;
|
||||
pin.sin_addr.s_addr = inet_addr("192.168.0.2");
|
||||
pin.sin_addr.s_addr = inet_addr("192.168.0.1");
|
||||
pin.sin_port = htons(5001);
|
||||
|
||||
/* grab an Internet domain socket */
|
||||
|
@ -266,7 +266,7 @@ return NULL;
|
|||
int test_init(void)
|
||||
{
|
||||
|
||||
if (get_core_no())
|
||||
if (!get_core_no())
|
||||
create_kernel_task(NULL,server_task,NULL);
|
||||
else
|
||||
create_kernel_task(NULL,client_task,NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue