[openbeosnetteam] Re: Some quick questions
- From: "Waldemar Kornewald" <wkornew@xxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Tue, 30 May 2006 10:46:53 +0200
On 5/30/06, Oliver Tappe <openbeos@xxxxxxxxxxxxxxx> wrote:
> AFAICT, it has always been pretty slow.
Yes, but there's slow and *slow* >;o)
Indeed. It was a lot better one year ago.
At least, now I might have a clue why my PPP stack was never faster
than 50-70K when downloading (expected: >90K)...
> Oh, I think after the build system changes a lot was broken. It looks
> like the Jamfiles have to be adjusted to include the legacy headers
> when building for BONE. Alternatively, always linking against
> libnetwork.so might solve the problem, too (most of our tools won't
> work with BONE, anyway).
Ah, ok, I'll try to research about the legacy headers then, maybe sysctl is
defined somewhere?
sysctl is defined in the respective socket.c files of libnet,
libsocket, and libnetwork. Note that libnet has its own headers in the
libnet folder. Yeah, it's messy, but R5 and BONE headers are not
compatible and we finally removed all this
#ifdef BUILDING_R5_LIBNET
...
#endif
stuff from our official headers (which were moved to legacy, afterwards).
----------------------------------------------------------------------------------------------------------------------------
IMPORTANT!!!
Please keep our POSIX headers clean. Also, please document *all* your
changes to original/ported source files that might have to be updated
at some later point (i.e.: where reproducibility is important). See
libnetwork/dns/DEVNOTES for an example (and there are more DEVNOTES
and TODO files in our repos).
IMPORTANT!!!
----------------------------------------------------------------------------------------------------------------------------
BTW, Oliver, now that I read the DEVNOTES:
"Added a hacky workaround when building for non-Haiku targets:
select.h (in legacy headers) only declares pselect() for Haiku."
Maybe this is useful? :) I can't remember why I did this, though.
> Strange...pselect is exported by our libroot.so. Are you sure that you
> tried this under Haiku?
No, I'm sure I did not try this under Haiku >;o)
I noticed it after having clicked "send". :)
My intention was to run haiku's userland-netstack on BONE, replacing BONE's
network add-ons with ours. In the short documentation I found on Philippe's
site, he explains that this should allow haiku's ifconfig to run on BONE.
It's better to build for BONE. Otherwise you'll use the Haiku headers
which contain stuff that is incompatible to BONE. Please try to use
the legacy headers. That would be the best solution.
--
Bye,
Waldemar
- References:
- [openbeosnetteam] Re: Some quick questions
- From: Axel Dörfler
- [openbeosnetteam] Re: Some quick questions
- From: Oliver Tappe
- [openbeosnetteam] Re: Some quick questions
- From: Waldemar Kornewald
- [openbeosnetteam] Re: Some quick questions
- From: Oliver Tappe
Other related posts:
- » [openbeosnetteam] Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
- » [openbeosnetteam] Re: Some quick questions
> AFAICT, it has always been pretty slow.
Yes, but there's slow and *slow* >;o)
Indeed. It was a lot better one year ago.
> Oh, I think after the build system changes a lot was broken. It looks > like the Jamfiles have to be adjusted to include the legacy headers > when building for BONE. Alternatively, always linking against > libnetwork.so might solve the problem, too (most of our tools won't > work with BONE, anyway).
Ah, ok, I'll try to research about the legacy headers then, maybe sysctl is defined somewhere?
sysctl is defined in the respective socket.c files of libnet, libsocket, and libnetwork. Note that libnet has its own headers in the libnet folder. Yeah, it's messy, but R5 and BONE headers are not compatible and we finally removed all this #ifdef BUILDING_R5_LIBNET ... #endif stuff from our official headers (which were moved to legacy, afterwards).
> Strange...pselect is exported by our libroot.so. Are you sure that you > tried this under Haiku?
No, I'm sure I did not try this under Haiku >;o)
I noticed it after having clicked "send". :)
My intention was to run haiku's userland-netstack on BONE, replacing BONE's network add-ons with ours. In the short documentation I found on Philippe's site, he explains that this should allow haiku's ifconfig to run on BONE.
It's better to build for BONE. Otherwise you'll use the Haiku headers which contain stuff that is incompatible to BONE. Please try to use the legacy headers. That would be the best solution.
- [openbeosnetteam] Re: Some quick questions
- From: Axel Dörfler
- [openbeosnetteam] Re: Some quick questions
- From: Oliver Tappe
- [openbeosnetteam] Re: Some quick questions
- From: Waldemar Kornewald
- [openbeosnetteam] Re: Some quick questions
- From: Oliver Tappe