History log of /haiku/src/preferences/network/InterfaceAddressView.cpp
Revision Date Author Comments
# 8ff235aa 09-Jan-2021 Humdinger <humdingerb@gmail.com>

Sentence casing

+ avoid spaces at the end of a translatable string, as those can
easily be missed by the translators.

Change-Id: Ic41e613b44e4248529d1f68f6bab13a048e66f3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3612
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# df3ba953 27-Feb-2017 Kyle Ambroff <kyle@ambroff.com>

Don't query DNS when statically configuring an interface

Fixes #12399

The Network preferences app was querying DNS to find a hostname
associated with the IP address, netmask and gateway when statically
configuring an interface. This is obviously unecessary and leads to
unexpected blocking when DNS is not available.

Adding B_NO_ADDRESS_RESOLUTION flag to disable the reverse lookup.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 3b7b927d 12-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

libbnetapi: Add BNetworkRoute to replace use of route_entry.

The BNetworkRoute class manages a route_entry and the sockaddr's
associated with it. It replaces the direct use of route_entry in the
BNetworkInterface API.

Using route_entry is fragile and inconvenient as it only holds pointers
to the sockaddr's. When getting a list of routes from the kernel, each
route_entry is set up so that its pointers point into the single flat
buffer that is passed around. Creating a copy of the route_entry and
then deleting the flat buffer makes the pointers in the copy stale.
Returning these route entries therefore always lead to a use-after-free
when they were eventually used.

BNetworkRoute also takes over the code and functionallity of getting
routes from RouteSupport. The corresponding method in BNetworkRoster is
replaced by a static method in BNetworkRoute.

Also distinguish between the default route and gateway of an interface.
GetDefaultRoute() now gets the default BNetworkRoute for the interface
while GetDefaultGateway() gets the associated gateway address within
that default route. Adjust network preferences panel to this change.

Note that we currently only seem to have per interface default routes
and not an actual global default route. This was already the case before
these changes and I did not further investigate what this means.


# 213f3cdb 31-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: preselect first item, make device view resizable.

* After start, the first item will now be selected.
* The InterfaceAddressView will no longer restrict its width, so
that the window doesn't have to be resized anymore when switching
to it.
* This implements ticket #11923.


# 49b69c86 27-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

ifconfig/Network: gcc4 build fix.


# 8b8bd796 23-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: give static IP focus.

* InterfaceAddressView now gives the address control focus when
"static" mode is selected.


# 6a290205 18-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: made the revert button (somewhat) work.

* DNS add-on does not yet support it, the rest does.
* However, there seems to be some problems with the net_server when
changing interfaces -- not just with revert.


# ee834bb8 18-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: moved commonly used classes into app.

* This way all add-ons share the same code, and also the same
translations.


# 3b7b927dd01fc96efcda618430851e691ebdb313 12-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

libbnetapi: Add BNetworkRoute to replace use of route_entry.

The BNetworkRoute class manages a route_entry and the sockaddr's
associated with it. It replaces the direct use of route_entry in the
BNetworkInterface API.

Using route_entry is fragile and inconvenient as it only holds pointers
to the sockaddr's. When getting a list of routes from the kernel, each
route_entry is set up so that its pointers point into the single flat
buffer that is passed around. Creating a copy of the route_entry and
then deleting the flat buffer makes the pointers in the copy stale.
Returning these route entries therefore always lead to a use-after-free
when they were eventually used.

BNetworkRoute also takes over the code and functionallity of getting
routes from RouteSupport. The corresponding method in BNetworkRoster is
replaced by a static method in BNetworkRoute.

Also distinguish between the default route and gateway of an interface.
GetDefaultRoute() now gets the default BNetworkRoute for the interface
while GetDefaultGateway() gets the associated gateway address within
that default route. Adjust network preferences panel to this change.

Note that we currently only seem to have per interface default routes
and not an actual global default route. This was already the case before
these changes and I did not further investigate what this means.


# 213f3cdb6964254f12624282937b44de50549c06 31-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: preselect first item, make device view resizable.

* After start, the first item will now be selected.
* The InterfaceAddressView will no longer restrict its width, so
that the window doesn't have to be resized anymore when switching
to it.
* This implements ticket #11923.


# 49b69c86d3e09832ae67446c3fd5cc21ab09131d 27-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

ifconfig/Network: gcc4 build fix.


# 8b8bd796f4346b4f5a29860adc6c0e98887a8da9 23-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: give static IP focus.

* InterfaceAddressView now gives the address control focus when
"static" mode is selected.


# 6a290205937dc619dcdf3d7b06f114b1f5465e4f 18-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: made the revert button (somewhat) work.

* DNS add-on does not yet support it, the rest does.
* However, there seems to be some problems with the net_server when
changing interfaces -- not just with revert.


# ee834bb870869ca58fa6ba3f057bc9bd44b2fdf9 18-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: moved commonly used classes into app.

* This way all add-ons share the same code, and also the same
translations.