NetworkManager/src
Dan Williams 27f91d054c core: simplify hardware address reading
We no longer need a class method for reading the hardware address
length, for a couple reasons:

1) Using the IP interface hardware address for IP operations now makes
NMDevice's priv->hw_addr_len constant.  So there's no reason to re-read
it all the time.

2) get_hw_address_length() is now only used for determining whether the
hardware address is permanent, and that only mattered for Bluetooth.
Since Bluetooth interfaces have a bogus interface name, they will never
have a valid ifindex, and thus nm_platform_link_get_address() would be
useless.  So instead of using the 'permanent' stuff, just don't bother
updating the hardware address if the NMDevice's ifindex isn't valid,
and let subclasses pass the initial hardware address at device creation.

This also works correctly for NMDevice classes that previously
implemented get_hw_address_length() like ADSL and WWAN, since those
too will never have a valid ifindex or a valid hardware address.

3) Reading the device's hardware address length just ended up calling
nm_platform_link_get_address() for most devices anyway, so
nm_device_update_hw_address() would effectively read the link address
twice (once to read the length, the second time to read the actual
address).  Let's just read the address once.
2014-07-23 12:53:55 -05:00
..
config core: simplify hardware address reading 2014-07-23 12:53:55 -05:00
devices core: simplify hardware address reading 2014-07-23 12:53:55 -05:00
dhcp-manager core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
dns-manager core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
dnsmasq-manager build: more srcdir!=builddir fixes 2014-07-15 11:37:19 -04:00
firewall-manager core: use singleton nm_firewall_manager_get() throughout without taking additional ref 2014-07-02 15:27:32 +02:00
logging nmtst: add parameter to nmtst_init to setup nm-logging 2014-06-05 18:12:56 +02:00
platform platform: assert against the maximum length of link_get_address() 2014-07-23 12:42:45 -05:00
posix-signals core: use non-recursive build 2013-05-08 15:07:18 -04:00
ppp-manager core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
rdisc core: fix libndp linking 2014-07-23 10:56:26 -04:00
settings config: drop NMConfigDevice, use NMDevice directly 2014-07-23 10:56:26 -04:00
supplicant-manager build: more srcdir!=builddir fixes 2014-07-15 11:37:19 -04:00
tests core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
vpn-manager core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
main.c core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
Makefile.am config: drop NMConfigDevice, use NMDevice directly 2014-07-23 10:56:26 -04:00
NetworkManagerUtils.c config: move some spec-match-list handling from config to core 2014-07-23 10:56:26 -04:00
NetworkManagerUtils.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-activation-request.c core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-activation-request.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-active-connection.c core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-active-connection.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-auth-subject.c settings: prefer secret agents in the same process as the request 2013-12-03 16:41:00 -05:00
nm-auth-subject.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-connection-provider.c core: remove useless NMSettings::connections-loaded signal 2014-01-23 15:14:49 -05:00
nm-connection-provider.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-connectivity.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nm-connectivity.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-dbus-manager.c dbus-manager: don't try to create private bus in test programs 2014-04-23 10:19:17 -04:00
nm-dbus-manager.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-dcb.c dcb: wait for carrier down/up after disabling FCoE 2014-04-02 09:37:15 -05:00
nm-dcb.h dcb: separate DCB enable/disable and wait for carrier changes (rh #799241) (rh #1081991) 2014-04-02 09:37:15 -05:00
nm-dhcp4-config.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nm-dhcp4-config.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-dhcp6-config.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nm-dhcp6-config.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-dispatcher.c core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-dispatcher.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-ip4-config.c core: #include gsystem-local-alloc.h instead of libgsystem.h 2014-07-15 22:47:43 +02:00
nm-ip4-config.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-ip6-config.c core: #include gsystem-local-alloc.h instead of libgsystem.h 2014-07-15 22:47:43 +02:00
nm-ip6-config.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-manager-auth.c core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-manager-auth.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-manager.c core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-manager.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-policy.c core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-policy.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-properties-changed-signal.c logging: tweak logging-enabled functions 2013-12-20 09:57:13 -05:00
nm-properties-changed-signal.h core: make nm-properties-changed-signal always export the right properties 2013-05-20 16:38:33 -03:00
nm-rfkill-manager.c core: split NMRfkillManager out of NMUdevManager 2013-06-05 17:49:24 -03:00
nm-rfkill-manager.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-session-monitor-ck.c core: make NMSessionMonitor non-refcounted 2013-12-03 16:39:37 -05:00
nm-session-monitor-null.c core: make NMSessionMonitor non-refcounted 2013-12-03 16:39:37 -05:00
nm-session-monitor-systemd.c sessions: fix return value handling for sd_uid_get_sessions() (bgo #707983) 2014-01-23 16:48:19 -06:00
nm-session-monitor.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-session-utils.c Use glib-mkenums to generate enum types 2012-02-15 11:42:15 -05:00
nm-session-utils.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-sleep-monitor-systemd.c sleep-monitor: add missing include 2013-09-13 09:05:07 -04:00
nm-sleep-monitor-upower.c core: convert the DBus manager to a single-ref object 2013-05-20 16:38:33 -03:00
nm-sleep-monitor.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-types.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
org.freedesktop.NetworkManager.conf dbus: kill at_console usage in permissions (bgo #707983) (rh #979416) 2014-01-23 16:48:19 -06:00