Commit Graph

18395 Commits

Author SHA1 Message Date
Axel Dörfler
2e31a85d7f The DHCP message must be send as a link-level broadcast for an unconfigured interface.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-11 16:54:49 +00:00
Stefano Ceccherini
4a765b5f26 moved some variables around
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-11 15:58:29 +00:00
Bruno G. Albuquerque
a439fba59d Fix build under Linux/GCC4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-11 12:15:59 +00:00
Stefano Ceccherini
f2b50593a8 renamed pfd to gPfd as it's a global variable, fixed indentation in
TermView.cpp, other style changes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-11 11:13:06 +00:00
DarkWyrm
f0af178d09 Change Save button into Apply because that is what it really does. Probably the last change I will make before checking in the new prefs app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-10 23:28:19 +00:00
Marcus Overhagen
8d16d3335d added ethernet interface framework, taken from openfirmware boot platform
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-09 22:52:23 +00:00
DarkWyrm
32f5c59f50 Slightly simplified label
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-09 03:52:44 +00:00
DarkWyrm
32f2d12260 Slightly simpler label
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-09 03:51:55 +00:00
DarkWyrm
c9c63ff858 Made a *lot* of controls less technical
Completely did away with the config window (not needed except for its own development)
Shortened shutdown time when asked to quit by some other source than system shutdown


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-09 03:42:10 +00:00
DarkWyrm
b82780cfed Remove 2 options which are not needed from the settings view
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-09 03:38:11 +00:00
DarkWyrm
fa4cb73d7b Usability tweaks to labels
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-09 02:23:19 +00:00
DarkWyrm
ccf795b406 Another small label tweak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-08 01:48:33 +00:00
DarkWyrm
595f30a33f Small label tweak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-08 01:45:31 +00:00
DarkWyrm
9c01ee30da First in a series of revisions to improve the usability of the E-Mail prefs app.
This one removes a number of edge-case options and rewords technical phrases


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-08 01:05:00 +00:00
Jérôme Duval
3d8771eeef commit for Stefano
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-07 17:47:59 +00:00
Jérôme Duval
e124e2b870 forgot this change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-07 17:47:13 +00:00
Stefano Ceccherini
08d9291667 removed now unneded extra Draw() call used as a workaround to broken
scrolling.
Menu attached to menubars now use scrolling if they are opened near the 
bottom of the screen (just like in beos). I'm not sure if this is so 
nice, though, so it could be reverted. Patch contributed by Lucasz 
Zemczak


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-07 11:25:24 +00:00
Stefano Ceccherini
b19041249d got rid of the tty_name global
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-07 11:23:31 +00:00
Jérôme Duval
4d5d5756b4 updated version info
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-06 23:02:27 +00:00
Jérôme Duval
19dd8d033e upgraded to bison 2.3
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-06 22:57:59 +00:00
Jérôme Duval
a00a227627 Stop gcc4 complaining about "type qualifiers ignored on function return type" (from a next mesa release)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-06 21:34:04 +00:00
Axel Dörfler
fb81684f81 The beginnings of automatic configuration of network devices using DHCP; this is
currently only triggered when there is no configuration file - it can't be configured
this way yet.
All DHCP currently does is to send a UDP broadcast DHCP discover message. More to come.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-06 19:00:00 +00:00
Axel Dörfler
26cbcedb9c Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-06 18:38:38 +00:00
Axel Dörfler
4818d3b627 IPv4 send_routed_data() can now also work with a route whose address is NULL; this
is useful for bringing up (and using) an unconfigured interface. Specifically, DHCP
will be using this method to get the broadcast out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-06 18:38:08 +00:00
Stefano Ceccherini
f17a85d17d set the extrarect also for menubars (but it's not yet used)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-05 13:53:51 +00:00
Stefano Ceccherini
8071d85b5a fixed the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-05 13:34:14 +00:00
Axel Dörfler
9172931102 Updated the Netscript to the syntax of the new commands.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-05 12:38:02 +00:00
Axel Dörfler
bcb0dd2b3b The R5 compatibility is now turned off when the socket functions are used
within the library - theoretically, this mechanism could be extended to
turn the compatibility layer on and off based on the images that call the
functions (allowing to mix R5 and BONE network add-ons in a single executable).
This change fixes R5 networking apps such as Vision, and NetworkTime (both
now seem to work fine under Haiku).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-05 03:03:15 +00:00
Axel Dörfler
40eb4ed30d * Header prediction was a bit too generous (and thus used too often)
* SendData() could return an error and still wanted to own the buffer passed in
* Removed the timeout computations from SendData() - looks like it's usually
  done the simple way when the data has to be submitted in smaller packets.
* ReadData() no longer blocks in case the peer has closed the connection.
* More debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-05 02:26:13 +00:00
Axel Dörfler
d344e18b94 Calmed down net_buffer and IPv4 a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-05 02:21:06 +00:00
Axel Dörfler
5869c1e7f3 * sending now detect partial writes and does not return an error in that case.
* writev() now also calls bind() if needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-05 02:15:20 +00:00
Stephan Aßmus
2cfe93e780 * renamed HWInterface locking to LockParallelAccess() and
LockExclusiveAccess() (meaning more or less access to the
  frame buffer)
* extracted the AGGTextRenderer to be a global instance used
  by each Painter instance (currently, it is thread safe because
  of the global font lock, so there is some work left in this
  regard)
* gave every ServerWindow it's own DrawingEngine instance, this
  is work in progress. So far, there doesn't seem to be a regression,
  but less fighting over the exclusive access to the frame buffer, now
  each ServerWindow thread can draw in parallel. There is room for
  improvement, plus I think I'm leaking the DrawingEngine...
* changed the locking for the software cursor. ShowSoftwareCursor()
  can only be called if HideSoftwareCursor(BRect) returned true, or
  if you called the generic HideSoftwareCursor(), since it needs
  to keep the cursor lock and unlocks in Show...!
* some clean up and renaming in Decorator and friends
* moved PatternHandler.h to live along with the .cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 22:25:17 +00:00
Axel Dörfler
c31e5df06c count_iovecs() and get_iovecs() now only take nodes into account that contain data.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 17:49:47 +00:00
Axel Dörfler
545be9ce4c We shouldn't try to unlock a no-longer-existing endpoint.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 17:28:14 +00:00
Axel Dörfler
03a536148f TCPEndpoint::fEndpointNextWithSamePort was not initialized when binding to an ephemeral port.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 17:15:36 +00:00
Axel Dörfler
f4b9215615 Don't hold the socket's lock when calling socket_read_avail() or socket_send_avail().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 16:54:05 +00:00
Axel Dörfler
6cf91f9542 Before freeing "next", it should have been removed already...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 16:15:21 +00:00
Axel Dörfler
64222e845d Make sure that buffers that have more than one iovec can still be sent (by copying them).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 16:14:07 +00:00
Stefano Ceccherini
a675fc2864 Let go what I said about bug #890. This was the real problem
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 15:37:51 +00:00
Axel Dörfler
9299a7ff2a Now use a random (based on system_time()) initial sequence number - this also
revealed a bug in the recognition of faulty SYNs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 15:09:02 +00:00
Axel Dörfler
442c097946 Renamed class TCPConnection to TCPEndpoint.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 14:49:58 +00:00
Axel Dörfler
10fdb28c47 * Some minor work on TIME_WAIT state, and its timer.
* endpoints are no longer deleted without unbinding them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 14:41:12 +00:00
Axel Dörfler
9cbe6ce200 Rewrote how bind() works:
* there are now two hash tables: one for connections, and one for ports
* the first one is used to find the endpoint for incoming connections
* the latter is used to check if the address to bind() to is still available
  (incl. support for SO_REUSEADDR, and SO_REUSEPORT). Specialising an existing
  socket is not allowed, though; wildcard sockets need to be started last.
* the TCPConnection class now has a pointer to the next endpoint with the
  same port number - this list is scanned for the existing bound sockets
  on that port.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 13:44:35 +00:00
Axel Dörfler
f7d2a39699 Binding the server shouldn't have worked before - sin_len was set to zero...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 13:32:47 +00:00
Ingo Weinhold
20fa6fad79 FreeBSD build fix. Must have overlooked this one. Thanks to Samuel Rodriguez Perez.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-02 16:13:15 +00:00
Stephan Aßmus
64dd737cf3 * fixed the dirty canvas when Icon-O-Matic is started in Haiku
(and also improved performance of rendering icons, the background
  was cleared for no reason on each Draw() call) However there
  must be a bug still in the app_server which causes GetClippingRegion()
  to return an out-of-date clipping region (R5 has the very same bug
  though)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-02 11:12:12 +00:00
Stephan Aßmus
ab12785c61 * I think I finally caught that bug where the test environment crashed
so frequently when unflattening R5 messages (each mouse event arrives
  as an R5 message in the test environment): unflatten_r5_message()
  retrieved the pointer to the message header, but afterwards cleared
  the message... resulting in the header pointer to be invalid.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-02 11:08:12 +00:00
Axel Dörfler
489caaef82 setitimer() allows the second argument to be NULL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-01 13:08:24 +00:00
Axel Dörfler
d081f61f0c * The driver did not handle any non-networking opcodes - including B_SET_NONBLOCKING_IO
and friends; the correct behaviour is to not let those opcodes go deeper in the stack
  (ie. when calling control() on the socket).
* Fixed compilation with debugging output turned on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-01 12:54:54 +00:00
Axel Dörfler
379cdb69ee Added _socket_interrupt() for compatibility.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-01 12:41:21 +00:00