History log of /haiku/src/add-ons/kernel/network/devices/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
16525505 17-Apr-2019 Alexander von Gluck IV <kallisti5@unixzen.com>

network/tun: install-tun target for rapid tun testing

e60aa2b8 17-Apr-2019 Alexander von Gluck IV <kallisti5@unixzen.com>

network/tun: Fix incorrect module var name

612c05bd 17-Apr-2019 Alexander von Gluck IV <kallisti5@unixzen.com>

network/tun: Style fixes; no functional change

64948daa 17-Apr-2019 Alexander von Gluck IV <kallisti5@unixzen.com>

tun/tap: Build fixes for tun add-on

23901a75 03-Apr-2019 François Revol <revol@free.fr>

Stub out a tun/tap module from the loopback code

Not functional yet.

Change-Id: I6f7427c5fa176595927d73dd3b11b04945f66d84

1e60bdea 30-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

Remove all invocations of SetSubDirSupportedPlatformsBeOSCompatible.

62a788f3 13-Sep-2018 Augustin Cavalier <waddlesplash@gmail.com>

ethernet: Fix some more incorrect return value handlings of ioctl().

e9073260 12-Sep-2018 Augustin Cavalier <waddlesplash@gmail.com>

network/ethernet: ioctl returns -1 and stores the error in errno.

Previously, if a device driver returned an error of any kind, -1 was
propagated the rest of the way up through the stack instead of the
actual error code.

Change-Id: I6839763c6b2eb86d6112d3732e6cb80d022f1fe8
Reviewed-on: https://review.haiku-os.org/550
Reviewed-by: waddlesplash <waddlesplash@gmail.com>

8a9e1e0d 31-Dec-2017 Augustin Cavalier <waddlesplash@gmail.com>

Removal of non-Haiku target platform logic from build system (part 1.)

Following recent changes to use libroot_build on Haiku also, it is now
actually impossible to build Haiku components on non-Haiku platforms
(BeOS R5, Dan0, BONE, Zeta), so we can remove any logic related to this.

This is only the first part; still to be removed are:
* SetSubDirSupportedPlatformsBeOSCompatible

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

ppp: Basic build fixes on x86_64

1a5afe04 19-Jan-2014 Pawel Dziepak <pdziepak@quarnos.org>

add-ons/kernel: Use UsePrivateKernelHeaders where appropriate

f05b8e38 09-Nov-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Check the given path for ".."

5ae9ef05 09-Nov-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Check if device exists before creating ethernet interface.
Fix ticket #10183.

ff2e5209 30-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove the old "CVS" package rules

... and all their invocations.

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

37426cbf 22-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Remove /dev/net/stack entry skip, as we don't have such entry anymore
since long ago already.
Keep the userland_server one, because, maybe, one day...

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

cc8eceb0 04-Aug-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Report the actual error when read() or write() a network device failed.
This enable to actually detect and handle device removal (USB...).

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

ca215dfe 02-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Replaced more occurences of EOPNOTSUPP with B_NOT_SUPPORTED.

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

d869a061 19-Jul-2010 Axel Dörfler <axeld@pinc-software.de>

* Made the stack send out interface change notifications where needed (at least
hopefully :-)).
* Improved interface change notification to include the flags that changed.

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

9760dcae 17-Jan-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Move bluetooth net_device module to a independent module HCI, remake API interfaces
- Move functionality for assembling ACL/events packets of the driver to this module
- Move h2generic driver to c++ (not style)
- Pass checkstyle.py to all commited files.
- Wrong condition for finishing l2cap packet segmentation.
- Place NetBuffersPrependers in a inner scope to avoid Sycing twice in destructor.
- Avoid keeping trace of l2cap responses of any other kind of thread.
- Do not free net_buffers of for Frame containers.

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

82aa4a0f 04-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Replaced the remaining AF_DLI references with AF_LINK.

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

375ddaad 01-Dec-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Style, mostly spacing, after passing checkstyle

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

cf3d8a74 28-Nov-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Remove keeping list of connections per device
- Start to move some common code from the driver layer (not yet used)
- Style

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

ee739a27 21-Oct-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Tab for spaces

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

fd070b41 09-Jun-2009 imker <imker@nowhere.fake>

Looks like ethernet_set_promiscuous() call should use ETHER_SETPROMISC ioctl instead of ETHER_GETADDR one.

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

d8de4389 27-Nov-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement ACL Segmentation and Reassembly
- Kernel traces for bluetooth devices
- Register connections helper funcs

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

b48fa68a 31-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Fix bluetooth_server debug window tabs, they were getting out of bounds due the index assignation

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

e54b6bb3 24-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Make the local devices register in some module of the Kernel land... for the moment as bridge for l2cap

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

4d6c666d 19-Jul-2008 Oliver Tappe <zooey@hirschkaefer.de>

* dropped swapping of addresses when delivering locally via loopback, since
that is neither correct (source and destination are ok as they are)
nor does it have any effect (since those values are clobbered by the
domain module afterwards)

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

d0651ae6 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Add entity to handle the available LocalDevices from KL

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

2b07b8e0 28-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Replaced all instances of benaphores in the kernel code by mutexes.
* Removed kernel benaphores.

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

bce7e9f6 09-Aug-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added AutoLocker instantiations IterruptsLocker (disables/restores
interrupts) and SpinLocker (acquires/releases spinlocks).
* Adjusted Jamfiles of components that used <util/AutoLock.h> but didn't
add all header directories required now (<int.h> was added).

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

969885b8 23-May-2007 Hugo Santos <hugosantos@nowhere.fake>

loop: no longer requires a reader thread, it delivers directly to the device's receive queue

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

d3d38faf 22-May-2007 Hugo Santos <hugosantos@nowhere.fake>

net_buffer: prevent modules from messing with metadata too much

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

79a0d252 22-May-2007 Hugo Santos <hugosantos@nowhere.fake>

net_buffer: preparing for better metadata management

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

8c40c83f 04-May-2007 Axel Dörfler <axeld@pinc-software.de>

Renamed net_device::{add|rem}_multi() to {add|remove}_multicast for consistency and clarity.

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

2b1c2dd3 01-May-2007 Hugo Santos <hugosantos@nowhere.fake>

when 0 is specified as the interface index with the generic multicast delta API, the stack should select an interface for the application.

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

89361fb1 30-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

ethernet_device's add_multi/rem_multi now call into the driver using the ETHER_ADDMULTI/ETHER_REMMULTI ioctls.

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

95403830 30-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

added add_multi/rem_multi to net_devices. Glued the interface protocol multicast handling with net_device via add_multi/rem_multi.

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

ae074c5d 07-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

moved IFF_LINK handling to the device module (ethernet in this case). Now domain interfaces only keep specific flags such as IFF_UP and the configuration flags. IFF_LINK, IFF_BROADCAST etc are maintained exclusively by the device.

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

20b534cd 06-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

a bit more work towards proper locking including a fix to a refcount bug

- fixed a issue in add_interface_to_domain where the device interface's refcount was always incremented since that function was getting the device interface handle and not returning it unconditionlly
- if the ethernet device goes down, and the fd is close()ed, return B_FILE_ERROR instead of calling into the driver again

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

0b10ed05 06-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

check if the device going down is the head of the check list and remove it.

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

0cac8bd1 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Forgot to set IFM_ETHER in all drivers; "ethernet" now also sets it just in case.

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

b7c0eba5 04-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

we want the argument's contents, don't use the size of the pointer (this would even be 8 bytes in a 64 bits platform).

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

eb70c5dd 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

* Set default media type to IFM_ETHER.
* Added ETHER_INIT back in; we even have a driver in our repository that uses it,
thanks to Michael for pointing that out.

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

e65e1529 03-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

set IFM_ACTIVE if ipro1000 has link and output media changes on update_link_state()

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

00006796 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

net_device should come first in order to guaranty it will work together nicely
with C only code. Thanks Hugo!

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

9206bb37 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

* Changed ETHER_GET_LINK_STATE ethernet driver interface, added ETHER_SET_LINK_STATE_SEM.
* The device interface list now uses class DoublyLinkedList instead of struct list.
* Implemented SIOC[SG]IFMEDIA for setting (not supported by any device yet), and
retrieving the device media information.
* Fixed a locking bug in list_domain_interfaces().
* Added new stack function device_link_changed() that should be called in case the
link state (media) changed.
* The ethernet device module now spawns a thread and will periodically check the media
state of all ethernet devices that support this (if any).
* Minor cleanup.

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

c79ae507 03-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

* Fixed compilation due to removed ether_init_params from ether_driver.h, thanks
to Hugo for reporting :-)
* Implemented setting promiscuous mode on ethernet device level.
* Set net_device::media to something useful.

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

af3a31f7 01-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Calmed down the networking stack a lot - since it basically works, there is no
reason to slow it down with debug output that much; this will also help investigating
some issues where you just aren't interested in most of the output.

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

84fcc63a 11-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* The temporary buffer was never freed in case it still contained more than one iovec.
* Minor cleanup.

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

64222e84 04-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

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

c35b04de 02-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

* Moved the TCPConnection class into its own file.
* Added some missing result checks, mostly for allocations.
* Fixed a wrong precendence with the ?: operator
* Some minor cleanup.
* Renamed sBufferModule to gBufferModule - the header expects it to be a global,
so it should be named like one.

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

9f0c924a 14-Oct-2006 Axel Dörfler <axeld@pinc-software.de>

Implemented loopback device - currently crashes the kernel pretty fast, though.

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

c49e0c68 18-Sep-2006 Jérôme Duval <korli@users.berlios.de>

dropped a useless arg of the KernelAddon rule, hope I don't mess anything

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

44d56753 16-Aug-2006 Jérôme Duval <korli@users.berlios.de>

KernelAddon and KernelStaticLibrary don't include kernel, kernel arch, boot platform headers anymore.
Fixed the build of most of targets using these rules. Though the build can be still broken, feel free to fix.

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

c22d69bf 08-Aug-2006 Axel Dörfler <axeld@pinc-software.de>

* Completed the previous commit and merger of the team/network/new_stack branch.
* Removed ppp_up and pppcontrol from the image for now.

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