History log of /haiku/src/bin/network/ifconfig/ifconfig.cpp
Revision Date Author Comments
# dba28784 24-Dec-2018 Augustin Cavalier <waddlesplash@gmail.com>

freebsd11_network -> freebsd_network.

FreeBSD 12 has no major changes to the ifnet KPIs that constitute a
source compatibility break, save a single one related to locking
which doesn't really apply to us, and so we don't need to create
a "freebsd12_network" directory to work through the upgrades.


# 45bc01d2 12-Sep-2018 Augustin Cavalier <waddlesplash@gmail.com>

ifconfig & Network preferences: Actually trigger scans using BNetworkDevice.

Fixes #12034, and a variety of other strange "no wireless networks
appear" bugs that have plagued Haiku for years.

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


# 1e29bfd7 18-Jul-2018 Augustin Cavalier <waddlesplash@gmail.com>

Update all remaining consumers of the FreeBSD compat headers.


# 4fab1ac6 15-Mar-2016 Julian Harnath <julian.harnath@rwth-aachen.de>

ifconfig: add "[-]ht" control option for WLAN devices

* "ht" and "-ht" enable or disable the use of HT mode
(high throughput, 802.11n) for the wireless network device

* Analogous to the option with the same name in FreeBSD's ifconfig

* Disabling HT before associating with an AP is a workaround for
connection instability issues encountered with iprowifi4965
driver


# 20ead9a8 05-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

ifconfig: improved empty address display.

* Now shows as "--" instead of just the empty string.


# 54c34be7 11-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

ifconfig: moved media type stuff into its own file.

* This can now be easily shared.


# 77206143 05-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

Revert "Move getifaddrs to libnetwork again."

This reverts commit 31ea76548a64b232ed10cb444bf84ca1f7e40b0f.

Adrien, please try again without clobbering the otherwise nice
BNetworkInterface API!

Conflicts:
src/kits/network/getifaddrs.cpp


# 31ea7654 20-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Move getifaddrs to libnetwork again.

* BNetworkInterfaceAddress is moved to libnetwork. It is modified to not
use BNetworkAddress (which is in libbnetapi) and instead use sockaddr
and sockaddr_storage directly. All callers are adjusted to this.
* Some support code is shared between BNetworkInterface and
BNetworkInterfaceAddress, move it to libnetwork but in the BPrivate
namespace.


# 056b2e33 08-Jun-2014 Stefano Ceccherini <stefano.ceccherini@gmail.com>

ifconfig: fail with a warning if called on a non-existent interface.


# 6c30a6bc 17-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

ifconfig: typo fixes


# 5a2c5827 14-Sep-2013 Jérôme Duval <jerome.duval@gmail.com>

add a constant for 10G base T ethernet.


# b31f2d53 14-Sep-2013 Jérôme Duval <jerome.duval@gmail.com>

add a constant for 10G base T ethernet.


# cd8dbcdc 10-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Added basic WLAN support to ifconfig.


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


# 01308f21 23-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Simplified get_address_family() function.
* Use new BNetworkInterface::AutoConfigure() method.
* Automatic whitespace cleanup.


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


# 97dfb56d 12-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* ifconfig is no longer using any ioctl()s, but the new C++ classes only. Seems
to work fine so far.


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


# aa6c140b 11-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Removed no longer needed utility functions, and use BNetworkAddress instead
of where they were used before.


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


# b2a400e5 11-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Reimplemented listing interfaces completely via the new C++ API. Only when
configuring or deleting interfaces, the ioctl()s are used directly for now;
but this should be changed as well.
* Applied patch by Atis partially that fixes mask creation by prefix length,
and changes a few other minor things.


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


# 40061f8f 05-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Use the _SIZEOF_ADDR_IFREQ() macro instead of computing the length manually.


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


# 2b1c0755 03-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Renamed the proprietary SIOC_* ioctls to B_SOCKET_* - no reason to pollute
global name space, and have ugly identifiers for nothing :-)
* Added a flags field to struct ifaliasreq. Added flags to mark an alias that
is currently being configured, or has been automatically configured.
Those flags aren't used yet, but they will replace IFF_CONFIGURING and
friends.
* Implemented deleting addresses only from interfaces via ifconfig.
* Added more command aliases for delete to ifconfig ("del", and "delete", for
more consistency with route).
* Fixed control_routes() to only release a reference to an address if it
actually got one before.
* If an interface address is deleted, its routes are now removed as well.
* InterfaceAddress now holds a reference to its interface as planned.
* Implemented removing interfaces. Works quite nicely.
* When downing an interface, all of its routes are now removed. When upping
it again, at least the default routes are added.
* datalink.cpp's get_interface_name_or_index() leaked a reference to the
interface found.
* SIOCAIFADDR would also leak a reference when new addresses were added.


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


# 61729d93 28-Jul-2010 Axel Dörfler <axeld@pinc-software.de>

* Reworked the complete stack to allow more than one address per network
interface - this caused quite a number of changes.
* Network interfaces, and its addresses are now reference counted (not yet
complete, though, InterfaceAddresses need to hold references to their
interface as well).
* There are two known regressions of this commit that I will fix later:
- you cannot remove interfaces anymore
- IPv4 multicast was broken anyway, but now it's disabled, too.
* Moved a device_interfaces.cpp|h out of interfaces.cpp.
* The datalink layer chain is now instantiated per domain per interface,
not just per interface anymore.
* When a buffer reaches the network layer, it has no known interface yet, ie.
the ipv4|6|whatever modules need to set this manually.
* Added more debug output, and some new debugger commands, the control option
is now printed in clear text.
* Added hash_address() function to the address modules. Added "const" to
set_to_defaults() where needed.
* Fixed net_buffer's restore header functions offset use as reported by Atis.
* Improved buffer dump output, use the domain module to print the address if
available.
* Moved net_buffer::type into the union, as it's not needed by the upper layers
anymore.
* Moved IPv6 specific code from {add|remove}_default_route() to where it
belongs, but disabled it for the time being.
* Completely discarded useless ipv4_datagram module.
* Added ping6 to the build.


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


# 6600877a 21-Jul-2010 Axel Dörfler <axeld@pinc-software.de>

* On Haiku, ifreq::ifr_name always includes the trailing null byte. Adjusted
userland code to take this into account (the kernel would just cut off the
name).
* This closes ticket #6280.


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


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

Another patch by Atis Elsts:
* Added ping6 command from FreeBSD.
* tcpdump is now built with IPv6 supprt.
* added IPv6 support to route, and ifconfig (the family stuff should eventually
be factored out).


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


# 73a1a46d 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Made defines out of the kNetServerSignature and kMsgConfigureInterface
constants - they are used in other apps as well, and defining them as
"static const" causes undefined warnings in other source files. This also
fixes the build.
* Changed "interfaces::auto config" to auto_config, as that's more convenient
to use in the settings files.


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


# e333f751 15-Feb-2009 Axel Dörfler <axeld@pinc-software.de>

* Removed left-over debug output.


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


# fd95a7e1 28-Dec-2008 Axel Dörfler <axeld@pinc-software.de>

* The net_server now accepts messages from the outside that want to configure
an interface (I don't remember why I didn't want this earlier, but well).
* ifconfig now has an auto-config option that will trigger DHCP.
* Also, it will now remove the IFF_AUTO_CONFIGURED and IFF_CONFIGURING flags
if an address is specified (any on-going auto-configuration should check for
these and abort if they aren't there anymore).


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


# 76ec752f 08-Mar-2008 François Revol <revol@free.fr>

On request implemented setting media type.


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


# a9ab9cf1 28-Feb-2008 Axel Dörfler <axeld@pinc-software.de>

Setting a default netmask/broadcast address is no longer needed in ifconfig
and the net_server; the network stack now does this internally since r24170;
it worked for IPv4 only, anyway.


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


# c944deeb 18-Jan-2008 Jérôme Duval <korli@users.berlios.de>

fixed warnings


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


# 9534d90e 06-May-2007 Hugo Santos <hugosantos@nowhere.fake>

added IFM_AUTO to if_media and ifconfig.


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


# 8df96834 04-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

tiny case but T/TX is copper, SX is fiber


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


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

Only print the media state in case we're linked.


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


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

Added support for printing the media type.


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


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

output IFF_LINK, IFF_AUTO_CONFIGURED and IFF_CONFIGURING flags


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


# fc398fa2 22-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Added "services" to the network settings, and refactored the settings class a bit
to be easier extendable with more classes.
* Fixed a bug in the settings that caused updated settings to be appended to the
existing ones (missing BMessage::MakeEmpty()).
* Started services system, doesn't do anything useful yet (inetd replacement).
* Fixed the bug that caused the loopback default netmask to be incorrectly chosen;
removed the temporary fix Bruno introduced before. The same bug has been in
ifconfig where I copied the code from (but wrote it there, too) :-).


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


# 5adca30a 07-Aug-2006 Axel Dörfler <axeld@pinc-software.de>

Merge of branches/team/network/new_stack - not yet complete as SVN does only support
replacing files when merging when you don't have deleted them manually (for some reason,
it only works as part of the merge operation, and we didn't copy the whole tree to
have "a fresh start" - next time we know better, at least if SVN still suffers from
that same limitation).


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


# 20ead9a883683f1656fed8a017fd0bf68a6ba1f8 05-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

ifconfig: improved empty address display.

* Now shows as "--" instead of just the empty string.


# 54c34be74b853fc5db947339da33dfbb947ec6b2 11-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

ifconfig: moved media type stuff into its own file.

* This can now be easily shared.


# 7720614300ff86e823735adcb96690c822dd60f8 05-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

Revert "Move getifaddrs to libnetwork again."

This reverts commit 31ea76548a64b232ed10cb444bf84ca1f7e40b0f.

Adrien, please try again without clobbering the otherwise nice
BNetworkInterface API!

Conflicts:
src/kits/network/getifaddrs.cpp


# 31ea76548a64b232ed10cb444bf84ca1f7e40b0f 20-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Move getifaddrs to libnetwork again.

* BNetworkInterfaceAddress is moved to libnetwork. It is modified to not
use BNetworkAddress (which is in libbnetapi) and instead use sockaddr
and sockaddr_storage directly. All callers are adjusted to this.
* Some support code is shared between BNetworkInterface and
BNetworkInterfaceAddress, move it to libnetwork but in the BPrivate
namespace.


# 056b2e33e5bde313ca2a9c2d0f2374c459aa10ac 08-Jun-2014 Stefano Ceccherini <stefano.ceccherini@gmail.com>

ifconfig: fail with a warning if called on a non-existent interface.


# 6c30a6bc0c4833de34d718e64bf0e93b2c9c52cb 17-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

ifconfig: typo fixes


# 5a2c5827e4c0360ed36eddb24b759872d685ed40 14-Sep-2013 Jérôme Duval <jerome.duval@gmail.com>

add a constant for 10G base T ethernet.


# b31f2d53e09d6d2914328227c18034cb6ad42bf4 14-Sep-2013 Jérôme Duval <jerome.duval@gmail.com>

add a constant for 10G base T ethernet.


# cd8dbcdc87ac23e74e08da49e583e8b98b8bb734 10-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Added basic WLAN support to ifconfig.


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


# 01308f219b7f67a1da5e5ec2fe550051619b51f7 23-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Simplified get_address_family() function.
* Use new BNetworkInterface::AutoConfigure() method.
* Automatic whitespace cleanup.


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


# 97dfb56d81f3fdffba44ac3c0b6e7687cecb2e03 12-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* ifconfig is no longer using any ioctl()s, but the new C++ classes only. Seems
to work fine so far.


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


# aa6c140bc2473256ae820208d78ce350cea5c45b 11-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Removed no longer needed utility functions, and use BNetworkAddress instead
of where they were used before.


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


# b2a400e53ab70a53fd3b1443b9627d2ded090d65 11-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Reimplemented listing interfaces completely via the new C++ API. Only when
configuring or deleting interfaces, the ioctl()s are used directly for now;
but this should be changed as well.
* Applied patch by Atis partially that fixes mask creation by prefix length,
and changes a few other minor things.


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


# 40061f8fd523bbcb07d440b5ed174de088b38801 05-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Use the _SIZEOF_ADDR_IFREQ() macro instead of computing the length manually.


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


# 2b1c0755dd452db665050fdbbe06549e7e8c9c38 03-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Renamed the proprietary SIOC_* ioctls to B_SOCKET_* - no reason to pollute
global name space, and have ugly identifiers for nothing :-)
* Added a flags field to struct ifaliasreq. Added flags to mark an alias that
is currently being configured, or has been automatically configured.
Those flags aren't used yet, but they will replace IFF_CONFIGURING and
friends.
* Implemented deleting addresses only from interfaces via ifconfig.
* Added more command aliases for delete to ifconfig ("del", and "delete", for
more consistency with route).
* Fixed control_routes() to only release a reference to an address if it
actually got one before.
* If an interface address is deleted, its routes are now removed as well.
* InterfaceAddress now holds a reference to its interface as planned.
* Implemented removing interfaces. Works quite nicely.
* When downing an interface, all of its routes are now removed. When upping
it again, at least the default routes are added.
* datalink.cpp's get_interface_name_or_index() leaked a reference to the
interface found.
* SIOCAIFADDR would also leak a reference when new addresses were added.


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


# 61729d9323a555b9025ef6ebeb85dc1627f8acf7 28-Jul-2010 Axel Dörfler <axeld@pinc-software.de>

* Reworked the complete stack to allow more than one address per network
interface - this caused quite a number of changes.
* Network interfaces, and its addresses are now reference counted (not yet
complete, though, InterfaceAddresses need to hold references to their
interface as well).
* There are two known regressions of this commit that I will fix later:
- you cannot remove interfaces anymore
- IPv4 multicast was broken anyway, but now it's disabled, too.
* Moved a device_interfaces.cpp|h out of interfaces.cpp.
* The datalink layer chain is now instantiated per domain per interface,
not just per interface anymore.
* When a buffer reaches the network layer, it has no known interface yet, ie.
the ipv4|6|whatever modules need to set this manually.
* Added more debug output, and some new debugger commands, the control option
is now printed in clear text.
* Added hash_address() function to the address modules. Added "const" to
set_to_defaults() where needed.
* Fixed net_buffer's restore header functions offset use as reported by Atis.
* Improved buffer dump output, use the domain module to print the address if
available.
* Moved net_buffer::type into the union, as it's not needed by the upper layers
anymore.
* Moved IPv6 specific code from {add|remove}_default_route() to where it
belongs, but disabled it for the time being.
* Completely discarded useless ipv4_datagram module.
* Added ping6 to the build.


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


# 6600877a5f2801183b79bd582c65e15af7ba8434 21-Jul-2010 Axel Dörfler <axeld@pinc-software.de>

* On Haiku, ifreq::ifr_name always includes the trailing null byte. Adjusted
userland code to take this into account (the kernel would just cut off the
name).
* This closes ticket #6280.


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


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

Another patch by Atis Elsts:
* Added ping6 command from FreeBSD.
* tcpdump is now built with IPv6 supprt.
* added IPv6 support to route, and ifconfig (the family stuff should eventually
be factored out).


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


# 73a1a46de97c1b883dc6053af8c18f48675ddaa3 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Made defines out of the kNetServerSignature and kMsgConfigureInterface
constants - they are used in other apps as well, and defining them as
"static const" causes undefined warnings in other source files. This also
fixes the build.
* Changed "interfaces::auto config" to auto_config, as that's more convenient
to use in the settings files.


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


# e333f75144f96ef6bbb1215af4ea81d978136899 15-Feb-2009 Axel Dörfler <axeld@pinc-software.de>

* Removed left-over debug output.


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


# fd95a7e124618eb249769ce3ff6d7a16aeb873e8 28-Dec-2008 Axel Dörfler <axeld@pinc-software.de>

* The net_server now accepts messages from the outside that want to configure
an interface (I don't remember why I didn't want this earlier, but well).
* ifconfig now has an auto-config option that will trigger DHCP.
* Also, it will now remove the IFF_AUTO_CONFIGURED and IFF_CONFIGURING flags
if an address is specified (any on-going auto-configuration should check for
these and abort if they aren't there anymore).


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


# 76ec752f89ec0c655154ef7f67829e92ec73f9fa 08-Mar-2008 François Revol <revol@free.fr>

On request implemented setting media type.


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


# a9ab9cf19a2348f315644b5d6b63ef69bbf12c84 28-Feb-2008 Axel Dörfler <axeld@pinc-software.de>

Setting a default netmask/broadcast address is no longer needed in ifconfig
and the net_server; the network stack now does this internally since r24170;
it worked for IPv4 only, anyway.


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


# c944deeb6b664d2320ad79aacb0f97732a1c9806 18-Jan-2008 Jérôme Duval <korli@users.berlios.de>

fixed warnings


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


# 9534d90eb9f4c881ed62fde0d07578ac8b0465c2 06-May-2007 Hugo Santos <hugosantos@nowhere.fake>

added IFM_AUTO to if_media and ifconfig.


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


# 8df968341a2dfe148158f59f10d7c293be38d330 04-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

tiny case but T/TX is copper, SX is fiber


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


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

Only print the media state in case we're linked.


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


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

Added support for printing the media type.


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


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

output IFF_LINK, IFF_AUTO_CONFIGURED and IFF_CONFIGURING flags


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


# fc398fa2ab1532b0fdc002f8ef8d99a9b723da69 22-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Added "services" to the network settings, and refactored the settings class a bit
to be easier extendable with more classes.
* Fixed a bug in the settings that caused updated settings to be appended to the
existing ones (missing BMessage::MakeEmpty()).
* Started services system, doesn't do anything useful yet (inetd replacement).
* Fixed the bug that caused the loopback default netmask to be incorrectly chosen;
removed the temporary fix Bruno introduced before. The same bug has been in
ifconfig where I copied the code from (but wrote it there, too) :-).


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


# 5adca30a18617cc25bc50a9a12e2fe6539412ccb 07-Aug-2006 Axel Dörfler <axeld@pinc-software.de>

Merge of branches/team/network/new_stack - not yet complete as SVN does only support
replacing files when merging when you don't have deleted them manually (for some reason,
it only works as part of the merge operation, and we didn't copy the whole tree to
have "a fresh start" - next time we know better, at least if SVN still suffers from
that same limitation).


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