Skip to content

Commit

Permalink
Remove inet_setipid since nobody use it
Browse files Browse the repository at this point in the history
Change-Id: I8c1ed7308678d9d2e11cadedd78f7755b8f7aa99
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 authored and patacongo committed Jan 6, 2020
1 parent 5d5897c commit 981d700
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 93 deletions.
12 changes: 0 additions & 12 deletions include/nuttx/net/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,18 +466,6 @@ int net_lockedwait_uninterruptible(sem_t *sem);
FAR struct iob_s *net_ioballoc(bool throttled, enum iob_user_e consumerid);
#endif

/****************************************************************************
* Name: net_setipid
*
* Description:
* This function may be used at boot time to set the initial ip_id.
*
* Assumptions:
*
****************************************************************************/

void net_setipid(uint16_t id);

/****************************************************************************
* Name: net_checksd
*
Expand Down
1 change: 0 additions & 1 deletion net/inet/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ endif

ifeq ($(CONFIG_NET_IPv4),y)
SOCK_CSRCS += ipv4_setsockopt.c ipv4_getsockname.c ipv4_getpeername.c
SOCK_CSRCS += inet_setipid.c
endif

ifeq ($(CONFIG_NET_IPv6),y)
Expand Down
14 changes: 1 addition & 13 deletions net/inet/inet.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,6 @@ struct tcp_conn_s; /* Forward reference */
#endif
struct socket; /* Forward reference */

/****************************************************************************
* Name: inet_setipid
*
* Description:
* This function may be used at boot time to set the initial ip_id.
*
* Assumptions:
*
****************************************************************************/

void inet_setipid(uint16_t id);

/****************************************************************************
* Name: inet_sockif
*
Expand All @@ -159,7 +147,7 @@ void inet_setipid(uint16_t id);
****************************************************************************/

FAR const struct sock_intf_s *
inet_sockif(sa_family_t family, int type, int protocol);
inet_sockif(sa_family_t family, int type, int protocol);

/****************************************************************************
* Name: ipv4_setsockopt and ipv6_setsockopt
Expand Down
67 changes: 0 additions & 67 deletions net/inet/inet_setipid.c

This file was deleted.

0 comments on commit 981d700

Please sign in to comment.