Re: libbsd: How to add an option for switching off IPv6 (or other BSD Kernel configurations)

2016-08-02 Thread Christian Mauderer
Am 02.08.2016 um 08:57 schrieb Christian Mauderer: > Am 02.08.2016 um 04:09 schrieb Chris Johns: >> On 02/08/2016 00:04, Christian Mauderer wrote: [...] > >>> Are there any better ideas how to implement such an option? >> >> There are 2 parts that need be to changed to make this work. This >> assu

Re: libbsd: How to add an option for switching off IPv6 (or other BSD Kernel configurations)

2016-08-02 Thread Chris Johns
On 2/08/2016 8:05 PM, Christian Mauderer wrote: > Am 02.08.2016 um 08:57 schrieb Christian Mauderer: >> Am 02.08.2016 um 04:09 schrieb Chris Johns: >>> On 02/08/2016 00:04, Christian Mauderer wrote: > [...] >> Are there any better ideas how to implement such an option? >>> >>> There are 2 part

Add FreeBSD PF Firewall to libbsd

2016-08-02 Thread Christian Mauderer
Hello, I've been working on a port of the FreeBSD firewall PF to libbsd. The first results are available in the libbsd HEAD (commits b5db3321b5b22 to f1941b2b828e). The patch set introduced the following new features: - A basic support for the FreeBSD cdev subsystem. This subsystem uses devfs wh

Re: Error in initializing network parameters

2016-08-02 Thread Sebastian Huber
The USB enumeration runs after the BSD initialization in its own threads. Thus, you have to wait a bit before you attempt to use this interface. You could use a routing socket to do this event triggered, see dhcpcd for an example. On 02/08/16 14:17, Deval Shah wrote: Hello all, With the USB

Error in initializing network parameters

2016-08-02 Thread Deval Shah
Hello all, With the USB and Ethernet working, I started running other tests like ping01 on raspberry Pi. I am getting following error while running the PING test. -- *** LIBBSD PING 1 TEST *** nexus0:

Re: libbsd: Manipulating object files using waf build system

2016-08-02 Thread Gedare Bloom
On Tue, Aug 2, 2016 at 2:04 AM, Christian Mauderer wrote: > Hello, > > I have a second waf problem beneath the one already discussed in the > other thread: Is it possible to do some object file manipulation before > linking? To be exact I would need to rename some of the sections in the > object f

Integration of libcoap into RTEMS-libbsd

2016-08-02 Thread Babacar Diop
Dear users, I would like to know if it is possible to integrate the POSIX/C CoAP implementation *libcoap *into RTEMS-libbsd. Do you think it is possible for now ? Do you have an idea on how to do this ? Any help could be great ! Kind Regards --

Re: [PATCH 1/2] rtems: add sys/mman.h

2016-08-02 Thread Gedare Bloom
This mman.h is copied verbatim from the upstream freebsd sources pulled from the freebsd-org submodule used by rtems for the rtems-libbsd project: https://git.rtems.org/rtems-libbsd/tree/ On Mon, Aug 1, 2016 at 3:55 PM, Gedare Bloom wrote: > --- > newlib/libc/sys/rtems/include/sys/mman.h | 263

Re: [PATCH] posix: move sys/mman.h to newlib and test it in psxhdrs

2016-08-02 Thread Gedare Bloom
This patch can wait until the tool chain patch is available in a snapshot. On Mon, Aug 1, 2016 at 8:48 PM, Chris Johns wrote: > On 02/08/2016 06:12, Gedare Bloom wrote: >> >> This requires toolchain bump with the sister patch "rtems: add >> sys/mman.h" on newlib. > > > What is the plan to get thi

Re: Integration of libcoap into RTEMS-libbsd

2016-08-02 Thread Gedare Bloom
On Tue, Aug 2, 2016 at 11:05 AM, Babacar Diop wrote: > Dear users, > > I would like to know if it is possible to integrate the POSIX/C CoAP > implementation libcoap into RTEMS-libbsd. > Should be possible to link it with an RTEMS built with libbsd using the POSIX interfaces in CoAP. > Do you thin

Re: Integration of libcoap into RTEMS-libbsd

2016-08-02 Thread Babacar Diop
Dear Gedare, Thank you for response. I forgot to precise that I have the networking capabilities on my beaglebone black thanks to Ragunath's work. Ok so basically, I thought about using the RSB to add the library into RTEMS as a static library as it might help me to automatize the work. Is it rea

Re: Integration of libcoap into RTEMS-libbsd

2016-08-02 Thread Gedare Bloom
On Tue, Aug 2, 2016 at 11:53 AM, Babacar Diop wrote: > Dear Gedare, > > Thank you for response. I forgot to precise that I have the networking > capabilities on my beaglebone black thanks to Ragunath's work. > > Ok so basically, I thought about using the RSB to add the library into RTEMS > as a st

Re: [rtems-libbsd commit] pfctl: Adapt for RTEMS.

2016-08-02 Thread Chris Johns
On 02/08/2016 21:21, Sebastian Huber wrote: freebsd/contrib/pf/pfctl/parse-data.h | 42 diff --git a/freebsd/contrib/pf/pfctl/parse-data.h b/freebsd/contrib/pf/pfctl/parse-data.h new file mode 100644 index 000..22f6295 --- /dev/null +++ b/freebsd/contrib/pf/pfc

Re: Add FreeBSD PF Firewall to libbsd

2016-08-02 Thread Chris Johns
On 02/08/2016 21:27, Christian Mauderer wrote: - A basic support for the FreeBSD cdev subsystem. This subsystem uses devfs which I implementation based on the RTEMS IMFS. Is this automatically included and what can we configure and control? - The PF modules can now be linked by using the SYSI

Re: [rtems-libbsd commit] pfctl: Adapt for RTEMS.

2016-08-02 Thread Sebastian Huber
On 03/08/16 01:22, Chris Johns wrote: On 02/08/2016 21:21, Sebastian Huber wrote: freebsd/contrib/pf/pfctl/parse-data.h | 42 diff --git a/freebsd/contrib/pf/pfctl/parse-data.h b/freebsd/contrib/pf/pfctl/parse-data.h new file mode 100644 index 000..22f6295 --

Re: [PATCH] posix: move sys/mman.h to newlib and test it in psxhdrs

2016-08-02 Thread Sebastian Huber
Maybe it makes sense to bundle this with a GCC 6.2 release tool chain update. On 02/08/16 16:23, Gedare Bloom wrote: This patch can wait until the tool chain patch is available in a snapshot. On Mon, Aug 1, 2016 at 8:48 PM, Chris Johns wrote: On 02/08/2016 06:12, Gedare Bloom wrote: This re

Re: libbsd: Manipulating object files using waf build system

2016-08-02 Thread Christian Mauderer
Am 02.08.2016 um 16:41 schrieb Gedare Bloom: > On Tue, Aug 2, 2016 at 2:04 AM, Christian Mauderer > wrote: >> Hello, >> >> I have a second waf problem beneath the one already discussed in the >> other thread: Is it possible to do some object file manipulation before >> linking? To be exact I would

Re: Add FreeBSD PF Firewall to libbsd

2016-08-02 Thread Christian Mauderer
Am 03.08.2016 um 02:54 schrieb Chris Johns: > On 02/08/2016 21:27, Christian Mauderer wrote: >> - A basic support for the FreeBSD cdev subsystem. This subsystem uses >> devfs which I implementation based on the RTEMS IMFS. > > Is this automatically included and what can we configure and control?

Re: Add FreeBSD PF Firewall to libbsd

2016-08-02 Thread Chris Johns
On 03/08/2016 15:56, Christian Mauderer wrote: Am 03.08.2016 um 02:54 schrieb Chris Johns: On 02/08/2016 21:27, Christian Mauderer wrote: - A basic support for the FreeBSD cdev subsystem. This subsystem uses devfs which I implementation based on the RTEMS IMFS. Is this automatically included

Re: Add FreeBSD PF Firewall to libbsd

2016-08-02 Thread Christian Mauderer
Am 03.08.2016 um 08:02 schrieb Chris Johns: > On 03/08/2016 15:56, Christian Mauderer wrote: >> Am 03.08.2016 um 02:54 schrieb Chris Johns: >>> On 02/08/2016 21:27, Christian Mauderer wrote: - A basic support for the FreeBSD cdev subsystem. This subsystem uses devfs which I implementati

Re: Add FreeBSD PF Firewall to libbsd

2016-08-02 Thread Chris Johns
On 03/08/2016 16:15, Christian Mauderer wrote: Basically it boils down to the following: Currently I use an __attribute__ on every variable that has to be initialized. That makes updates a little more difficult because we would have to look out for changed variables. In addition it is difficult f