summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-generic.c
Commit message (Collapse)AuthorAgeFilesLines
* libnm-core: add nm-core-types.h, remove cross-includesDan Winship2014-10-281-1/+1
| | | | | | | | | | | | | | Add nm-core-types.h, typedefing all of the GObject types in libnm-core; this is needed so that nm-setting.h can reference NMConnection in addition to nm-connection.h referencing NMSetting. Removing the cross-includes from the various headers causes lots of fallout elsewhere. (In particular, nm-utils.h used to include nm-connection.h, which included every setting header, so any file that included nm-utils.h automatically got most of the rest of libnm-core without needing to pay attention to specifics.) Fix this up by including nm-core-internal.h from those files that are now missing includes.
* devices: drop device-type-specific error domainsDan Winship2014-10-221-15/+0
| | | | | | Most NMDevice types defined their own error domain but then never used it. A few did use their errors, but some of those errors are redundant with NMDeviceError, and others can be added to it.
* all: remove remaining GParamSpec name/blurb stringsDan Winship2014-06-191-4/+3
| | | | | | Remove all remaining GParamSpec name and blurb strings (and fix indentation while we're there), and add G_PARAM_STATIC_STRINGS to all paramspecs that were lacking it.
* core: remove unused 'error' argument to check_connection_compatible()Dan Williams2014-05-301-14/+4
| | | | | Nothing uses the error, so simplify some code and save 5K (0.45%) in binary size.
* core: convert unmanaged bits to flagsDan Williams2014-04-071-1/+1
| | | | | | | Instead of tracking unmanaged-ness in a couple variables (and because I'd like to add one for user-unmanaged later) let's do it in a single flags variable, and consolidate setting of the unmanaged states in one place.
* core: updating a Generic setting should set the interface nameDan Williams2013-12-021-0/+8
| | | | | Generic connections need an interface name, and that can only be stored in the Connection setting.
* core: implement update_connection() for Generic devicesDan Williams2013-11-081-0/+10
| | | | | tun/tap, macvlan, and GRE devices may be bridge, bond, or team slaves and should get that configuration detected at startup.
* core: use carrier for determining when generic devices are availableDan Williams2013-11-061-7/+0
|
* devices: make constructors take an NMPlatformLinkDan Winship2013-06-051-7/+3
| | | | | | | | | | Rather than passing UDI, ifname, and driver name to the device constructors as separate arguments, just pass the NMPlatformLink instead and let it parse them out. Virtual types still take UDI and ifname separately, since we create fake NMDevices for them for autoactivating connections. That's weird in other ways too though, so perhaps this should be revisted.
* devices, platform: fix up carrier-detection detectionDan Winship2013-05-201-0/+10
| | | | | | | | | | | | | | Some devices aren't expected to support carrier detection, so there's no reason to have NMDevice log about it. Move that message into NMDeviceEthernet, where failure to support carrier-detect really is worth mentioning. Also, make NMDeviceEthernet use NMPlatform for carrier-detection detection (and move the MII carrier-detect-support check from NMDeviceEthernet into NMLinuxPlatform). Finally, have NMDeviceGeneric actually check whether the device supports carrier detect, rather than just always assuming it doesn't.
* core: clean up and simplify device capabilities handlingDan Williams2013-05-201-7/+0
| | | | | | | | | | | | | This is really, really old 2007-era code. Any NMDevice that gets created is already supported, so there's no reason to have every device set NM_DEVICE_CAP_NM_SUPPORTED. For those subclasses that only set that capability, we can remove the subclass method entirely. Next, it turns out that the "type capabilities" code wasn't used anywhere, so remove that too. Lastly, "cipsec" interfaces haven't been used on linux in about 5 years (they were created by the Cisco binary-only IPSec kernel module for Cisco VPNs long before vpnc and openswan came around) so we can remove that code too.
* core: make nm-properties-changed-signal always export the right propertiesDan Winship2013-05-201-16/+4
| | | | | | | | | | Change the way that nm-properties-changed-signal works, and parse the dbus-binding-tool-generated info to get the exact list of properties that it's expected to export. This makes NM_PROPERTY_PARAM_NO_EXPORT unnecessary, and also fixes the problem of properties like NMDevice:hw-address being exported on classes where it shouldn't be.
* core: move devices into a subdirectoryDan Winship2013-05-081-0/+229
We have lots of device types and will soon have lots more, so let's put them in their own directory.