mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 06:55:13 +00:00
Implements basic TCP connection logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@326 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
c9e6b54c74
commit
f802de0d4c
2 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ void tapdev_init(void)
|
|||
struct ifreq ifr;
|
||||
memset(&ifr, 0, sizeof(ifr));
|
||||
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
|
||||
if (up_ioctl(gtapdevfd, TUNSETIFF, (void *) &ifr) < 0)
|
||||
if (up_ioctl(gtapdevfd, TUNSETIFF, (unsigned long *) &ifr) < 0)
|
||||
{
|
||||
lib_rawprintf(buf);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ void uipdriver_loop(void)
|
|||
timer_reset(&periodic_timer);
|
||||
for(i = 0; i < UIP_CONNS; i++)
|
||||
{
|
||||
uip_periodic(i);
|
||||
uip_tcppoll(i);
|
||||
|
||||
/* If the above function invocation resulted in data that
|
||||
* should be sent out on the network, the global variable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue