net/tcp: Remove tcp_listen_initialize
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
716e27cbeb
commit
7028531e74
@ -137,10 +137,6 @@ void net_initialize(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NET_TCP_HAVE_STACK
|
#ifdef NET_TCP_HAVE_STACK
|
||||||
/* Initialize the listening port structures */
|
|
||||||
|
|
||||||
tcp_listen_initialize();
|
|
||||||
|
|
||||||
/* Initialize the TCP/IP connection structures */
|
/* Initialize the TCP/IP connection structures */
|
||||||
|
|
||||||
tcp_initialize();
|
tcp_initialize();
|
||||||
|
@ -830,20 +830,6 @@ void tcp_poll(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn);
|
|||||||
void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
|
void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
|
||||||
int hsec);
|
int hsec);
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: tcp_listen_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Setup the listening data structures
|
|
||||||
*
|
|
||||||
* Assumptions:
|
|
||||||
* Called early in the initialization phase while the system is still
|
|
||||||
* single-threaded.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
void tcp_listen_initialize(void);
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: tcp_findlistener
|
* Name: tcp_findlistener
|
||||||
*
|
*
|
||||||
|
@ -145,27 +145,6 @@ FAR struct tcp_conn_s *tcp_findlistener(FAR union ip_binding_u *uaddr,
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: tcp_listen_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Setup the listening data structures
|
|
||||||
*
|
|
||||||
* Assumptions:
|
|
||||||
* Called early in the initialization phase while the system is still
|
|
||||||
* single-threaded.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
void tcp_listen_initialize(void)
|
|
||||||
{
|
|
||||||
int ndx;
|
|
||||||
for (ndx = 0; ndx < CONFIG_NET_MAX_LISTENPORTS; ndx++)
|
|
||||||
{
|
|
||||||
tcp_listenports[ndx] = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: tcp_unlisten
|
* Name: tcp_unlisten
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user