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
@ -198,7 +198,7 @@ void tapdev_init(void)
|
|||||||
struct ifreq ifr;
|
struct ifreq ifr;
|
||||||
memset(&ifr, 0, sizeof(ifr));
|
memset(&ifr, 0, sizeof(ifr));
|
||||||
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
|
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);
|
lib_rawprintf(buf);
|
||||||
return;
|
return;
|
||||||
|
@ -145,7 +145,7 @@ void uipdriver_loop(void)
|
|||||||
timer_reset(&periodic_timer);
|
timer_reset(&periodic_timer);
|
||||||
for(i = 0; i < UIP_CONNS; i++)
|
for(i = 0; i < UIP_CONNS; i++)
|
||||||
{
|
{
|
||||||
uip_periodic(i);
|
uip_tcppoll(i);
|
||||||
|
|
||||||
/* If the above function invocation resulted in data that
|
/* If the above function invocation resulted in data that
|
||||||
* should be sent out on the network, the global variable
|
* should be sent out on the network, the global variable
|
||||||
|
Loading…
Reference in New Issue
Block a user