[rtems-net-legacy PATCH] bsd: Add iface calls to help user manage the iface state

2023-04-12 Thread chrisj
From: Chris Johns --- include/rtems/bsd/iface.h | 62 +++ netsources.py | 26 +++ rtems/rtems-bsd-iface.c | 154 ++ testsuites/wscript| 8 ++ wscript | 7 +- 5 files changed, 236 insertions(+), 21

Re: [PATCH 00/18] Port PTPd to rtems-libbsd

2023-04-12 Thread Chris Johns
On 12/4/2023 11:54 pm, Gabriel Moyano wrote: > These commits are for porting PTPd to rtems-libbsd and are based on the > master branch. > > This work is a joint effort with Chris Johns, which we started some time ago. > Originally, we wanted to port some of the commits to PTPd upstream but >

[PATCH] spec/bsp/makecustom: Make BSP include path a system include path

2023-04-12 Thread chrisj
From: Chris Johns - Export the BSP include path as a system include path so the order of options on an application compiler command line does not matter. Closes #4896 --- spec/build/bsps/makecustom.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 09/18] ptpd: Add malloc definitions for RTEMS

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/dep/sys.c | 16 1 file changed, 16 insertions(+) diff --git a/freebsd/contrib/ptpd/src/dep/sys.c b/freebsd/contrib/ptpd/src/dep/sys.c index b5831701..6c93bf4c 100644 --- a/freebsd/contrib/ptpd/src/dep/sys.c +++

[PATCH 10/18] ptpd: Undefine FALSE and TRUE in ptp_primitives.h

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/ptp_primitives.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freebsd/contrib/ptpd/src/ptp_primitives.h b/freebsd/contrib/ptpd/src/ptp_primitives.h index 56ded20c..d70ae06e 100644 ---

[PATCH 11/18] ptpd: Rename main function for RTEMS

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/ptpd.c | 4 1 file changed, 4 insertions(+) diff --git a/freebsd/contrib/ptpd/src/ptpd.c b/freebsd/contrib/ptpd/src/ptpd.c index 3462dd21..f1026f3b 100644 --- a/freebsd/contrib/ptpd/src/ptpd.c +++ b/freebsd/contrib/ptpd/src/ptpd.c @@ -75,7

[PATCH 14/18] ptpd: Includes needed to compile statistics dependencies for RTEMS

2023-04-12 Thread Gabriel Moyano
--- freebsd/contrib/ptpd/src/ptpd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freebsd/contrib/ptpd/src/ptpd.h b/freebsd/contrib/ptpd/src/ptpd.h index d8bb4b1e..e0e2b1ac 100644 --- a/freebsd/contrib/ptpd/src/ptpd.h +++ b/freebsd/contrib/ptpd/src/ptpd.h @@ -169,13

[PATCH 13/18] ptpd: Add missing includes for RTEMS

2023-04-12 Thread Gabriel Moyano
--- freebsd/contrib/ptpd/src/constants.h | 4 freebsd/contrib/ptpd/src/dep/datatypes_dep.h | 7 +++ freebsd/contrib/ptpd/src/dep/sys.c | 4 freebsd/contrib/ptpd/src/ptpd.h | 6 ++ freebsd/contrib/ptpd/src/timingdomain.c | 4 5 files

[PATCH 12/18] ptpd: XMALLOC macro defined for RTEMS

2023-04-12 Thread Gabriel Moyano
--- freebsd/contrib/ptpd/src/ptpd.h | 9 + 1 file changed, 9 insertions(+) diff --git a/freebsd/contrib/ptpd/src/ptpd.h b/freebsd/contrib/ptpd/src/ptpd.h index 08090317..387d6525 100644 --- a/freebsd/contrib/ptpd/src/ptpd.h +++ b/freebsd/contrib/ptpd/src/ptpd.h @@ -183,12 +183,21 @@

[PATCH 04/18] ptpd: Add implementation of eventtimer based on kqueue

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/dep/datatypes_dep.h | 10 + freebsd/contrib/ptpd/src/dep/eventtimer.h | 6 +- .../contrib/ptpd/src/dep/eventtimer_kqueue.c | 184 ++ freebsd/contrib/ptpd/src/dep/kqueue.c | 80

[PATCH 07/18] ptpd: Saving rtOpst in ptpClock earlier

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/dep/startup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freebsd/contrib/ptpd/src/dep/startup.c b/freebsd/contrib/ptpd/src/dep/startup.c index 97231d99..ace980fa 100644 --- a/freebsd/contrib/ptpd/src/dep/startup.c +++

[PATCH 08/18] ptpd: Define GLOB_ABORTED as GLOB_ABEND

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/dep/sys.c | 4 1 file changed, 4 insertions(+) diff --git a/freebsd/contrib/ptpd/src/dep/sys.c b/freebsd/contrib/ptpd/src/dep/sys.c index bf459a62..b5831701 100644 --- a/freebsd/contrib/ptpd/src/dep/sys.c +++

[PATCH 17/18] rtemsbsd: Add ptpd as a shell command

2023-04-12 Thread Gabriel Moyano
--- libbsd.py | 12 +++ rtemsbsd/include/machine/rtems-bsd-commands.h | 2 + rtemsbsd/include/rtems/ptpd.h | 20 + rtemsbsd/ptpd/ptpd.c | 78 +++ rtemsbsd/rtems/rtems-bsd-shell-ptpd.c | 66

[PATCH 03/18] ptpd: Add conditional macros for RTEMS

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/dep/constants_dep.h | 5 +++-- freebsd/contrib/ptpd/src/dep/net.c | 7 ++- freebsd/contrib/ptpd/src/dep/ptpd_dep.h | 8 freebsd/contrib/ptpd/src/dep/startup.c | 2 ++ freebsd/contrib/ptpd/src/dep/sys.c |

[PATCH 06/18] ptpd: Add debug prints for ipv4 in net.c

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/dep/net.c | 12 1 file changed, 12 insertions(+) diff --git a/freebsd/contrib/ptpd/src/dep/net.c b/freebsd/contrib/ptpd/src/dep/net.c index edee5dc6..a0f44098 100644 --- a/freebsd/contrib/ptpd/src/dep/net.c +++

[PATCH 05/18] ptpd: Add missing cast in dictionary.c

2023-04-12 Thread Gabriel Moyano
From: Chris Johns --- freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c b/freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c index ffe35791..772ff8ce 100644 ---

[PATCH 18/18] testsuite: Add test ptpd01

2023-04-12 Thread Gabriel Moyano
--- libbsd.py| 2 + testsuite/ptpd01/test_main.c | 171 +++ 2 files changed, 173 insertions(+) create mode 100644 testsuite/ptpd01/test_main.c diff --git a/libbsd.py b/libbsd.py index 8b9b0c39..96f69c8c 100644 --- a/libbsd.py +++ b/libbsd.py

[PATCH 16/18] ptpd: Add to build system

2023-04-12 Thread Gabriel Moyano
--- buildset/default.ini | 1 + libbsd.py| 47 2 files changed, 48 insertions(+) diff --git a/buildset/default.ini b/buildset/default.ini index 88379a96..9145be9b 100644 --- a/buildset/default.ini +++ b/buildset/default.ini @@ -40,6 +40,7

[PATCH 02/18] ptpd: Add VERSION file

2023-04-12 Thread Gabriel Moyano
--- freebsd/contrib/ptpd/VERSION | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 freebsd/contrib/ptpd/VERSION diff --git a/freebsd/contrib/ptpd/VERSION b/freebsd/contrib/ptpd/VERSION new file mode 100644 index ..4c95e563 --- /dev/null +++

[PATCH 00/18] Port PTPd to rtems-libbsd

2023-04-12 Thread Gabriel Moyano
These commits are for porting PTPd to rtems-libbsd and are based on the master branch. This work is a joint effort with Chris Johns, which we started some time ago. Originally, we wanted to port some of the commits to PTPd upstream but unfortunately the project is no longer maintained (our pull