summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* dhcp: allow internal DHCP client to be configureddcbw/dhcpDan Williams2014-07-181-0/+4
|
* dhcp: add gdhcp library and clientDan Williams2014-07-1811-0/+7198
|
* dhcp: allow clients to retrieve DUID after DHCPv6 startDan Williams2014-07-182-0/+10
|
* dhcp: make DUID-to-string function available to subclassesDan Williams2014-07-183-25/+27
|
* dhcp: pass IPv6 privacy preference to client classDan Williams2014-07-187-9/+22
|
* dhcp: pass individual options to DHCP instead of NMSettingIPxConfigDan Williams2014-07-183-23/+18
|
* dhcp: consolidate more state logic in nm_dhcp_client_set_state()Dan Williams2014-07-182-27/+23
| | | | | | The goal is to remove generic logic from nm_dhcp_client_new_options(), since library-ized DHCP clients won't ever call that function since their native data format isn't a hash table of strings.
* dhcp: trivial: move state table and state string functions earlierDan Williams2014-07-181-40/+42
|
* dhcp: pass DHCP options with BOUND state changeDan Williams2014-07-184-107/+95
| | | | | | The options hash is never used except for BOUND events, so don't bother caching it in the DHCP client object. Just pass it along with the BOUND state change, like the IP configuration object.
* dhcp: convert options testcases to g_assert()Dan Williams2014-07-181-257/+133
|
* dhcp: filter DHCP options when setting themDan Williams2014-07-185-108/+102
| | | | | | Don't bother storing all the options, only store the ones we care about and ones we export through the NMDHCP4Config and NMDHCP6Config objects.
* dhcp: pass IP config in state signalDan Williams2014-07-184-75/+55
| | | | Just pass it in the state change signal.
* dhcp: consolidate and simplify DHCP options testsDan Williams2014-07-185-247/+84
| | | | | | | | | | | | | Previously the tests required that a NMDHCPClient object was created, but all that's really being tested is the DHCP option parsing and that doesn't need a client object now that the option parsing has been split out. Also, the options test wasn't in src/dhcp-manager/, so put it there. Lastly, the test ran for both dhclient and dhcpcd, but the code executed for both cases was the same, so there's no reason to keep running the test for both clients.
* dhcp: split out DHCP options processingDan Williams2014-07-184-644/+713
| | | | | No code changed except passing what used to use "priv->" as function parameters.
* dhcp: find existing clients by ifindex, not interface nameDan Williams2014-07-181-8/+6
| | | | | | More robust against ifname changes, plus we save some strcmps(). For the most part, the interface name should be informational only and unused for actual control logic.
* dhcp: remove the client REMOVE signalDan Williams2014-07-183-67/+14
| | | | | | | | Instead of using a separate signal for it, just drop and release the client object when it reaches terminate states like TIMEOUT, FAIL, and DONE. The 5 second removal signal timeout appears to no longer be necessary, since the running child process is killed synchronously.
* dhcp: always signal state changesDan Williams2014-07-183-10/+8
| | | | | | Modify code so that listeners remove state change signal handlers before stopping the client. Which means we can remove the 'emit_state' argument from nm_dhcp_client_set_state().
* dhcp: make nm_dhcp_client_set_state() available to subclassesDan Williams2014-07-182-12/+15
| | | | | Not all state changes will be done in the base NMDHCPClient class anymore, especially with non-subprocess DHCP clients.
* core: consolidate DHCP client termination in dhcp[4|6]_fail()Dan Williams2014-07-181-11/+3
| | | | | | | DHCP failure should just clean up the client in all cases. This also has the benefit of removing the signal handler for the DHCP client's state-change signal before telling the client to terminate, which will simplify some DHCP code later.
* dhcp: merge TIMEOUT signal with DHCP_STATE_TIMEOUTDan Williams2014-07-184-105/+51
| | | | | | | | | No reason to have two signals for the same thing. Previously, the TIMEOUT signal was used for the internal overall DHCP transaction bound, while DHCP_STATE_TIMEOUT/DHC_TIMEOUT was a signal from the DHCP client itself that something had timed out. But in both cases the results should be the same, so just collapse the stand-alone TIMEOUT signal into the DHCP_STATE_TIMEOUT state.
* dhcp: simplify DHCP statesDan Williams2014-07-183-145/+77
| | | | | | | | The existing DHC_* states are pretty specific to dhclient, and aren't useful for more generalized DHCP. NetworkManager wasn't using many of the states anyway, and doesn't need to differentiate between states like REBOOT/REBIND/RENEW anyway. So simplify the DHCP states into the ones we really care about.
* dhcp: handle DHCP clients that aren't subprocessesDan Williams2014-07-184-78/+78
| | | | | Make the base class mostly ignorant of process IDs, except for a few utility functions.
* dhcp: pass ifindex to DHCP clientsDan Williams2014-07-175-2/+37
|
* dhcp: let dhclient handle requesting the 'server-id' optionThomas Schäfer2014-07-171-1/+0
| | | | | | | | Always requesting this appears to cause some devices to ignore DHCP requests, like the ZTE 823D, ZTEMF93E, Alcatel W800Z. dhclient probably knows better than NM when to request the server's ID, so leave that up to dhclient. We don't do anything interesting with it anyway.
* vapi: add bindings for new_async methods (bgo #732253)David Lechner2014-07-161-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=732253
* tui: fix Wi-Fi section of "nmtui connect" list in non-UTF-8 localesDan Winship2014-07-162-13/+34
| | | | | | | | | | | | | | | | | | | In locales where the Wi-Fi signal-strength characters couldn't be represented (eg, LANG=C), the entire Wi-Fi SSID + signal strength string would fail to convert, causing the Wi-Fi section of the connection list to show up as a series of blank lines. Fix this by testing beforehand whether the characters can convert, and falling back to plain ASCII if not. (And also, fix the similar code in nmt-newt-section.c, which got broken when nmt_newt_locale_from_utf8() was changed to never return NULL.) Also, for paranoia, represent the signal-strength strings via \nnn escapes rather than actual UTF-8 data, to guarantee that they get compiled to the expected values even if the source files get re-encoded. https://bugzilla.gnome.org/show_bug.cgi?id=733007
* merge branch 'th/libgsystem'Thomas Haller2014-07-1518-57/+206
|\ | | | | | | | | | | | | Remove libgsystem submodule and include the gsystem-local-alloc.h header file directly. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * platform: use gs_free (instead of own define auto_g_free)Thomas Haller2014-07-154-21/+15
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * core: use gs_free_slist in NMManagerThomas Haller2014-07-151-12/+1
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * build: remove setup of git-submodules in autogen.shThomas Haller2014-07-151-7/+0
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * libgsystem: remove submodule libgsystemThomas Haller2014-07-155-12/+3
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * libgsystem: add local copy of gsystem-local-alloc.hThomas Haller2014-07-152-0/+184
| | | | | | | | | | | | | | Taken from libgsystem:src/gsystem-local-alloc.c (commit de2619271ee3ab42971fc770cae110f23e330c30). Signed-off-by: Thomas Haller <thaller@redhat.com>
| * core: #include gsystem-local-alloc.h instead of libgsystem.hThomas Haller2014-07-155-5/+3
|/ | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* libnm-util: fix leak in _nm_connection_verify()Thomas Haller2014-07-151-1/+1
| | | | | | Regression introduced by commit 2570c5a17ceab3eb39695493b07144cba04eadbf. Signed-off-by: Thomas Haller <thaller@redhat.com>
* po: update Traditional Chinese translation (rh #1046891)Terry Chuang2014-07-151-793/+5718
|
* po: update Simplified Chinese translation (rh #1046891)Leah Liu2014-07-151-833/+5711
|
* po: update Russian translation (rh #1046891)ypoyarko2014-07-151-1144/+5067
|
* po: update Punjabi translation (rh #1046891)asaini2014-07-151-1553/+4989
|
* po: update Malayalam translation (rh #1046891)Ani Peter2014-07-151-1287/+4761
|
* po: update Korean translation (rh #1046891)eukim2014-07-151-984/+5531
|
* po: update Japanese translation (rh #1046891)Noriko Mizumoto2014-07-151-1517/+2863
|
* po: update French translation (rh #1046891)Sam Friedmann2014-07-151-1020/+5786
|
* po: update Spanish translation (rh #1046891)gguerrer2014-07-151-1053/+5705
|
* po: update Bengali bn_IN translation (rh #1046891)sray2014-07-151-1186/+4999
|
* build: more srcdir!=builddir fixesDan Winship2014-07-1538-40/+7
| | | | | | | | nm-version.h was getting disted, making srcdir!=builddir work for tarball builds, but not for git builds. Also, remove "-I${top_builddir}/include" from all Makefile.ams, since there's nothing generated in include/ any more.
* build: fix srcdir!=builddir build after previous mergeDan Winship2014-07-151-0/+1
|
* Miscellaneous libnm-util/libnm-glib/include cleanupsDan Winship2014-07-15161-1316/+1201
|\ | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=732867
| * libnm-util: NetworkManager.h/NetworkManagerVPN.h doc fixupsDan Winship2014-07-152-123/+159
| | | | | | | | | | | | | | | | Add gtk-docs for enum types that previously didn't have them. Explicitly note the relationship between NetworkManager.h / NetworkManagerVPN.h types and the corresponding introspection/*.xml types.
| * introspection: fix VPN.Plugin State typeDan Winship2014-07-151-2/+40
| | | | | | | | | | It was listed as being tp:type="NM_VPN_CONNECTION_STATE", but it's actually NM_VPN_SERVICE_STATE (which wasn't previously documented).
| * libnm-glib: drop separate test libraryDan Winship2014-07-155-32/+17
| | | | | | | | | | | | | | | | Previously, we built a second copy of libnm-glib that was hacked to use the session bus rather than the system bus, for use by the test programs. Rather than doing that, just have test-nm-client explicitly override the choice of bus. (test-remote-settings-client was actually already doing this, although it leaked the bus after.)