summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* devices: make constructors take an NMPlatformLinkDan Winship2013-06-0527-151/+109
| | | | | | | | | | 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.
* platform: add NMPlatformLink.parent, sort link_get_all() outputDan Winship2013-06-056-12/+42
| | | | | | | | | | | | | Add a "parent" field to NMPlatformLink, giving the parent device ifindex for devices that have a parent. Make nm_platform_link_get_all() sort the links before returning them, so that masters appear after all of their slaves, and parent devices appear before their children. Remove the second call to nm_platform_query_devices() from NMManager since it is now guaranteed that an NMDeviceVLAN's parent NMDevice will have been created before the NMDeviceVLAN.
* platform: merge remaining NMUdevManager functionality into NMLinuxPlatformDan Winship2013-06-0512-484/+330
| | | | | | | | | Merge the net-subsystem-monitoring functionality of NMUdevManager into NMLinuxPlatform (and kill NMUdevManager). NMLinuxPlatform now only emits link-added signals after udev processes the device, and uses udev attributes to further identify the device. NMManager now identifies devices solely based on the NMLinkType provided by the platform.
* core: split NMAtmManager out of NMUdevManagerDan Winship2013-06-055-76/+366
| | | | | | Split the "atm"-subsystem-monitoring parts of NMUdevManager into a separate class. Now NMUdevManager only handles "net"-subsystem device enumeration.
* core: split NMRfkillManager out of NMUdevManagerDan Winship2013-06-0511-361/+479
| | | | | Split the rfkill-monitoring parts of NMUdevManager into a separate class. Now NMUdevManager only handles device enumeration.
* modem-manager: read 'SupportedCapabilities' instead of 'ModemCapabilities' ↵Aleksander Morgado2013-06-052-4/+17
| | | | | | | | | | | (bgo #701668) There is no longer a 'ModemCapabilities' uint32 property; instead we have 'SupportedCapabilities' giving a list of uint32 values. Just read the list and merge the values into a single mask; NM doesn't care about the exact combinations supported. https://bugzilla.gnome.org/show_bug.cgi?id=701668
* mobile: don't fail in old MM code when using deprecated functionsDan Williams2013-06-052-0/+4
| | | | | We want to keep using these deprecated functions when talking to the old ModemManager to ensure behavior is unchanged.
* libnm-util: deprecate 'network-type' and 'allowed-bands' in GSM settingsAleksander Morgado2013-06-052-19/+39
| | | | | | | | When requesting connections to ModemManager, NetworkManager shouldn't try to request specific bands or network types to use. Leave those requests to other system configuration tools talking directly to ModemManager. https://bugzilla.gnome.org/show_bug.cgi?id=701504
* modem-manager: don't request allowed modes when talking to ModemManager1 modemsAleksander Morgado2013-06-051-39/+0
| | | | Just let them get connected with whatever network type they currently have.
* platform: add some ifdefs to support kernel 3.6Dan Winship2013-06-041-0/+10
|
* Revert "platform, devices: add support for vxlan devices"Dan Winship2013-06-0412-696/+0
| | | | | | | | This requires a very recent kernel to even compile, and the kernel code is still rapidly changing (eg, adding IPv6 support). So take it out for now, until it stabilizes. This reverts commit 7f0f04d1067ff05527007e03af591a2bfecadafb.
* platform, devices: add support for gre and gretap devicesDan Winship2013-06-0412-0/+567
|
* platform, devices: add support for vxlan devicesDan Winship2013-06-0412-0/+696
|
* platform, devices: add support for macvlan and macvtap devicesDan Winship2013-06-0412-0/+478
|
* platform, devices: add support for tun and tap devicesDan Winship2013-06-0414-12/+472
|
* platform: add support for ifb devicesDan Winship2013-06-042-0/+5
| | | | | (ifb devices have no device-type-specific properties, so they are fully handled by NMDeviceGeneric without needing their own subclass).
* ifcfg-rh: ignore team connections until we support team devices (rh #968268)Jiří Klimeš2013-06-042-1/+23
| | | | | | | | https://fedorahosted.org/libteam/ team connections are marked by DEVICETYPE="Team" or DEVICETYPE="TeamPort"
* modem-manager: consolidate capabilities loadingAleksander Morgado2013-06-037-23/+40
| | | | | Make capabilities loading a method in the NMModem class, and let subclasses implement it.
* device-modem: fix setting current capabilitiesAleksander Morgado2013-06-031-1/+1
|
* mobile: move old MM modem properties parsing in NMModemOldDan Williams2013-06-035-115/+115
|
* mobile: merge NMModemGsm into NMModemOldDan Williams2013-06-037-721/+396
|
* mobile: merge NMModemCdma into NMModemOldDan Williams2013-06-038-408/+320
| | | | GSM is next...
* mobile: make modem errors genericDan Williams2013-06-034-34/+44
| | | | We'll use them eventually for the old CDMA and GSM types too.
* mobile: remove some unused codeDan Williams2013-06-034-35/+0
|
* mobile: move and rename old MM modem state enumDan Williams2013-06-038-27/+29
|
* mobile: rename old MM bits to clarify that they're for old ModemManagerDan Williams2013-06-0311-75/+72
|
* systemd: update for network-online.target for systemd >= 200 (rh #787314)Dan Williams2013-06-035-4/+24
| | | | | | | systemd's new network-online target abstracts the "wait until networking is up" stuff, and NM-wait-online implements that functionality. Thus NM-wait-online should be ordered before (and thus be a dependency of) network-online.
* systemd: add service for dispatcher (rh #948433)Dan Williams2013-06-033-2/+22
|
* main: allow daemonizing again - initialize become_daemon to TRUE (bgo #701383)Jiří Klimeš2013-06-031-1/+1
| | | | | | | | 7ff3d1500e8a9dcce4d12b7b879bf1d178b94bf8 reversed become_daemon for "--no-daemon" with G_OPTION_FLAG_REVERSE, but missed to reverse initialization into become_daemon=TRUE and thus NM couldn't be daemonized. https://bugzilla.gnome.org/show_bug.cgi?id=701383
* core: not all callers of hw_bring_up care about firmwareDan Williams2013-05-311-1/+2
|
* cli: 'dev wifi list': change default displayed columnsJiří Klimeš2013-05-311-1/+1
| | | | | | Now they are #define NMC_FIELDS_DEV_WIFI_LIST_COMMON "IN-USE,SSID,MODE,CHAN,RATE,SIGNAL,BARS,SECURITY"
* cli: 'dev wifi list': change SECURITY valuesJiří Klimeš2013-05-311-12/+16
| | | | | | | | | | | | | | * remove "Encrypted" tag The "Encrypted: " stuff was initially copied from nm-tool, but it doesn't help here much. See also http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=a734c836a56f3170202f0555f1a03c9b2835775c for APs with WPA & RSN IEs, but no privacy flag. * remove a space from "WPA ", etc. strings. Translators often leave it out and thus break output. * change "WPA" to "WPA1" to make it clearer * use "802.1X" instead of "Enterprise" to save some characters
* cli: 'dev wifi list': add IN-USE (*) fieldJiří Klimeš2013-05-311-3/+5
|
* cli: 'dev wifi list': 'Infrastructure' -> 'Infra', 'Unknown' -> 'N/A' in MODEJiří Klimeš2013-05-311-2/+2
|
* cli: 'dev wifi list': add BARS column displaying signal semi-graphicallyJiří Klimeš2013-05-311-14/+27
| | | | | | using unicode characters: '_' '▂' '▄' '▆' '█' 0x5f 0x2582 0x2584 0x2586 0x2588
* cli: 'dev wifi list': add CHAN columnJiří Klimeš2013-05-311-20/+23
|
* cli: 'dev wifi list' use nm_utils_ssid_to_utf8() to display SSID; add SSID-HEXJiří Klimeš2013-05-314-35/+35
| | | | | | This commit removes enclosing '' from SSID. SSID-HEX is printed as a string of hex characters (each 2 chars represent one byte).
* cli: trivial update of NmcOutputField initializersJiří Klimeš2013-05-315-189/+189
| | | | no actual change
* cli: adapt the code for the new flags and printing facilitiesJiří Klimeš2013-05-315-936/+1020
| | | | | | | | The data are added to output_data at first, and then they are printed all at once using print_data(), that takes care of proper alignment and display. The static 'width' values defined in NmcOutputField columns are not used now, but dynamically computed maximal widths override them.
* cli: print_required_fields() - fix non-ASCII strings alignment in multilineJiří Klimeš2013-05-311-2/+8
|
* cli: enhance printing to align tabular output properly and not to waste spaceJiří Klimeš2013-05-314-62/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now we have used a static width defined for each column for tabular output. Even if this worked in most cases, it was not optimal, because by using too wide columns we wasted space, and in case of a too narrow column the alignment broke. So, we need to know the longest string in a column to be able to align columns in the tabular output. Thus, the printing has to be postponed till we have all data available, and can find the widest column. This value is then used for aligning while printing the data. Arrays of NmcOutputField (rows) are inserted into output_data array. When all data have been added, print_data() can be used to print the whole output_data array with proper alignment. A single row can be printed using print_required_fields(). Also, output flags are redone to better match the new output_data array. The flags are needed for every row (in tabular output); they are stored in the first field (NmcOutputField) for the whole row. Addapted set_val_str() and set_val_arr() to set value type (char * x char **). Added set_val_strc(), set_val_arrc() for const values that should not be freed. output_data takes ownership of the data added to it and takes care of freeing the memory. See e.g. https://bugzilla.gnome.org/show_bug.cgi?id=699503
* build: always init and update submodules in ./autogen.shPavel Šimerda2013-05-301-6/+3
|
* rdisc: add libndp submodulePavel Šimerda2013-05-302-0/+3
| | | | | | | This submodule includes Jiří Pírko's library for sending/recieving neighbor discovery protocol messages and will be used for NetworkManager's internal userspace implementation of IPv6 router discovery.
* libnm-util: deprecate nm_utils_slist_free(), use g_slist_free_full()Dan Winship2013-05-2914-67/+63
|
* settings: remove duplicated dbus_g_method_return()Dan Williams2013-05-291-2/+0
| | | | | | | | Could cause a crash when updating a connection, since dbus-glib may clear DBusGMethodInvocation resources during this method. Since update_complete() is actually our completion/cleanup handler for this operation chain, we can remove the standalone call to dbus_g_method_return().
* trivial: rename some old ModemManager definesDan Williams2013-05-292-7/+7
|
* libnm-glib: add support for new connection unsaved functionalityDan Williams2013-05-286-62/+378
|
* settings: implement Save() function for connectionsDan Williams2013-05-282-14/+42
|
* settings: implement ability to add connections without saving them to diskDan Williams2013-05-2822-151/+409
| | | | | | | | | | | | | | | We don't always want to immediately write new connections to disk, to facilitate "runtime" or "temporary" connections where an interface's runtime config isn't backed by on-disk config. Also, just because an interface's configuration is changed doesn't necessarily mean that new configuration should be written to disk either. Add D-Bus methods for adding new connections and for updating existing connections that don't immediately save the connection to disk. Also add infrastructure to indicate to plugins that the new connection shouldn't be immediately saved if the connection was added with the new method.
* ifnet: don't require a conn_name when creating an ifnet connectionDan Williams2013-05-283-52/+68
| | | | | If the connection doesn't yet have a conn_name, that means it's not yet saved to disk.