Commit Graph

57530 Commits

Author SHA1 Message Date
A-star-ayush
5c31f5a67a tcp: rfc 2018: implemented SACK option
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
515cda7241 tcp: rfc 6582: implemented NewReno modification
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
15c58f0cb7 tcp: rfc 5681: implemented ideal timer
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
30982ed7b9 tcp: rfc 6298 & 7323: updated rto calculations and semantics
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
aaa7cebc24 tcp: rfc 7323: added PAWS timestamp check on Receive
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
39bba929ac tcp: rfc 3042: implemented limited transmit
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
ec63a32913 tcp: rfc 5681: implemented fast retransmit and recovery
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
05743f6a13 tcp: slow start@rfc5681 : updated rules for congestion window
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
Adrien Destugues
e9300454b6 Update vlink to latest version. 2017-08-27 20:34:01 +02:00
Adrien Destugues
a7c71e2acb Add HxC Floppy disk image conversion tool. 2017-08-27 11:28:35 +02:00
Adrien Destugues
f04a6bd9b9 Update vasm version. 2017-08-26 21:17:05 +02:00
Adrien Destugues
83776950cd SerialConnect: fix mixup of file panels
- Use separate file panels for "load" and "save" directions
- Change the message sent by the "load" panel according to the protocol
  to use (it just forwards the one from the BMenuItem used to invoke it,
  which already has the protocol information).
2017-08-26 17:20:50 +02:00
Adrien Destugues
f1af46a2c0 SerialConnect: try to fix gcc5 build. 2017-08-26 16:23:55 +02:00
Akshay Agarwal
b73f6bf1c9 BDurationFormatTest: Add test cases for abbreviated format style.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-26 15:48:24 +02:00
Adrien Destugues
8bff17cfd8 SerialConnect: support sending raw files
Add a generic FileSender interface, which XModemSender implements. Add a
new RawSender which implements the same interface.

The RawSender currently blocks the application thread while sending,
which is not a good idea. Will rework this when I allow cancelling
transfers before they complete.
2017-08-26 15:32:44 +02:00
Adrien Destugues
7b6e6c1587 FT232x driver: support hardware flow control.
We had everything in place, except we never actually sent the command to
the device.

Note that the other drivers (prolific, etc) as well as pc_serial need to
be updated as well (might do it when I get access to hardware where I
can test the changes).
2017-08-26 15:29:37 +02:00
Kacper Kasper
cf3524e07f Fix WebPositive drawing glitches.
* Introduced with recent BTabView changes.
* Adjust drawing tabs a bit.
* Remove trailing whitespace.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-26 12:23:31 +02:00
Akshay Agarwal
ffdbd12882 Fix BDateFormatTest: Consider timezone in test cases.
* Issue: A time_t value of say '12345678' results into different timestamps
in different timezones. So the expected output will not match the result of
BDateFormat::Format() if the calendar's timezone is different from the
timezone of the expected output, and the tests 'TestFormat' and
'TestCustomFormat' will fail.

* Fix: Add timezone information in the test cases and pass the timezone
while calling BDateFormat::Format() in order to set the calendar's
timezone same as that of the expected output.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-26 12:19:59 +02:00
Akshay Agarwal
cf91123041 Add unit tests for BRelativeDateTimeFormat.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-26 09:02:52 +02:00
Akshay Agarwal
1e4ab34cd7 Implement a formatter for relative dates.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

It can give results such as "in 2 hours", "2 days ago", etc.
This is different from BDurationFormat which will just say "1 hour, 2
minute and 36 seconds"
2017-08-25 21:14:27 +02:00
Jérôme Duval
31e6a56fb3 kernel/fs: fix warning on x86_64. 2017-08-24 18:01:12 +02:00
Jérôme Duval
26740b2889 POSIX: F_DUPFD_CLOEXEC support (POSIX.1-2008).
* fix #12187.
2017-08-24 17:54:50 +02:00
Adrien Destugues
a74f88cf8f Build fix. 2017-08-21 18:52:28 +02:00
Adrien Destugues
faef86335b BTabView: fix binary compatibility.
Re-introduce missing symbol so that old apps can still be used.
2017-08-21 18:21:21 +02:00
Adrien Destugues
0d1bb791fc BControlLook: remove broken intersection check
When using BAffineTransform, the update rect is not in the same
coordinate space as the drawing rectangle. Hence, testing them for
intersection does not work, and leads to not drawing buttons which are
in fact visible.

Moreover, the code in BControlLook does not perform only drawing, it is
also expected to update the drawing rect, so other functions may reuse
it later (for example, drawing a button border also computes the
rectangle for the button background). Because of this, it is not
possible to skip the drawing completely, or we could break the layout of
the client.

Fixes #13664
2017-08-20 15:55:56 +02:00
Adrien Destugues
dd582ff9d5 Add a test for #13664
Interaction between ConstrainClippingRegion and transforms leads to
button frames and background not being drawn at all.

Also shows another problem with rounded corner buttons when mixed with
transforms.
2017-08-20 14:59:21 +02:00
Adrien Destugues
d47dec9356 Make gcc2 happy. 2017-08-20 09:48:29 +02:00
Adrien Destugues
1e80caa309 Add a white background version of the sticker
- Uses the Haiku URL instead of "inspired by the BeOS"
- Tweaked dimensions to match lastickerie.com templates (45x80mm + cutting margin)
2017-08-20 09:10:05 +02:00
Kacper Kasper
cb13fce878 BTabView: implement drawing tabs on all sides.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-20 09:04:05 +02:00
Kacper Kasper
173e8195a4 BTabView: remove dead code.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-20 09:04:05 +02:00
Kacper Kasper
a34769a0cc BTabView: cleanup draw function.
* Slightly changes how tabs look.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-20 09:03:52 +02:00
Adrien Destugues
dd64582866 HaikuwebKit 1.6.2. 2017-08-19 11:20:32 +02:00
Adrien Destugues
b8d9fcbeb3 Revert "ControlLook: remove some bogus clipping"
This reverts commit b277177477.
2017-08-16 17:48:58 +02:00
Adrien Destugues
b277177477 ControlLook: remove some bogus clipping
ConstrainClippingRegion was used in BControlLook to limit drawing to
inside the update rect. There are two problems with that:
- It would ignore any other clipping set by the application, as calls to
ConstrainClippingRegion are not cumulative,
- ConstrainClippingRegion ignores transforms on the view, so on a
transformed view, we would not draw anything in most cases.

If constrained clipping is needed here, it should be achieved using
ClipToPicture instead.
2017-08-16 17:44:45 +02:00
Adrien Destugues
2c1c78ae26 iwn: add missing PCI ID
Let's see if this is enough to get an extra card working?
This device ID is supported in the FreeBSD driver.
2017-08-16 14:37:58 +02:00
Adrien Destugues
b32b2f9028 DeskBar: remove app name from expanded window items
Expanded window items are listed right under the team item. So, it is
not needed (and a waste of space) to repeat the team name there.

Detect two common patterns for adding the application name to windows:

AppName: Window

and

Window - AppName

Remove both from the item labels, leaving a little more space for useful
information in DeskBar.
2017-08-15 10:55:50 +02:00
Adrien Destugues
43d60df2b0 Web+: avoid empty tab title
Use file name, if no title is provided by the page

Fixes #13663
2017-08-15 10:34:35 +02:00
Adrien Destugues
acad802d56 XModem: fix start of CRC transfer
We can send the first block immediately when we receive the "C" for the
first time.
2017-08-15 08:58:19 +02:00
Adrien Destugues
2566b22cd7 Fix Web+ crash if session file is corrupt. 2017-08-15 08:55:30 +02:00
Humdinger
ec90bfd866 Re-built Album package
Needed a rebuild due to changes in the locale kit (NumberFormat).
2017-08-14 08:57:04 +02:00
Jérôme Duval
c35666602f libroot: mktemp.c: fix gcc5 warnings. 2017-08-13 22:32:39 +02:00
Adrien Destugues
05d9795db3 Add some docs for BLayoutBuilder::Grid. 2017-08-13 09:05:29 +02:00
Adrien Destugues
433447be21 WebPositive: hangs when cookie jar is corrupt.
Missing error check led to endless loop trying to extract cookies from
an invalid message. Now the cookie jar is left empty instead.
2017-08-13 08:02:16 +02:00
Jérôme Duval
d784225237 tcp: Subsequent connect() call should return EALREADY.
* should fix #13662.
2017-08-11 15:51:56 +02:00
Wiktor
abb297f5db InterfaceKit: fixed BSpinner's label rendering.
A '&' (reference) was missing on a specific line, causing
font information to never be updated. Also removed extra padding
dependent on a constant variable - if it is used, the label will
be render too far down.
Fixes #12981.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-10 20:23:15 +02:00
Philippe Houdoin
22b7e29bc6 libroot: mktemp.c: use rand_r() and set seed only on first call
This avoid to break caller's own srand() and having the same seed
if called twice very quickly.
Thanks david.given for a better fix for #13660.
2017-08-10 10:33:41 +00:00
Automatic Committer
f7052a54cc Update pci.ids from pciids.sourceforge.net 2017-08-10 05:20:23 +02:00
Philippe Houdoin
c7a3a80cc6 libroot: make mktemp() more random
... by seeding rand() with process id, user id and current time.
This fix #13660
2017-08-09 19:33:36 +00:00
Jérôme Duval
ed8aae4664 Update haikuwebkit package for x86_64. 2017-08-07 22:50:18 +02:00
Philippe Houdoin
9854a9d3d6 virtio_net: set/get actual frame size
works OK under VirtualBox now, but no robustness and performance
tests were made yet.
2017-08-07 18:12:21 +00:00