Commit Graph

119 Commits

Author SHA1 Message Date
Jérôme Duval
83e02263b7 added a socketpair in libsocket.so with corresponding code in the network stack driver and the network stack
socketpair() in the network stack is empty and still to be implemented for real


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-28 12:21:42 +00:00
Axel Dörfler
900849fa0d Since objects/.../system/kernel is now a directory, the kernel target is now
called kernel_${arch} like on disk. A "jam kernel" will still work, though.
Also updated all those Jamfiles I forgot to update before.
Since makehdimage now runs through (and even builds a working image), I guess
most of the consequences of the "kernel/core" -> "system/kernel" rename task
are solved.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 14:49:55 +00:00
Michael Lotz
8b8ddda544 Added socket.c to the build again. It is of course neccessary to have it in libnet.so. The real version of socket is in libsocket.so.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 18:12:40 +00:00
Axel Dörfler
8a43fdf807 Fixed the build for target Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-10 12:40:43 +00:00
Michael Lotz
22f72496d9 Adapt the build of the network libraries to the different target platforms. If we compile for Haiku we don't want select for example as we have it in libroot, but we need it under R5.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-09 16:10:09 +00:00
Andrew Bachmann
8080d00048 link to libroot.so instead of root, so uname is available
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 21:56:49 +00:00
Jérôme Duval
cc3255267c EDESTADDRREQ is now defined
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-11 16:49:14 +00:00
Ingo Weinhold
365eee4a8b Don't include uname() when being built for Haiku. Actually the whole
file should not be included, but if simply left out, linking libnet will
fail, complaining about a missing _h_errnop().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-22 17:58:32 +00:00
Philippe Houdoin
4907c35be7 Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 11:49:02 +00:00
Philippe Houdoin
1445ff4a06 Backup /etc/* network config files too. Update the README.html, still in needs
for more details...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 13:50:30 +00:00
Philippe Houdoin
16bf4f998b Package rule was wrongly placed!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 01:07:45 +00:00
Philippe Houdoin
7dab30dbf7 Move README.html upper.
Add an install script to haiku-networkingkit-cvs package, featuring an
uninstall.zip backup creation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 00:51:22 +00:00
Philippe Houdoin
f1d8cfb432 TODO comment commit ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-03 15:18:47 +00:00
Waldemar Kornewald
982115e516 Fixed a buffer overflow caused by our R5 select() emulation.
Added missing uname() function which is needed for full R5 compatibility.
It seems that nearly all apps are working now. I could finally run Vision (BONE and R5), BeShare (quick test only), lynx, Net+, etc.
Apps that don't work: Mozilla for BONE, some ssh binary that I downloaded, Be's ftp when not in passive mode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:35:31 +00:00
Philippe Houdoin
d72d2ff161 Rename get_stack_driver_path() into stack_driver_path() to follow BeOS naming policy
about functions directly returning the value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 08:56:18 +00:00
Philippe Houdoin
1886cac8e3 Include /etc files in the package. Their installation at final location is
not yet there, work in progress.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-30 21:55:29 +00:00
Philippe Houdoin
7ada78200d NetworkingKit package's libs where misplaced, installed into
Desktop/openbeos-networkingkit-cvs, when bin tools where, them, installed into Desktop/haiku-networkingkit-cvs !
This should not have help earlier tester(s) ;-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 13:45:46 +00:00
Philippe Houdoin
200ec0269e Remove const that breaks binary compatibility (const are mangled too).
Thanks axeld to point at them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-14 01:24:57 +00:00
Philippe Houdoin
2c42f7bcf1 Complete BNetEdnpoint implementation, based on Alexandre Bique contribution.
Fix sendto() and recvfrom() sockaddr length argument to int, not size_t.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-14 00:12:28 +00:00
Philippe Houdoin
3bf35a18e8 Now, Dump() output hex and ascii side by side.
Renamed g_IsEnabled global into a more meaningfull name.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-13 09:19:13 +00:00
Philippe Houdoin
8f6af50004 openbeos-networkingkit-cvs => haiku-networkingkit-cvs
Haiku'ed libnet/README.html


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-26 22:02:39 +00:00
Philippe Houdoin
31dca902f0 libnetapi.so is now again linked against libnet.so to be R5 binary compatible.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-14 21:55:40 +00:00
Philippe Houdoin
6d55406426 Was assuming sys/cdefs.h included by inet.h, which is not (anymore).
Added ISC arpa/nameser.h private header instead of sys/cdefs.h to follow others
source modules include pattern.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 00:01:39 +00:00
Philippe Houdoin
995e1b177a gethostname() is located in libnet.so on R5 & BONE *and* our own stack too.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 23:21:51 +00:00
Philippe Houdoin
c6ee24f79e Wrong headers path order, local headers should win over private.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-25 23:35:40 +00:00
Philippe Houdoin
f37d5d3cdd Ooops, -nodefaultlibs means no libroot.so link by default!
Add it explicitly now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-25 23:22:25 +00:00
Philippe Houdoin
c898b9b707 Should not be linked against R5's libnet.so.
Move ISC-specific headers to private/net, including non-POSIX headers
required by ISC headers...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-25 22:45:42 +00:00
Philippe Houdoin
4a87916403 Should not be liking against R5 libnet.so!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-25 22:21:38 +00:00
Waldemar Kornewald
38737ad1b1 Just changed the libs to link against our private libsocket.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-25 10:38:18 +00:00
Waldemar Kornewald
0ddbc23a4e Added _res_resultcodes for improved BONE compatibility.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 13:00:44 +00:00
Waldemar Kornewald
58a1abc4d6 Added missing functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 12:42:52 +00:00
Waldemar Kornewald
a45c236cab Added libbind and libsocket to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:29:45 +00:00
Waldemar Kornewald
b155eedfb1 Checkin of BIND 9.2.3 (libbind.so).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:03:30 +00:00
Waldemar Kornewald
ffa9d4cce9 Now linking against libsocket.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 15:58:18 +00:00
Waldemar Kornewald
eda72d2688 Checked in our version of libsocket.so. When building for BONE use this command:
BONE_VERSION=1 jam
This will remove the select() function from libsocket.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 15:57:49 +00:00
Waldemar Kornewald
808485e453 libnet.so gets its own headers and is somewhat separated from the rest of the system to make it build fine.
Later we may decide to replace it with the libbind.so code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 15:52:16 +00:00
Waldemar Kornewald
ead04ffa5e Our netstack works now! I used Vision and Net+ and it did not crash!!!
But I would not consider it stable.
Not tested on R5 net_server, only BONE (replaced BONE stack)!
Not compatible to BONE applications (you must use net_server apps or OBOS apps)!

Removed debug output from compat.c.
Fixed DNS bug (well, it's very hacky).

NOTE FOR BONE USERS: Uncomment the definition of BONE_VERSION in select.c!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-08 13:06:00 +00:00
Philippe Houdoin
504447b3ca -nostdlib didn't link even with startfiles, which we needs for initialize_before() & co.
Soften to -nodefaultlibs link flag, so, which should have been in first place...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 11:19:57 +00:00
Philippe Houdoin
64a3844771 Okay, initialize_*() are not called on plain C libraries...
Re-enable _init() and _fini()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 02:28:57 +00:00
Philippe Houdoin
f856b083a7 Give an initial value to h_errno_tls, to detect if tls_allocate() is ever called.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 00:43:46 +00:00
Philippe Houdoin
a1219cfa33 Removing #undef h_errno and extern int h_errno declaration, as we must
use all the same netdb.h definition, which in turn use TLS to support
a thread-safe h_errno global variable...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 00:01:00 +00:00
Philippe Houdoin
4ff3011e50 Forgot to check this file on which libnet.so depends, which in turn broke the build of huge part of
networking kit! Sorry.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 22:56:16 +00:00
Philippe Houdoin
c52e77c03d Pre-alpha networkingkit packaging network libs and apps.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 23:47:38 +00:00
Philippe Houdoin
7bd3c77058 Add an install_netwrok_etc_files rule to install our BINDy /etc/services,
/etc/resolv.conf and co installed.
Make libnet.so depend on these network etc files installation.
Make libnetapi.so depend on libnet.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-14 10:36:14 +00:00
Philippe Houdoin
26173baa0b Commit default /etc/protocols, /etc/resolv.conf and /etc/services files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 19:03:02 +00:00
Philippe Houdoin
7dab5189a7 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:33:23 +00:00
Philippe Houdoin
b42a6ce4af Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 21:55:55 +00:00
Waldemar Kornewald
8c911f6ce6 h_errno is now declared in each file that uses it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:57:33 +00:00
Waldemar Kornewald
e3cdd30a7a Quick and dirty fix of the DNS resolver bug. Now "ping localhost" works again! :))
The problem was that netdb.h defined a macro that always replaced h_errno with a function call so that libnet.so failed when res_query (and all other functions using h_errno, but this is where the bug occured for me) tried to assign a new value to h_errno which of course failed because it was actually assigned to the return value of _h_errnop().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 14:42:18 +00:00
Philippe Houdoin
c692649c22 Rollback to NET_STACK_GET_COOKIE trick for accept() implementation.
Use the stack_driver_args union even more...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 01:08:49 +00:00
Philippe Houdoin
a91f266ff3 Hide the accept() trick more deeper: now the stack driver manage the trick himself.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 01:02:50 +00:00
Philippe Houdoin
5d7c65c278 Rollback to original xBSD DNS resolver implementation _res global variable name.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 00:16:09 +00:00
Philippe Houdoin
662c015f8a Fix the undefined _res symbol linker error: we don't link anymore our own libnet.so
against default libs, which include BeOS's libnet.so)!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 23:30:42 +00:00
Niels Sascha Reedijk
26e367740a Fix an issue where the _res symbol is undeclared due to another symbol with
the same name somewhere else( I think). At least it works now.  Renamed
to _resolve_configuration (probably will never clash with anything else ever)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 19:03:37 +00:00
Ingo Weinhold
09eceed9b8 Added support for installing the networking stuff. Use: jam [un]install-networking.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 18:15:52 +00:00
beveloper
3b3c3547a5 Updated jamfiles to match recent cvs changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-16 23:31:38 +00:00
Philippe Houdoin
665b241c1a Checked-in updated implementation of these classes written by
Scott Mansfield.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-17 01:18:37 +00:00
Philippe Houdoin
d2f48fdd85 Make libnet.so live switchable between kernel land stack and debug userland stack:
$ export NET_STACK_DRIVER_PATH=/dev/net/server -> userland debug stack (net_server-like)
$ export -n NET_STACK_DRIVER_PATH -> kernelland stack


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-05 09:32:54 +00:00
François Revol
ad68e9c90b select() fix. No wonder why ffserver didn't work =)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-02 13:15:02 +00:00
Philippe Houdoin
ae0638a6be On behalf of Scott Mansfield, here come 3/4 of libnetapi.so rewritten,
and now building for your pleasure ;-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-01 03:07:42 +00:00
Axel Dörfler
e7825532f5 Fixed a small possible bug in the R5 select() implementation for the net kit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 03:44:52 +00:00
beveloper
42415555d3 after many changes, the network stack can now be build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 01:21:54 +00:00
beveloper
2f22e3ab04 small change
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 16:40:00 +00:00
beveloper
9fc7164698 allow building everything without local(tree external) header files beeing
used for kernel or kit components


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 20:13:17 +00:00
Philippe Houdoin
61d3dba838 Re-written by Scott Mansfield <thephantom@mac.com
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-16 22:54:57 +00:00
beveloper
c5c7139355 Started changes to get this compiling.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 20:24:17 +00:00
Philippe Houdoin
f048ab0138 Ooops, libnetapi.so should link against libnet.so!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 20:01:18 +00:00
beveloper
8483ec04b2 include the net kit libaries
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 17:16:53 +00:00
Philippe Houdoin
f3dfda1779 Moving net kit libnet.so and libnetapi.so source code to /current.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 07:38:04 +00:00