NetworkManager/src/settings/plugins
Thomas Haller e3f89eb432 keyfile: fix reader and writer for writing routes
Keyfile plugin writer had a bug, when writing IP6 routes with gateway
"::". Instead of writing "net/plen,,metric" it wrote "net/plen,metric".

- fix this bug and add test cases. Also, add a workaround to reader, to
  accept such wrongly written IP6 routes as valid.

- change the writer for IP4 addresses, IP4 routes and IP6 routes to
  omit the gateway and the metric, if it is 0.0.0.0/::/0, respectively.
  Also change the reader, to accept such empty gateway as valid.
  It only omits the gateway, if the metric is not 0, this means it would
  write:
      route1=1.2.3.4/24,0.0.0.0,1
  instead of
      route1=1.2.3.4/24,,1
  Both representations are now supported by the reader, but older plugin
  versions could only read the former (thus, we keep writing that
  version).
  With a metric of zero, it would instead write:
      route1=1.2.3.4/24

- some refactoring and code cleanup. Fix a memory leak.

https://bugzilla.gnome.org/show_bug.cgi?id=719851

Signed-off-by: Thomas Haller <thaller@redhat.com>
2013-12-09 18:41:38 +01:00
..
example settings: port NMAgentManager, etc, to use NMAuthSubject 2013-12-03 16:39:45 -05:00
ifcfg-rh settings: port NMAgentManager, etc, to use NMAuthSubject 2013-12-03 16:39:45 -05:00
ifcfg-suse settings: port NMAgentManager, etc, to use NMAuthSubject 2013-12-03 16:39:45 -05:00
ifnet settings: port NMAgentManager, etc, to use NMAuthSubject 2013-12-03 16:39:45 -05:00
ifupdown settings: port NMAgentManager, etc, to use NMAuthSubject 2013-12-03 16:39:45 -05:00
keyfile keyfile: fix reader and writer for writing routes 2013-12-09 18:41:38 +01:00
Makefile.am settings: add support for code coverage to the settings plugins 2013-02-19 13:05:52 +01:00