mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-04 12:48:20 +00:00
netutils/telnetd and users of telnetd: Add support for IPv6.
This commit is contained in:
parent
98204bad94
commit
28415d662b
9 changed files with 132 additions and 37 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* examples/telnetd/telnetd.c
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* This is a leverage of similar logic from uIP:
|
||||
|
|
@ -53,10 +53,6 @@
|
|||
|
||||
#include "telnetd.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
****************************************************************************/
|
||||
|
|
@ -247,6 +243,7 @@ int telnetd_main(int argc, char *argv[])
|
|||
/* Configure the telnet daemon */
|
||||
|
||||
config.d_port = HTONS(23);
|
||||
config.d_family = AF_INET;
|
||||
config.d_priority = CONFIG_EXAMPLES_TELNETD_DAEMONPRIO;
|
||||
config.d_stacksize = CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE;
|
||||
config.t_priority = CONFIG_EXAMPLES_TELNETD_CLIENTPRIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue