Made use of uip_ipaddr_to_quad().
This commit is contained in:
parent
74fc3b4576
commit
00d75c8d16
6 changed files with 19 additions and 42 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: ftpc.c,v 1.2 2006/08/21 21:37:37 oliverschmidt Exp $
|
||||
* $Id: ftpc.c,v 1.3 2008/01/04 23:30:57 oliverschmidt Exp $
|
||||
*/
|
||||
#include "contiki.h"
|
||||
#include "ftpc.h"
|
||||
|
@ -286,10 +286,7 @@ senddata(struct ftp_connection *c)
|
|||
break;
|
||||
case STATE_SEND_PORT:
|
||||
len = sprintf(uip_appdata, "PORT %d,%d,%d,%d,%d,%d\n",
|
||||
uip_ipaddr1(&uip_hostaddr),
|
||||
uip_ipaddr2(&uip_hostaddr),
|
||||
uip_ipaddr3(&uip_hostaddr),
|
||||
uip_ipaddr4(&uip_hostaddr),
|
||||
uip_ipaddr_to_quad(&uip_hostaddr),
|
||||
(c->dataconn.port) >> 8,
|
||||
(c->dataconn.port) & 0xff);
|
||||
uip_send(uip_appdata, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue