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:
patacongo 2007-09-02 21:58:35 +00:00
parent c9e6b54c74
commit f802de0d4c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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