History log of /haiku/src/add-ons/kernel/network/devices/dialup/dialup.cpp
Revision Date Author Comments
# 819c5108 28-Dec-2023 Augustin Cavalier <waddlesplash@gmail.com>

network: Update device statistics (mostly) in the stack.

We bypass device logic in datalink_send_routed_data() in the case
of RTF_LOCAL, so if we don't update the stats there, they'll never
get updated. Furthermore, there's places packets can be dropped
inside the device reader thread. So, we might as well consolidate
the stats-updating logic and get it out of drivers.

(The only remaining case where drivers need to update stats is when
they drop a packet in receive(), as the stack can't tell when an error
from receive() is due to a dropped packet or not.)

Fixes a potential leak on packet drops in the device reader thread,
and fixes loopback statistics for TCP/UDP/etc.


# ceff2b88 05-Apr-2017 Alexander von Gluck IV <kallisti5@unixzen.com>

ppp: Basic build fixes on x86_64


# c3688b17 21-Aug-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix gcc 4.5.2 build (unused static function is now an error).
No functional change, sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42661 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a80f55b 16-Jun-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Small changes resting on my working copy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42209 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 10712986 18-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Okay, by quick and dirty, one should read broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40247 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ec4c457c 18-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Add ACCM support (Async Control Char Map) for RX & TX.
Add quick & dirty receive_data() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40246 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d25a74c 25-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Send the open flag sequence only when enough time elapsed since prior
closing flag sequence. See RFC1662 §4.4.2, last paragraph.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39628 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7fdae00f 24-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Remove duplicate code which was counting send error twice.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39604 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5655de51 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Initial send_data() support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39587 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 01037767 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add initial up & down support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39582 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 172971a1 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Switch link speed unit to bit/s to support low bitrate speed too
(hello slow dialup line...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39581 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d945edf9 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Store AT* strings and termios config directly within dialup_device struct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39580 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 87ada8ac 22-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add skeleton/WIP dialup network device...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39576 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c3688b17e91e7f1851f7c1a3d9734c843c6abbf2 21-Aug-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix gcc 4.5.2 build (unused static function is now an error).
No functional change, sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42661 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a80f55b256a89ec247778a501040f3a812afe33 16-Jun-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Small changes resting on my working copy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42209 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 107129867260604d2d5fd833f1e8b290d27dc7b6 18-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Okay, by quick and dirty, one should read broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40247 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ec4c457ca3e57dcb46da2bfa5b08a0280aae9f2f 18-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Add ACCM support (Async Control Char Map) for RX & TX.
Add quick & dirty receive_data() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40246 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d25a74c68ef03bec413ddb60f8b9a1ea2e906aa 25-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Send the open flag sequence only when enough time elapsed since prior
closing flag sequence. See RFC1662 §4.4.2, last paragraph.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39628 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7fdae00f37778e460b0df380b7358d4e8000bec5 24-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Remove duplicate code which was counting send error twice.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39604 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5655de51dd93f47242853fdcf1a358d6d941aee4 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Initial send_data() support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39587 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0103776770e30b5943ba447380f9ab6e08f41d45 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add initial up & down support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39582 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 172971a18fc072efbbe9e3bd997bbecef4b7e31f 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Switch link speed unit to bit/s to support low bitrate speed too
(hello slow dialup line...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39581 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d945edf9c73a6351019d6ad350adb0a94ed34542 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Store AT* strings and termios config directly within dialup_device struct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39580 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 87ada8acb14ef371e1d8c813378230efe59645e4 22-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add skeleton/WIP dialup network device...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39576 a95241bf-73f2-0310-859d-f6bbb57e9c96