<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Oh, crap, I’m off by 3 orders of magnitude, I’ve got 512KB. <br class=""><div><br class=""></div><div>Bother, I need a nap already.</div><div><br class=""></div><div>A</div><div><br class=""><blockquote type="cite" class=""><div class="">On 2021-February-01, at 15:35, Joel Sherrill <<a href="mailto:joel@rtems.org" class="">joel@rtems.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class="Apple-interchange-newline"><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 1, 2021 at 4:25 PM Andrei Chichak <<a href="mailto:andrei@chichak.ca" class="">andrei@chichak.ca</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="overflow-wrap: break-word;" class="">any guidance choosing between “Legacy Stack” and libbsd?</div></blockquote><div class=""><br class=""></div><div class="">This one is easy. Please please please please do NOT choose the legacy stack. :)</div><div class=""><br class=""></div><div class="">The legacy stack should only be used on projects that are using it and those </div><div class="">are encouraged to move along to libbsd or lwip or new hardware.  We have no</div><div class="">plans to eliminate the legacy stack from the world. But as Gedare said, we want </div><div class="">to move it to a separate repository. If someone cares, then it gets a build system</div><div class="">and can be used with a strong discouragement.</div><div class=""><br class=""></div><div class="">It is 20+ years old now and IPV4 only. Do the math. :)</div><div class=""> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="overflow-wrap: break-word;" class=""><div class=""><br class=""></div><div class="">I’ve got a 512MB of RAM processor, so I expect that I’ll have lots left over. But that is TBD.</div></div></blockquote><div class=""><br class=""></div><div class="">512MB is still huge in RTEMS terms. That won't be a problem for libbsd at all.  It is when you</div><div class="">start considering targets with < 16MB that we have concerns. I suspect that number is <4MB </div><div class="">but the original BSP for the legacy stack only had 1MB for code and data space. It is clear </div><div class="">some boards that could run the legacy stack will not be capable of running libbsd but we</div><div class="">don't have a hard cutoff yet.</div><div class=""><br class=""></div><div class="">--joel</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="overflow-wrap: break-word;" class=""><div class=""><div class=""><br class=""></div><div class="">A<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 2021-February-01, at 15:21, Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" class="">joel@rtems.org</a>> wrote:</div><br class=""><div class=""><div dir="ltr" style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 1, 2021 at 4:03 PM Gedare Bloom <<a href="mailto:gedare@rtems.org" target="_blank" class="">gedare@rtems.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class=""><div dir="ltr" class=""><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 1, 2021 at 2:42 PM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" class="">chrisj@rtems.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">On 2/2/21 8:32 am, Mr. Andrei Chichak wrote:<br class="">> Is there any advantage to using bsd networking over LWiP, or vice versa? <br class=""><br class="">They are different stacks with different feature sets and different hardware<br class="">resource demands. I am not familiar with the features of LwIP so I am not the<br class="">best person to compare them.<br class=""><br class="">The BSD stack has most of the features you get with FreeBSD. It has IPv4, IPv6,<br class="">IPsec, VLAN, bridging, dhcp, openssl, lots of routing alternatives, packet<br class="">filtering and more. It has a range of useful commands including tcpdump.<br class=""><br class="">The BSD based system provides a solid base to solve a range of networking issues<br class="">your RTEMS device may encounter at the system level and not at the low level<br class="">programming level.<br class=""><br class="">The BSD stack uses a lot more resources to do all this and LwIP may be a prefect<br class="">fit. I welcome RTEMS being able to support a range of networking solutions.<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class="">I have a student (Vijay) working on refactoring libnetworking out of RTEMS, and will be testing ability to compile legacy vs libbsd. If the lwip build is demonstrated and clear, I can have him also look at bringing that into the fold. This is in line with <a href="https://devel.rtems.org/ticket/3850" target="_blank" class="">https://devel.rtems.org/ticket/3850</a></div></div></div></blockquote><div class=""><br class=""></div><div class="">One thing to be aware of is that all the POSIX networking header files for RTEMS are in newlib and always present. I had to address this and lwip when we did Deos+RTEMS. Deos uses lwip as their native stack running in a partition and other partitions use a client to get to it. The lwip constants had values that were not the same as the RTEMS BSD headers for POSIX defines. There were also some places where the structure definitions did not align. I had to write a bit of mapping in the client. When lwip works at all, it would be awesome to have a way for it to ignore their own minimal POSIX API files and build against ours. </div><div class=""><br class=""></div><div class="">This would be similar to how the newlib headers define a very complete POSIX API set but each target OS may only support a subset of it.</div><div class=""><br class="">As it is, I wonder if there is a conflict between the RTEMS newlib network .h files and those provided by lwip which could cause issues.</div><div class=""> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class=""><div class="gmail_quote"><div class=""><br class=""></div><div class="">We have no certain timeline yet, but it is now work-in-progress. We will bring to devel when progress is made. If we do lwIP too, we will aim to do a performance analysis with real hardware, so that we can hopefully provide evidence to help these kind of questions. </div><div class=""><br class=""></div><div class="">-Gedare </div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Chris<br class=""></blockquote></div></div>_______________________________________________<br class="">users mailing list<br class=""><a href="mailto:users@rtems.org" target="_blank" class="">users@rtems.org</a><br class=""><a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank" class="">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div><span style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">_______________________________________________</span><br style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><span style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">users mailing list</span><br style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><a href="mailto:users@rtems.org" target="_blank" style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">users@rtems.org</a><br style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><a href="http://lists.rtems.org/mailman/listinfo/users" target="_blank" style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">http://lists.rtems.org/mailman/listinfo/users</a></div></blockquote></div><br class=""><div class=""><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="overflow-wrap: break-word;" class=""><span style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="overflow-wrap: break-word;" class=""><span style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="overflow-wrap: break-word;" class=""><div class="">---------------------</div><div class="">Andrei Chichak</div><div class="">4024-120 STREET</div><div class="">EDMONTON, ALBERTA</div><div class="">T6J 1X8</div><div class="">CANADA</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Phone: 780-434-6266</div><div class="">Skype: andrei.chichak</div><div class=""><br class=""></div></div></span><br class=""></div></span><br class=""></div></span><br class=""></span><br class=""></div><br class=""></div></div></div></blockquote></div></div><span style="caret-color: rgb(0, 0, 0); font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">users mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="mailto:users@rtems.org" style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">users@rtems.org</a><br style="caret-color: rgb(0, 0, 0); font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="http://lists.rtems.org/mailman/listinfo/users" style="font-family: SabonRoman; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://lists.rtems.org/mailman/listinfo/users</a></div></blockquote></div><br class="">
<br class=""></body></html>