summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* platform/tests: use nmtst_inet{4,6}_from_string() helpersbg/device-creation-vxlan-bgo756963Beniamino Galvani2015-12-091-12/+12
|
* libnm-glib: consider unknown devices as generic onesBeniamino Galvani2015-12-091-2/+2
| | | | | | | After commit 8ca6e412c1c0214603503521b6461e47b13be373, libnm-glib is able to instantiate unknown devices as dummy objects without creating a D-Bus proxy for them. Enable this behavior for every new unknown device type.
* platform/tests: create vxlan links also using platform codeBeniamino Galvani2015-12-093-12/+76
|
* libnm: add NMDeviceVxlanBeniamino Galvani2015-12-097-0/+949
|
* device/vxlan: support device creationBeniamino Galvani2015-12-097-26/+446
|
* platform: add vxlan supportBeniamino Galvani2015-12-094-1/+137
| | | | Add a new method to the platform code to create vxlan devices.
* cli: add vxlan supportBeniamino Galvani2015-12-094-3/+469
|
* libnm-core: add NMSettingVxlanBeniamino Galvani2015-12-0910-0/+997
| | | | | Add a new NMSettingVxlan which describes properties of VXLAN connections.
* merge: macvlan and macvtap devices creation supportBeniamino Galvani2015-12-0933-56/+2009
|\ | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=755986
| * libnm: add NMDeviceMacvlanBeniamino Galvani2015-12-097-0/+432
| |
| * device/macvlan: support device creationBeniamino Galvani2015-12-097-25/+598
| |
| * platform: add macvtap link creation supportBeniamino Galvani2015-12-098-10/+72
| |
| * platform/tests: test macvlans also using platform codeBeniamino Galvani2015-12-093-3/+46
| |
| * platform: add macvlan link creation supportBeniamino Galvani2015-12-093-0/+88
| |
| * cli: add macvlan supportBeniamino Galvani2015-12-094-2/+280
| |
| * libnm-core: add NMSettingMacvlanBeniamino Galvani2015-12-0910-0/+478
| | | | | | | | | | The setting contains properties that are specific to macvlans and macvtaps.
| * platform: return the macvlan mode as integerBeniamino Galvani2015-12-095-28/+27
|/ | | | It's easier to handle it as an integer than as a string.
* man: correct manual page with respect to whitespace in device-specThomas Haller2015-12-091-3/+7
|
* device/tun: set tun mode when the device is createdBeniamino Galvani2015-12-091-0/+3
| | | | | | | | Otherwise after 72c36bd6db96 ("device/tun: fix reloading tun properties") the mode would remain always set to the default value "tun". Fixes: 9110ad39c55bee0b338350d645374fb99fb6e47d
* libnm: fix description of NMDeviceIPTunnel:input-key propertyJiří Klimeš2015-12-091-1/+1
| | | | Fixes: e2da055f900e147a871fac37f2b755ab83d0265e
* libnm: fix indenting in libnm/nm-device-ip-tunnel.cJiří Klimeš2015-12-091-1/+1
| | | | Fixes: e2da055f900e147a871fac37f2b755ab83d0265e
* device/trivial: rename variableThomas Haller2015-12-091-4/+5
|
* device: during activating device transit to DISCONNECTED stateThomas Haller2015-12-091-1/+1
| | | | | | | | | | When activating a device, we must progress the device state to disconnected state. This matters when activating a device without carrier. In this case we would have skipped DISCONNECTED state. Skipping the device state then leads to other issues like a slave device never noticing that the master got ready.
* device: add NM_DEVICE_CHECK_DEV_AVAILABLE_FOR_USER_REQUEST flagThomas Haller2015-12-092-7/+8
| | | | This generalizes _NM_DEVICE_CHECK_DEV_AVAILABLE_IGNORE_CARRIER.
* device: fix enum value NM_DEVICE_CHECK_CON_AVAILABLE_ALLThomas Haller2015-12-091-2/+1
| | | | ALL had wrongly the value 0x05 instead of 0x03.
* device: move initialization of ifindex to constructor()Beniamino Galvani2015-12-091-10/+30
| | | | | | | | | | | | | | | | | Device subclasses (for example NMDeviceWifi) can use the ifindex in their constructor(), but the value now is set later in parent class constructed(). This causes the following: nm_platform_wifi_get_capabilities: assertion 'ifindex > 0' failed Fix this by initializing ifindex earlier in NMDevice's constructor(). While at it, remove the nm_assert (pllink->type != NM_LINK_TYPE_NONE); assertion, since pllink can be NULL there. Fixes: 6db04dc20664479fc71f102a536dbf2f4501c5a2
* cli: TAB-complete yes/no for boolean properties in the editorJiří Klimeš2015-12-091-22/+71
|
* merge: branch 'lr/device-link-type'Lubomir Rintel2015-12-0816-26/+137
|\ | | | | | | | | Avoids a mismatch of incompatible devices of the same class. Consider two devices of tap class, one of tun mode and one of tap mode.
| * manager: improve the add_device() error handling a bitlr/device-link-typeLubomir Rintel2015-12-081-8/+17
| | | | | | | | | | Let it indicate that it didn't succeed adding a device to the global list and bail out.
| * device: set link type from all factoriesLubomir Rintel2015-12-0813-1/+62
| | | | | | | | | | This is, in particular, important for devices that support multiple link types which can not be changed once the platform device exists.
| * device: precisely match the link type to the platform deviceLubomir Rintel2015-12-081-1/+14
| | | | | | | | | | The unrealized device's factory could be using one particular link type, don't allow matching the device to a non-matching one.
| * device: add link_type propertyLubomir Rintel2015-12-082-16/+44
|/ | | | | | This is to make it possible for the device factories to indicate the desired link type and make it possible to avoid matching the unrealized device to a platform device of different link type.
* trival: fix whitespaceThomas Haller2015-12-081-1/+1
|
* config: add defines for key names for keyfileThomas Haller2015-12-082-4/+10
|
* active-connection: improve logging in NMActiveConnectionThomas Haller2015-12-071-59/+56
| | | | | | | | | | | - cleanup _NMLOG() - implement state_to_string() based on NM_UTILS_STRING_LOOKUP_TABLE(), which prints unknown values as numeric - add logging when setting device and state - cleanup logging in check-master-ready to consistently print relevant information - update logging in set_master() to match simpler logging format like set_device() and set_state().
* macros: add nm_sprintf_bufa()Thomas Haller2015-12-071-0/+11
|
* device: fix crash in master_ready() logging unset priv->masterThomas Haller2015-12-071-1/+1
| | | | Fixes: f45f702a5ece358bf8cc075dc3a2d2f04f99b4d7
* core: use define for NMManager's "state-changed" signal nameThomas Haller2015-12-073-2/+3
|
* core: use define for NMPPPManager's "state-changed" signal nameThomas Haller2015-12-075-8/+11
|
* core: use define for NMDnsMasqManager's "state-changed" signal nameThomas Haller2015-12-073-9/+12
|
* core: use define for NMDevice's "state-changed" signal nameThomas Haller2015-12-077-8/+10
|
* device: cache pointer to private-data in NMDevice structureThomas Haller2015-12-072-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | We often lookup the private data and retrieve it via NM_DEVICE_GET_PRIVATE(), which in turn calls G_TYPE_INSTANCE_GET_PRIVATE(). Instead cache the pointer to the private data. There are up- and downsides: - requries additional sizeof(gpointer) bytes for each NMDevice. + retrieving the private pointer will be slightly faster. + easier debugging in gdb as it is currently often a pain to retrieve the private data. But most importantly, the allows to change our common pattern to first cache the private data in a variable @priv. That is often cumbersome to write, especially for short functions. This change gives us a choice to use self->priv directly. Such a change should not be aimed for every class. Instead it makes mostly sense for NMDevice, where it pays off better due to the class' size and ubiquitous use. https://mail.gnome.org/archives/networkmanager-list/2015-December/msg00017.html
* device: fix a typo in assertionLubomir Rintel2015-12-071-1/+1
| | | | | | It is well understood that world would implode if the device was its own master. Fixes: f45f702a5ece358bf8cc075dc3a2d2f04f99b4d7
* cli: produce new line after readline when echoing was offJiří Klimeš2015-12-071-1/+4
| | | | | | | The new line was missing. Adding termios_new.c_lflag |= (ECHONL | ICANON); did not help. Why? Fixes: a14306c2cebed02cec73bbf18fa24ee79a66b649
* device: don't pass void* pointer to NM_DEVICE_GET_PRIVATE()Thomas Haller2015-12-071-4/+13
|
* examples: add README for python-networkmanager NetworkManager libraryThomas Haller2015-12-074-1/+10
|
* examples: add README for examples/python/giThomas Haller2015-12-072-1/+4
|
* route-manager: always flush IPv6 routes during nm_route_manager_route_flush()Thomas Haller2015-12-071-2/+5
|
* device: use NM_UTILS_STRING_LOOKUP_TABLE() for reason_to_string()Thomas Haller2015-12-071-9/+4
| | | | | | | | | | | | | | | Showcase for the new macros NM_UTILS_STRING_LOOKUP_TABLE() and NM_UTILS_STRING_LOOKUP_TABLE_DEFINE_STATIC(). It changes behavior in case of looking up an invalid/unknown state reason. Previously it would just have returned "unknown" -- which was indistinguishable from a regular "unknown" value. Now it returns the numeric id as a string. The string is allocated with alloca(), which is desired but one should be aware of the pitfalls: - prevents the caller from being inlined - bad idea to do in a loop.
* utils: add NM_UTILS_STRING_LOOKUP_TABLE() macroThomas Haller2015-12-071-0/+36
|