b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
27cb34f57458758ee8615d72c6a60a39d4b92226 |
|
26-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd: rename a few Network object properties to be more like the configuration settings
All booleans called dhcp_xyz are now called ".dhcp_use_xyz", to match their respective configuration file settings. This
should clarify things a bit, in particular as there is a DHCP hostname that was previously called just ".hostname"
because ".dhcp_hostname" was already existing as a bool. Since this confusion is removed now because the bool is called
".dhcp_use_hostname", the string field is now renamed to ".dhcp_hostname". |
22805d9207d5242681e5667ee304572e4abf9b94 |
|
20-Jan-2016 |
Beniamino Galvani <bgalvani@redhat.com> |
dhcp: make DHCP_OPTION_* enum public
libsystemd-network provides the public function
sd_dhcp_client_set_request_option() to enable the request of a given
DHCP option. However the enum defining such options is defined in the
internal header dhcp-protocol.h. Move the enum definition to the
public header sd-dhcp-client.h and properly namespace values. |
f8693fc7971942eedb4651a8c82500c227773f62 |
|
20-Jan-2016 |
Beniamino Galvani <bgalvani@redhat.com> |
dhcp: export routes as opaque objects
At the moment sd_dhcp_lease_get_routes() returns an array of structs
which are not defined in public headers. Instead, change the function
to return an array of pointers to opaque sd_dhcp_route objects. |
6a3e5f6a2813e3bd48692a32ac7eb27fd9cd73ee |
|
18-Nov-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: dhcp4 - dirty link when the lease changes
Without this commit, we risk not picking up DNS addresses
as soon as they are available. |
6cf4a01c3630d87e208ef261009c8144796b64a5 |
|
11-Nov-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: dhcp4 - style fixes |
0bc70f1d9c5453ba614ec0ed041dc30b9cd52071 |
|
30-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: link - (de)serialize IPv4LL and DHCPv4 addresses
This initializes the clients to try rebinding the preexisting
addresses before doing anything else. |
86655331bc28887def7998d321b14ef8fccbeaf9 |
|
30-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: route - clean up confusion between 'metric' and 'priority'
Different tools use different terms for the same concept, let's try
to stick with 'priority', as that is what the netlink API uses. |
2ce409569093f7c2c6732246978a901a27f2bce3 |
|
30-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: route - rename fields in struct |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
ed9e361a8a798f9fee353b5c7e0e23308e0d329f |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: route - simplify route_new() |
6666907869fb3bc7fe6a6025540db5b887c7a78b |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - merge _change() into _configure()
These functions are almost entirely the same, so avoid duplication. |
36c32f6120a0c3fe19be5aeaa1926e179e8c29ba |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - factor out address_update()
Call back into link_check_ready() whenever an address state change may have
made a link ready. |
8012cd391932d58b44332df106d426a360faf0a6 |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: link - only consider configured when all addresses are ready
We were considering a link configured whilst its IPv6 addresses were still
tentative.
Fixes issue #650. |
91b5f997316ddc77d26f9a7a5e24c335484586bd |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: make address_{establish,release}() static
No need to expose these functions, but rather call them from address_{add,drop}. |
200a0868fcdf7b95f3d8d1fda3aa2aef48d84fdd |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - process in manager.c rather than link.c |
f0213e3796b4dd66e546e2de4d677db319f9171b |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: route/address - simplify and unify creators
Rename new_dynamic() to simply _new() and reuse that from new_static(). |
0374814250e0ccc4699214422999cb5b35a1afae |
|
22-Sep-2015 |
David Herrmann <dh.herrmann@gmail.com> |
sd-dhcp: fix namespacing
Prefix all constants with SD_DHCP_CLIENT_* to avoid namespacing
conflicts. |
397d15fd397060a19a90969b6aa283965c40fb27 |
|
04-Sep-2015 |
Martin Pitt <martin.pitt@ubuntu.com> |
networkd: adjust error codes for nonexisting DHCP data
Commit 0339cd770 changed libsystemd-network's error code for missing DHCP lease
data from ENOENT to ENODATA. Adjust networkd accordingly.
This fixes interfaces being stuck in "degraded/configuring" mode forever.
https://github.com/systemd/systemd/issues/1147 |
f6b8196f7cf1e366e15597283bc3d13af72a7eb5 |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: port many log messages over to newer logging API
Let's drop some strerror() invocations, and make use of the easier to
use newer logging APIs. |
dce391e78f5d8d5f4feb3eb6a15436de12dacf46 |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: properly reset transient hostname when we lose a DHCP lease
Previously we were setting the transient hostname again, rather than
resetting it. |
21b80ad126c1aa43bd6d0e5a7ed3cc7c0f10efb0 |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: optionally push dhcp timezone into timedated |
39745a5afb24ba0c877122aa1967d58f02c5435f |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: fix indentation |
4b7b5abb785c03cb880e3a8a7a724d7de6e9cf3b |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
dhcp: NTP servers should be requested by networkd but not implicitly by sd-dhcp
The library so far always requested the NTP servers. This might be
unnecessary in some uses, hence let's move the request into networkd
instead. |
8eb9058dc1f99a5eb9b8726a978fcc0720837a10 |
|
26-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
dhcp,network: implement RFC 4833 (DHCP Timezone option)
This one is simply to add: encode the tzdata timezone in the DHCP
options and optionally make use of it. |
e6b18ffaea7d557eec3028a37c043da67a78550c |
|
26-Aug-2015 |
David Herrmann <dh.herrmann@gmail.com> |
sd-dhcp: don't randomly ref objects
In our API design, getter-functions don't ref objects. Calls like
foo_get_bar() will not ref 'bar'. We never do that and there is no real
reason to do it in single threaded APIs. If you need a ref-count, you
better take it yourself *BEFORE* doing anything else on the parent object
(as this might invalidate your pointer).
Right now, sd_dhcp?_get_lease() refs the lease it returns. A lot of
code-paths in systemd do not expect this and thus leak the lease
reference. Fix this by changing the API to not ref returned objects. |
7d6884b65e6ea7317346d29bc2f6c9ba051a0cac |
|
06-Aug-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: fix indentation |
49f6e11e89b46bacf7b26f6da3921abc1c2faa80 |
|
01-Aug-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd: fix neworkd crash
fix issue #827
hostname should be init to NULL. |
a7d0ef446e5f28b37688743de22052abc8136a94 |
|
10-Jul-2015 |
Susant Sahani <susant@redhat.com> |
networkd: DHCP override hostname
This patch enhances the DHCP client to send the hostname
reference
http://lists.freedesktop.org/archives/systemd-devel/2014-July/021550.html
Tested with
Example conf:
[Match]
Name=eth1
[Network]
DHCP=v4
[DHCP]
SendHostname=true
Hostname=test |
1c4baffc1895809bae9ac36b670af90a4cb9cd7d |
|
13-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
sd-netlink: rename from sd-rtnl |
e0ee46f29028e291eb67f435aff1b6202d75d9d6 |
|
09-Jun-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: actually always use AddressFamilyBoolean as the bit mask it is |
958b66ea16deddd794b3a52643bd44633e165ead |
|
18-May-2015 |
Lennart Poettering <lennart@poettering.net> |
util: split all hostname related calls into hostname-util.c |
f2341e0a87cab1558c84c933956e9181d5fb6c52 |
|
11-May-2015 |
Lennart Poettering <lennart@poettering.net> |
core,network: major per-object logging rework
This changes log_unit_info() (and friends) to take a real Unit* object
insted of just a unit name as parameter. The call will now prefix all
logged messages with the unit name, thus allowing the unit name to be
dropped from the various passed romat strings, simplifying invocations
drastically, and unifying log output across messages. Also, UNIT= vs.
USER_UNIT= is now derived from the Manager object attached to the Unit
object, instead of getpid(). This has the benefit of correcting the
field for --test runs.
Also contains a couple of other logging improvements:
- Drops a couple of strerror() invocations in favour of using %m.
- Not only .mount units now warn if a symlinks exist for the mount
point already, .automount units do that too, now.
- A few invocations of log_struct() that didn't actually pass any
additional structured data have been replaced by simpler invocations
of log_unit_info() and friends.
- For structured data a new LOG_UNIT_MESSAGE() macro has been added,
that works like LOG_MESSAGE() but prefixes the message with the unit
name. Similar, there's now LOG_LINK_MESSAGE() and
LOG_NETDEV_MESSAGE().
- For structured data new LOG_UNIT_ID(), LOG_LINK_INTERFACE(),
LOG_NETDEV_INTERFACE() macros have been added that generate the
necessary per object fields. The old log_unit_struct() call has been
removed in favour of these new macros used in raw log_struct()
invocations. In addition to removing one more function call this
allows generated structured log messages that contain two object
fields, as necessary for example for network interfaces that are
joined into another network interface, and whose messages shall be
indexed by both.
- The LOG_ERRNO() macro has been removed, in favour of
log_struct_errno(). The latter has the benefit of ensuring that %m in
format strings is properly resolved to the specified error number.
- A number of logging messages have been converted to use
log_unit_info() instead of log_info()
- The client code in sysv-generator no longer #includes core code from
src/core/.
- log_unit_full_errno() has been removed, log_unit_full() instead takes
an errno now, too.
- log_unit_info(), log_link_info(), log_netdev_info() and friends, now
avoid double evaluation of their parameters |
3e43b2cd97bd82efe6a09e8b9b2e6b5f33f578a0 |
|
04-Mar-2015 |
Jan Janssen <medhefgo@web.de> |
networkd: Make DHCP client ID creation configurable |
cb9fc36a1211967e8c58b0502a26c42552ac8060 |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: introduce an AddressFamilyBoolean enum type
This introduces am AddressFamilyBoolean type that works more or less
like a booleaan, but can optionally turn on/off things for ipv4 and ipv6
independently. THis also ports the DHCP field over to it. |
45af44d47da6933b260c734ad9ff721f63f80a4d |
|
08-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: manager - enumerate addresses globally, rather than per-link
The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once. |
6c861f0aeff9449ee1201bb56f89861921e41c45 |
|
28-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: update logging macros for parameter order, and errno, to match rest of the code |
79008bddf679a5e0900369950eb346c9fa687107 |
|
27-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
log: rearrange log function naming
- Rename log_meta() → log_internal(), to follow naming scheme of most
other log functions that are usually invoked through macros, but never
directly.
- Rename log_info_object() to log_object_info(), simply because the
object should be before any other parameters, to follow OO-style
programming style. |
76253e73f9c9c24fec755e485516f3b55d0707b4 |
|
11-Oct-2014 |
Dan Williams <dcbw@redhat.com> |
sd-dhcp-client: support non-Ethernet hardware addresses
Like Infiniband. See RFC 4390 section 2.1 for details on DHCP
and Infiniband; chaddr is zeroed, hlen is set to 0, and htype
is set to ARPHRD_INFINIBAND because IB hardware addresses
are 20 bytes in length. |
f414a269b378d526b8b26c5b52743360b43965ce |
|
17-Sep-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: dhcp4 - fix unchecked return value
Found by coverity. CID #1237529 and #1237528. |
84b5b79a8f7b423c5b7cad4170eb68d57fe5e26c |
|
08-Sep-2014 |
Angus Gibson <angus@agibson.me> |
networkd: allow specification of DHCP route metric
This lets the routing metric for links to be specified per-network,
still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully
this helps with multiple interfaces configured via DHCP. |
46b0c76e2c355c0d0cc4792abb98cde07b28bc53 |
|
08-Sep-2014 |
Emil Renner Berthing <systemd@esmil.dk> |
networkd: add preferred source to dhcp4 gateway route
This makes DHCPv4 and IPv4LL coexist peacefully.
[tomegun: apply to both the dhcp routes, use in_addr_is_null() rather than a
separate variable to indicate when prefsrc should be applied] |
38de08a7e476bb78b02fa5480ca3d038eedd66e7 |
|
12-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: dhcp4 - fix copy-paste error
Reported by poma. |
3c9b886068d99e5d3cbabcac32a4decf37244c54 |
|
12-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: link - split out dhcp4 handling |