[PATCH 0/5] Network Demo Cleanup

Joel Sherrill joel at rtems.org
Fri May 21 19:15:57 UTC 2021


Hi

The network demos repository has been lacking for love over the past
few years. These examples are intended to be able to compile for loopback
but have their network configuration changed to that of a user environment
and then work properly there.

When Jennifer and I started, this code did not build since it didn't
account for the movement of the legacy network to other libraries. Then
it had a number of warnings related to obsolete CONFIGURE_ options, time_t
being 64 bits, missing prototypes and needing includes added, etc. After
it was warning free, I made a few sweeps to tidy up the RTEMS Configuration
in each one. I switched them all to Unified Memory and Unlimited Objects.
I eliminated CONFIGURE_MAXIMUM_'s which were no longer needed. I eliminated
settings which were simply specifying the default value. 

These are still strictly for the legacy stack but that needs to be addressed
since beyond the network configuration and initialization, there should
be nothing specific to legacy or libbsd (or lwIP). This should be relatively
straightforward refactoring work.

Anyway, that's it for this series. This code is much cleaner and hopefully
on a path to work with multiple stacks.

Jennifer Averett (1):
  Required changes to get back to a buildable state.

Joel Sherrill (4):
  Add various .gitignore files
  Misc: Fix various warnings
  Switch all tests to unlimited objects and unified workspace
  Eliminate configuring init mask modes since setting to default value

 .gitignore             |  1 +
 Makefile               |  3 ++-
 dnstest/Makefile       |  2 +-
 dnstest/init.c         | 15 +++++----------
 http/Makefile          |  2 +-
 http/init.c            | 18 +++++-------------
 mcast/.gitignore       |  5 +++++
 mcast/Makefile         |  4 ++--
 mcast/init.c           | 14 +++++++-------
 mcast/mcast.c          |  1 +
 mcast/mcast_route.c    |  1 +
 netdemo/Makefile       |  4 ++--
 netdemo/init.c         | 16 ++++++----------
 netdemo/test.c         |  2 +-
 nfsClientTest/Makefile |  1 +
 nfsClientTest/init.c   | 13 ++++---------
 ntp/Makefile           |  2 +-
 ntp/init.c             | 21 ++++++++-------------
 rpc_demo/Makefile      |  2 +-
 rpc_demo/init.c        |  7 +++----
 select/Makefile        |  2 +-
 select/init.c          | 15 +++++----------
 select/test.c          |  2 +-
 telnetd/Makefile       |  3 ++-
 telnetd/init.c         | 18 +++++++-----------
 tftpTest/Makefile      |  3 ++-
 tftpTest/init.c        | 15 +++++----------
 tftpTest/test.c        | 10 +++++-----
 ttcp/.gitignore        |  1 +
 ttcp/Makefile          |  2 +-
 ttcp/init.c            | 13 +++++--------
 ttcp/rtems_ttcp.c      |  7 ++++---
 ttcp/ttcp_orig/ttcp.c  | 12 ++++++------
 33 files changed, 103 insertions(+), 134 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 mcast/.gitignore
 create mode 100644 ttcp/.gitignore

-- 
1.8.3.1



More information about the devel mailing list