Commit Graph

19930 Commits

Author SHA1 Message Date
Hugo Santos d438fa4c12 added buffer, datalink and socket module references to the stack module so we don't have to load them in each other module.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-13 03:06:36 +00:00
Hugo Santos bfb45f717c introduced a new helper class DatagramSocket which provides a consistent base interface and functionality for the implementation of datagram-based sockets.
- made the ipv4 raw, udp and link protocols use DatagramSocket.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-13 00:55:32 +00:00
Jérôme Duval effe53fae9 fixed the wrong test for real
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 20:32:19 +00:00
Jérôme Duval c7509fce9d improve codestyle
fix bad init in BPushGameSound


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 19:20:45 +00:00
Jérôme Duval 72b4b94081 use __builtin_offsetof for gcc4 and superior, it avoids a gcc4 broken build with template use of offsetof()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 18:36:37 +00:00
Jérôme Duval b342ed59fb gcc4 is picky with in-template symbols, they must be qualified
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 18:17:31 +00:00
Jérôme Duval b12aab90c7 fixed typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 18:11:11 +00:00
Axel Dörfler d5ba07a3ad Fixed two bugs:
* FrameReceived() updated the bitmaps, but did not invalidate the view, causing
  B_FULL_UPDATE_ON_RESIZE to show an outdated icon.
* fInDeskbar was not initialized in case the archive constructor was used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 16:23:34 +00:00
DarkWyrm ffd3d30c84 Enable build of usb_midi on R5 using same Jamfile techniques as usb_hid
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 15:57:46 +00:00
Axel Dörfler f13b5de61e * EXIF data is now also parsed in case there was no ioExtension message passed in;
the orientation was only honoured in case there was a message before.
* Disabled error alerts; they are more annoying than helpful.
* Bumped version to 1.2.0.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 13:20:33 +00:00
Stefano Ceccherini 22cf4a3be6 sizeof(B_PAGE_SIZE) != B_PAGE_SIZE. Fixed bug 1151. Sorry for the silly
typo. Also uses calloc() so that the direct_buffer_info struct is 
initialized to 0.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 13:15:06 +00:00
Stefano Ceccherini ba4918e74c Menu windows are no longer the preferred keyboard events target (for
now, at least). This feature wasn't used yet anyway, and turning it 
off cures bug #1152.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 12:28:13 +00:00
Hugo Santos bf48e753d7 made UDP agnostic to the underlying network protocol (preparing some work into the future).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 08:22:47 +00:00
Hugo Santos 6c35350908 moved address selection logic to a new 'get_buffer_route'.
- IPv4 now assumes the addresses it is supplied in send_routed_data are already the appropriate ones.
 - made the Data(), operator* and operator-> methods in NetBufferFieldReader const so we can use them in the same expression as the constructor.
 - fixed an issue with UDP where the wrong source address could be used in the calculating the checksum.
 - changed ipv4_print_address to use the more common 0.0.0.0 format.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 22:24:12 +00:00
Stefano Ceccherini 41d7b9a54c Patch by Lucasz Zemczak which fixes font sensitiveness issues in Mouse
preflet. Thank you!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 21:06:35 +00:00
Axel Dörfler 2a17be44d7 Got fooled by operator precedence - it's now working as expected.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 18:52:53 +00:00
Hugo Santos 87001e059c some NetBufferUtility revamp.
- introduced base NetBufferFieldReader which deals with obtaining a continuguous field to deal with.
 - renamed Detach() to Sync() to better express the fact that we may be writing to the buffer.
 - Fixed IPv4's and ICMP's checksum calculation as it assumed the underlying header was contiguous.
 - ICMP is now able to reply to ICMP Echo Requests which were split across data nodes.
 - in split_buffer(), make sure we were able to trim() the new buffer before damaging the original one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 16:40:40 +00:00
Axel Dörfler 453fb26fda * Added telnetd (does not work yet for whatever reason), and NetworkStatus to
the image.
* Moved "nc" to the alphabetically ordered position.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 16:07:58 +00:00
Axel Dörfler f01106c3cf * Moved the network status replicant into its own application, similar to what
ProcessController and PowerStatus are doing.
* Currently polls for info only - later, the stack should support listeners for
  interface related changes.
* Also works under BONE (although it doesn't make much sense to use it there).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 16:01:02 +00:00
Axel Dörfler 861b3c0b6f The busy page could also be in another cache that is layered upon the merged one,
so we can't easily check if the remaining mappings are valid - therefore I disabled
the check completely.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 15:50:11 +00:00
Hugo Santos 83ecc79510 non-writeable states are always non-blockable from a write() POV.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 14:58:39 +00:00
Axel Dörfler 33dda9c275 Fixed build under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 14:11:39 +00:00
Axel Dörfler bc85ccf5f3 * init_data_node() is now called init_first_data_node(), and also sets
data_header::first_node to that node. It will also remove some of the
  burden of the callers with regard to setting its members correctly.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 10:17:26 +00:00
Axel Dörfler a58eacec3c Implemented a progress window: it will be shown after one second in case the translator
supports it - currently, only the RAW image translator does this (as it needs about 10
seconds to open a 6 mio. pixel RAW image on a 2.6 GHz P4).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 09:25:57 +00:00
Axel Dörfler 64f5accb3a * Fixed a few large memory holes (Dano even crashes on low memory...).
* Removed printing progress updates to stdout.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 09:23:33 +00:00
Axel Dörfler 5b91a7be30 Improved progress report, the update message now gets a proper "what" field.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 09:10:14 +00:00
Bryan Varner 811c52c0e8 Small adjustment to reduce the number of comparisons when publishing devices.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-11 03:26:26 +00:00
Jérôme Duval 127dffedfb Applied patch from thq (bug #1146). Thanks a lot! I tested this change on Haiku.
Avoids noise on shutdown because the amplifier is left on after shutdown, the amplifier is also turned on directly after init. The patch changes this to be the last thing to be turned on, and the first to be turned off.
The creation of controls had an of by 1 error where the last control was skipped.
Also made the controls more UI friendly so that the 'boost mic +20dB' is a part of the mic control instead of its own tab, and the AC97 mixer tab is changed to be the first one as it is probably more used than the 'Record' tab, which now is called 'Recording'. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 21:53:53 +00:00
Axel Dörfler 6cde6beba7 Fixed several issues pointed out by Olivier "Methe" Milla.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 21:21:36 +00:00
Axel Dörfler 646dadb991 Implemented a progress monitor - I'll implement support for this in ShowImage next.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 21:12:12 +00:00
Hugo Santos af56b5b233 fixed add_tcp_header() as it wasn't considering the possibility that prepending data would not result in a contiguous buffer. This would result in wrong checksums for apparent no reason.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 19:04:13 +00:00
Hugo Santos 1c96882baa update buffer size when prepending buffers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 18:27:41 +00:00
Hugo Santos 914c48cad7 eat header space in each iteration in prepend_size().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 17:00:22 +00:00
Michael Pfeiffer 491124c2aa Added Hartmut Reh to list of contributors. He contributed to the printing sub-system with ideas, implementations and testing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 16:51:09 +00:00
Hugo Santos f73dd74eb9 even more TCP fixage.
- don't try to remove spawned sockets from Endpoints hashtable.
 - return B_WOULD_BLOCK (EAGAIN) when we time out in acquire_sem().
 - use B_RELEASE_IF_WAITING_ONLY in the TCP WaitList.
 - fixed a off by one issue in ReadData() which could result in more than needed iterations (and waiting).
 - implemented prepending new buffers to a net_buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 16:47:47 +00:00
Stephan Aßmus 4620ac73aa added Hugo Santos to the list of developers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 16:20:40 +00:00
Axel Dörfler e163e8f3a0 Fixed build (IP_TOS is defined now).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 15:01:22 +00:00
Stefano Ceccherini 5f2316263f Implemented BGLView::DirectConnected(). I don't know if it works, since
the gldirect_mode test app crashes at startup (also before this commit). 
Style changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 14:11:32 +00:00
Axel Dörfler 9e34f742ae * Now honours the orientation as specified in the EXIF tags; not very well tested, so
it might happen that some rotations don't come out as expected...
* This orientation can be overridden with a special "exif:orientation" setting passed
  via the ioExtension message.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 13:36:53 +00:00
Axel Dörfler ddcd63762f * Now keeps the orientation as defined in EXIF, instead of converting it to something
handy for computation.
* The translator now passes the EXIF orientation to the thumbnail translation using
  a special field "exif:orientation".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 13:35:16 +00:00
Axel Dörfler 52e8f46af7 * Now also saves the EXIF data in the supplied message in Translate() (decompress
only, you cannot add EXIF data yet).
* Preparations to honour the orientation of JPEG images stored in the EXIF tags.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 10:54:44 +00:00
Axel Dörfler 8560c78809 Added missing TIFF tag types.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 10:52:41 +00:00
Hugo Santos 8107b19403 Fixed some more TCP issues.
- Properly flag sockets using non-blocking connects() when in SYN SENT.
 - and when in LISTEN, we should use the socket's connection queue size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 05:28:56 +00:00
Axel Dörfler 1b52d54a31 Now adds a fake TIFF header to the exported EXIF data so that the used endian of the data is known.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-10 00:14:32 +00:00
Hugo Santos 7664bcb5c4 A couple more TCP fixes.
- ipv4_bind() was broken when binding to addresses not INADDR_ANY, as it wasn't copying the address to the socket, fixed.
 - fixed a small issue in TCP's BindToEphemeral where the correct address might not have been bound to the socket.
 - some assorted TCP wait lists fixes.
 - fixed TCP's Connect() over the loopback interface, we might already be ESTABLISHED after _SendQueue() returns.
 - fixed the amount of time we wait in TCP's Accept().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-09 22:51:28 +00:00
Hugo Santos 055fcfbf98 added 'netcat', which is particularly helpful debugging TCP.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-09 22:51:08 +00:00
Hugo Santos aab148f6b4 Set proper address on BindToEphemeral().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-09 22:50:55 +00:00
Axel Dörfler a238446abb Now puts the EXIF data verbatim into the message passed to Translate().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-09 22:29:16 +00:00
Stephan Aßmus dca2807ec2 fix the build... sorry guys!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-09 21:58:26 +00:00
Hugo Santos a7edede46f fixed multiple TCP issues.
- Moved FIN handling to after Segment Text handling, it matches the RFC and fixes a possible issue with a user missing some final segment data when receiving a FIN.
 - Fixed the FIN handling to better terminate connections (no more senseless chatter in the end with RSTs etc).
 - When Bind()ing, set the socket address so a call to getsockname() gets the allocated port correctly.
 - After reaching the ESTABLISHED state, try to wake all pending threads (still needs work).
 - Corrected the maximum amount of time we wait in SendData() to respect socket->send.timeout.
 - Now ReadData() behaves correctly in all possible states.
 - There was a missing handling of MSG_DONTWAIT, fixed.
 - Better internal handling of PSH.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-09 09:34:47 +00:00