...
This commit is contained in:
parent
947936a043
commit
a2c40aee35
2 changed files with 3 additions and 3 deletions
|
@ -755,7 +755,7 @@ err_t mmnif_tx(struct netif* netif, struct pbuf* p)
|
|||
else
|
||||
mmnif_write_rx_buffl(dest_ip, pos, p->payload,p->tot_len);
|
||||
|
||||
udelay(50000);
|
||||
// udelay(50000);
|
||||
|
||||
/* like above ensure we are the only ones editing the hdr */
|
||||
mmnif_lock_rx_hdr(dest_ip);
|
||||
|
|
|
@ -226,7 +226,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 */
|
||||
|
@ -267,7 +267,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