mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user