<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/src/dns/nm-dns-manager.c, branch lr/ovs-eth</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>dns: introduce routing domains</title>
<updated>2018-01-12T12:42:08+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2018-01-10T10:23:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e91f1a7d2a6b8400b6b331d5b72287dcb5164a39'/>
<id>e91f1a7d2a6b8400b6b331d5b72287dcb5164a39</id>
<content type='text'>
Similarly to what systemd-resolved does, introduce the concept of
"routing" domain, which is a domain in the search list that is used
only to decide the interface over which a query must be forwarded, but
is not used to complete unqualified host names. Routing domains are
those starting with a tilde ('~') before the actual domain name.

Domains without the initial tilde are used both for completing
unqualified names and for the routing decision.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Similarly to what systemd-resolved does, introduce the concept of
"routing" domain, which is a domain in the search list that is used
only to decide the interface over which a query must be forwarded, but
is not used to complete unqualified host names. Routing domains are
those starting with a tilde ('~') before the actual domain name.

Domains without the initial tilde are used both for completing
unqualified names and for the routing decision.
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: export search list in the D-Bus "domain" attribute</title>
<updated>2018-01-12T12:42:08+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2018-01-10T10:22:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=70550e2740ce26234aa715e11f5fc38091c5d7ea'/>
<id>70550e2740ce26234aa715e11f5fc38091c5d7ea</id>
<content type='text'>
The "domain" key of the D-Bus configuration dictionary specifies the
domains a configuration applies to. In DNS code we consider domains
and searches as equivalent, so they should be exported via D-Bus using
the same logic used to populate resolv.conf and for plugins.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "domain" key of the D-Bus configuration dictionary specifies the
domains a configuration applies to. In DNS code we consider domains
and searches as equivalent, so they should be exported via D-Bus using
the same logic used to populate resolv.conf and for plugins.
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: add @dup argument to add_dns_domains() and add_string_item()</title>
<updated>2018-01-12T12:42:08+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2018-01-10T10:22:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=b4db0e8362fa0587fcf25a13a2086864fd3062e2'/>
<id>b4db0e8362fa0587fcf25a13a2086864fd3062e2</id>
<content type='text'>
Add a @dup argument that tells whether the new item should be
duplicated.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a @dup argument that tells whether the new item should be
duplicated.
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: split out domains retrieval</title>
<updated>2018-01-12T12:42:08+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2018-01-10T10:21:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e78bfb63cd7c4727a283fb38cf196350fe974922'/>
<id>e78bfb63cd7c4727a283fb38cf196350fe974922</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>core: rework tracking config in dns-manager to use ifindex</title>
<updated>2018-01-09T13:24:54+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-12-16T14:11:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=b40729ca5f72a147872c4d38b2de6b5fb757f5b4'/>
<id>b40729ca5f72a147872c4d38b2de6b5fb757f5b4</id>
<content type='text'>
Don't track the per-device configuration in NMDnsManager by
the ifname, but by the ifindex. We should consistently treat
the ifindex as the ID of a link, like kernel does.

At the few places where we actually need the ifname, resolve
it by looking into the platform cache. That is not necessarily
the same as the ifname that is currently tracked by NMDevice,
because netdev interfaces can be renamed, and NMDevice updates
it's link properties delayed. However, the platform cache has
the most recent notion of the correct interface name for an
ifindex, so if we ever hit a race here, we do it now more
correctly.

This also temporarily drops support for mdns. Will be re-added next,
but differently.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't track the per-device configuration in NMDnsManager by
the ifname, but by the ifindex. We should consistently treat
the ifindex as the ID of a link, like kernel does.

At the few places where we actually need the ifname, resolve
it by looking into the platform cache. That is not necessarily
the same as the ifname that is currently tracked by NMDevice,
because netdev interfaces can be renamed, and NMDevice updates
it's link properties delayed. However, the platform cache has
the most recent notion of the correct interface name for an
ifindex, so if we ever hit a race here, we do it now more
correctly.

This also temporarily drops support for mdns. Will be re-added next,
but differently.
</pre>
</div>
</content>
</entry>
<entry>
<title>core/trivial: rename local variable in merge_one_ip_config()</title>
<updated>2018-01-09T13:24:54+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-12-19T11:34:20+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=fc40d91b97a1e84ea72536d0dde89f4f479c8e97'/>
<id>fc40d91b97a1e84ea72536d0dde89f4f479c8e97</id>
<content type='text'>
Next commit will unify naming of variables, do a trivial rename
first to make the diff smaller.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Next commit will unify naming of variables, do a trivial rename
first to make the diff smaller.
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: rename MDns flag UNKNOWN to DEFAULT</title>
<updated>2018-01-09T13:24:53+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-12-15T11:15:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=9d92848ada434c9ffb8f55db2986514079f58fa3'/>
<id>9d92848ada434c9ffb8f55db2986514079f58fa3</id>
<content type='text'>
"UNKNOWN" is not a good name. If you don't set the property
in the connection explicitly, it should be "DEFAULT".

Also, make "DEFAULT" -1. For one, that ensures that the enum's
underlying integer type is signed. Otherwise, it's cumbersome
to test "if (mdns &gt;= DEFAULT)" because in case of unsigned types,
the compiler will warn about the check always being true.
Also, it allows for "NO" to be zero. These are no strong reasons,
but I tend to think this is better.

Also, don't make the property of NMSettingConnection a CONSTRUCT property.
Initialize the default manually in the init function.

Also, order the numeric values so that DEFAULT &lt; NO &lt; RESOLVE &lt; YES with
YES being largest because it enables *the most*.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"UNKNOWN" is not a good name. If you don't set the property
in the connection explicitly, it should be "DEFAULT".

Also, make "DEFAULT" -1. For one, that ensures that the enum's
underlying integer type is signed. Otherwise, it's cumbersome
to test "if (mdns &gt;= DEFAULT)" because in case of unsigned types,
the compiler will warn about the check always being true.
Also, it allows for "NO" to be zero. These are no strong reasons,
but I tend to think this is better.

Also, don't make the property of NMSettingConnection a CONSTRUCT property.
Initialize the default manually in the init function.

Also, order the numeric values so that DEFAULT &lt; NO &lt; RESOLVE &lt; YES with
YES being largest because it enables *the most*.
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: add mechanism for propagating mDNS setting.</title>
<updated>2018-01-09T13:24:53+00:00</updated>
<author>
<name>Ismo Puustinen</name>
<email>ismo.puustinen@intel.com</email>
</author>
<published>2017-11-10T12:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=25906eda9e669c53d1e5c450fe423cc4360d25e3'/>
<id>25906eda9e669c53d1e5c450fe423cc4360d25e3</id>
<content type='text'>
Update nm-policy.c and nm-dns-manager.c so that the connection-specific
settings get propagated to DNS manger. Currently the only such value is
the mDNS status.

Add update_mdns() function to DNS plugin interface. If a DNS plugin
supports mDNS, it can set an interface with a given index to support
mDNS resolving or also register the current hostname.

The mDNS support is currently added only to systemd-resolved DNS plugin.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update nm-policy.c and nm-dns-manager.c so that the connection-specific
settings get propagated to DNS manger. Currently the only such value is
the mDNS status.

Add update_mdns() function to DNS plugin interface. If a DNS plugin
supports mDNS, it can set an interface with a given index to support
mDNS resolving or also register the current hostname.

The mDNS support is currently added only to systemd-resolved DNS plugin.
</pre>
</div>
</content>
</entry>
<entry>
<title>core: reorder code in "src/dns/nm-dns-manager.c"</title>
<updated>2018-01-09T13:24:53+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-12-15T12:06:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=3d86429c9d9feb97c197feea450a767d5117cf86'/>
<id>3d86429c9d9feb97c197feea450a767d5117cf86</id>
<content type='text'>
Just moving code around, no other changes.

Follow a certain prefered order of declarations
in source files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just moving code around, no other changes.

Follow a certain prefered order of declarations
in source files.
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: rework write_to_netconfig()</title>
<updated>2017-12-18T14:46:41+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-12-18T14:42:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=41f608dd91f57a419ac61314bf73d97ad3a632b6'/>
<id>41f608dd91f57a419ac61314bf73d97ad3a632b6</id>
<content type='text'>
The compiler warns when we ignore the return value from write().
And assigning it to an unused variable, causes another warning.
Make some use of it, at least to handle EINTR. All other errors
are still ignored.

While at it, rework the write code to first write to a buffer
in memory.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The compiler warns when we ignore the return value from write().
And assigning it to an unused variable, causes another warning.
Make some use of it, at least to handle EINTR. All other errors
are still ignored.

While at it, rework the write code to first write to a buffer
in memory.
</pre>
</div>
</content>
</entry>
</feed>
