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. |
4afd3348c7506dd1d36305b7bcb9feb8952b9d6b |
|
27-Nov-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy
GLIB has recently started to officially support the gcc cleanup
attribute in its public API, hence let's do the same for our APIs.
With this patch we'll define an xyz_unrefp() call for each public
xyz_unref() call, to make it easy to use inside a
__attribute__((cleanup())) expression. Then, all code is ported over to
make use of this.
The new calls are also documented in the man pages, with examples how to
use them (well, I only added docs where the _unref() call itself already
had docs, and the examples, only cover sd_bus_unrefp() and
sd_event_unrefp()).
This also renames sd_lldp_free() to sd_lldp_unref(), since that's how we
tend to call our destructors these days.
Note that this defines no public macro that wraps gcc's attribute and
makes it easier to use. While I think it's our duty in the library to
make our stuff easy to use, I figure it's not our duty to make gcc's own
features easy to use on its own. Most likely, client code which wants to
make use of this should define its own:
#define _cleanup_(function) __attribute__((cleanup(function)))
Or similar, to make the gcc feature easier to use.
Making this logic public has the benefit that we can remove three header
files whose only purpose was to define these functions internally.
See #2008. |
c601ebf79f0c54be14d3c16f0f484c0335cdeec4 |
|
17-Nov-2015 |
Tom Gundersen <teg@jklm.no> |
sd-dhcp6-client: bind to link-local address
This ensures that several DHCPv6 clients can run on separate interfaces
simultaneously. |
e7ab854c6cff0d7330d4ddf2d89bf431ca9a0939 |
|
11-Nov-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: link - track state of IPv6LL address
This is managed by the kernel, but we should track whether or not we have
a configured IPv6LL address. This fixes two issues:
- we now wait for IPv6LL before considering the link ready
- we now wait for IPv6LL before attempting to do NDisc or DHCPv6
these protocols relies on an LL address being available. |
63bbe5c767a39ee4d6acaadc5e643d6d3556d9cd |
|
11-Nov-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - drop the 'added' flag
Instead instantiate the kernel flags to TENTATIVE until the kernel
updates us with the real value. |
c4a03a5669af8abd752bff9084c29683ae78e11e |
|
30-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: link - deserialize
For now only deserialize some basic state and the applied addresses.
When a link is added, try to deserialize it's state from /run. This
is relevant only when networkd is restarted at runtime. |
cab974b035c24a87f9a8cf152ea415b0c14404b7 |
|
30-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - properly take over a foreign address |
a3a019e125ff2ab38505579eaddce08874e270aa |
|
30-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - update link operstate when address is updated
The operstate may change based on address properties, so make a change of
address trigger an operstate update. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
6bedfcbb2970e06a4d3280c8fb62083d252ede73 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
84de38c56915e14c148f558c6acc489a00755696 |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: manager/link - only serialize once per event-loop iteration
Every time the state is written out we may trigger third-party apps, so
let's be a bit more careful about writing this out unnecessarily. |
e7780c8d44ee32ecf6127f45c0188483c041e2e5 |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: link - serialize addresses |
adda1ed94a04742ddacdc76dfa311816e1ed9f68 |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - distinguish between addresses added by us and by others
We only keep the addresses that we added ourselves in link->addresses, and
introduce a new set link->addresses_foreign to keep addresses of unknown
origin.
Only functional change is that "foreign" addresses no longer prevent a link
from entering "configured" state. |
fcf50cff129c1b0c6c415428e659da40c3053e6e |
|
21-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - rework firewall rules lifetime
Establish the firewall rule before creating the address, and do not create the address
if the firewall rule could not be created. Also, only drop the firewall rule once
the address has been removed from the kernel. |
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. |
ce6c77ebf12f80c807ad7589a1fb565fabc6a543 |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - introduce address_is_ready()
Checks that a given address is not tentative nor deprecated. |
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}. |
054f0db48775d566e4f55feb7cda0f721a9eb485 |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: manager - avoid unnecessary memory allocation
Don't allocate Address objects only to free them again when processing
rtnl events. |
cf1d700da3fe04cd4c27980a292301694be3b05f |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - store active addresses in a Set rather than a List
We need to be able to look these things up quickly as we will be updating them
continuously and there can in principle be many of them. |
3ac8e5433f20bfb5e12b918252643106a2de52af |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: address - add hash helpers for Address objects
Add compare_func and hash_func for the Address object. The notion of
address equality is the same as in the kernel, and hashing preserves
preserves equality.
Two addresses are considered equal if:
- they have the same address family, and
- they are neither IPv4 nor IPv6 addresses, or
- the local addresses are identical, and
- they are IPv6 addresses, or
- they have the same prefixlength, and
- their peer prefixes are identical
This fixes a bug in the old equality check, which got the local address
and the peer prefix mixed up. |
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(). |
12ca818ffddb77eb6a0fabe369a5bcbf6994ff8b |
|
30-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: clean up log_syntax() usage
- Rely everywhere that we use abs() on the error code passed in anyway,
thus don't need to explicitly negate what we pass in
- Never attach synthetic error number information to log messages. Only
log about errors we *receive* with the error number we got there,
don't log any synthetic error, that don#t even propagate, but just eat
up.
- Be more careful with attaching exactly the error we get, instead of
errno or unrelated errors randomly.
- Fix one occasion where the error number and line number got swapped.
- Make sure we never tape over OOM issues, or inability to resolve
specifiers |
fc2f9534d07db2b185c02b1961428b53daf1986e |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: split up networkd.h into per-object header files
No functional changes, just moving definitions into separate header
files. |
12c2884c552de25bc9c6155cafff619f6c1766b3 |
|
15-Jun-2015 |
Daniel Mack <daniel@zonque.org> |
firewall: rename fw-util.[ch] → firewall-util.[ch]
The names fw-util.[ch] are too ambiguous, better rename the files to
firewall-util.[ch]. Also rename the test accordingly. |
1c4baffc1895809bae9ac36b670af90a4cb9cd7d |
|
13-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
sd-netlink: rename from sd-rtnl |
be3a09b7ffe62b52658e77ae4d6638d1b0dae654 |
|
04-May-2015 |
Patrik Flykt <patrik.flykt@linux.intel.com> |
network: Implement fallback DHCPv6 prefix handling for older kernels
When setting IPv6 addresses acquired by DHCPv6, systemd-networkd sets
the IFA_F_NOPREFIXROUTE flag in the IFA_FLAGS netlink attribute. As
the flag and the attribute are present starting with Linux 3.14, older
kernels will need systemd-network to manage prefix route expiry.
By default, DHCPv6 addresses are first assigned setting the
IFA_F_NOPREFIXROUTE flag in the IFA_FLAGS netlink attribute. Should
the address assignment fail, the same assignment is tried without
the IFA_FLAGS attribute. Should also the second attempt fail, an error
is printed and address assignment ends with failure. As successful use
of the IFA_FLAGS netlink attribute is recorded in the Link structure,
the DHCPv6 code will know if the kernel or systemd-network fallback
code handles expiring prefixes.
The prefix expiration and IPv6 address updating fallback code is
resurrected from the parts deleted with commit
47d45d3cde45d6545367570264e4e3636bc9e345.
This patch can be removed once the minimum kernel requirements are
greater than or equal to 3.14. |
6a7a4e4d0a057febab787a2d5d3e0b52d2db2268 |
|
21-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: improve how networkd logs things
This makes adds a couple of fixes:
- Introduces log_netdev_error_errno() and friends, which takes an error
number, and matches what log_link_error_errno() and friends do.
- Replaces a lof ot strerror() usage with log_netdev_error_errno(),
log_link_error_errno() and log_erro_errno()
- Uppercases the first character of many log messages, after all this is
supposed to be english language
- Drops manual negating of error codes before passing them to log
functions, the log functions all do that internally anyway.
Some other minor fixes.
Behaviour should not change really. |
851c9f82736c89d423b244a292e153ec7124d309 |
|
27-Mar-2015 |
Patrik Flykt <patrik.flykt@linux.intel.com> |
systemd-networkd: Use IFA_F_NOPREFIXROUTE with IPv6 addresses
The IFA_F_NOPREFIXROUTE flag prevents the kernel from creating new onlink
prefixes when a DHCPv6 IPv6 address with a prefix length is set from user
space. IPv6 routing will follow the onlink status from Router Advertisment
Prefix Information options or any manually set route, which is the correct
thing to do.
As this flag has a larger value than what fits into an unsigned char, update
the flag attribute to an uint32_t and set it with an IFA_FLAGS attribute
when writing netlink messages to the kernel. |
2eec67acbb00593e414549a7e5b35eb7dd776b1b |
|
23-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use. |
6cb8e687f038424ef54b5c5c3c433be974fbe371 |
|
03-Feb-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
network-address,test-network: avoid undefined behaviour |
fd6d906cf46ecef45ebbb5a361e1dc436f031d7a |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: rename misnamed boolean |
5a8bcb674f71a20e95df55319b34c556638378ce |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: add minimal IP forwarding and masquerading support to .network files
This adds two new settings to networkd's .network files:
IPForwarding=yes and IPMasquerade=yes. The former controls the
"forwarding" sysctl setting of the interface, thus controlling whether
IP forwarding shall be enabled on the specific interface. The latter
controls whether a firewall rule shall be installed that exposes traffic
coming from the interface as coming from the local host to all other
interfaces.
This also enables both options by default for container network
interfaces, thus making "systemd-nspawn --network-veth" have network
connectivity out of the box. |
1e39ff926f815d241721ed9486945cf599ef8c2f |
|
12-Jan-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
network: apply static addresses in specified order
https://bugs.freedesktop.org/show_bug.cgi?id=83270 |
d076c6f9e486587d634d59082d2a13b9cbb4aef3 |
|
11-Dec-2014 |
Torstein Husebø <torstein@huseboe.net> |
networkd/resolved: correct spacing near eol in code comments |
eb56eb9b40950f1edcffdb7313f8de4f8572a6d5 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: simplify log_*_errno(r,...) immediately followed by "return r" |
c33b329709ebe2755181980a050d02ec7c81ed87 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: more log_*_errno() conversions, multiline calls
Basically:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/log_(debug|info|notice|warning|error|emergency)\("([^"]*)%s"([^;]*),\s*strerror\(-?([->a-zA-Z_]+)\)\);/log_\1_errno(\4, "\2%m"\3);/gms;print;' \
$f; done
Plus manual indentation fixups. |
da927ba997d68401563b927f92e6e40e021a8e5c |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values. |
0a1beeb64207eaa88ab9236787b1cbc2f704ae14 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: auto-convert the simple cases to log_*_errno()
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno(). |
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. |
a2a85a22b3c82386633ab898012c4b249706d535 |
|
27-Oct-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: network - if no prefixlength is given, try to deduce one from the address class
In case of a class E or F address, ignore the address. |
0b1831c20c4d30077b6560b2b7d88bdb220d5cef |
|
12-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: split out networkd-link.h |
44e7b9492617408130d11ffa451c2660942974f6 |
|
11-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: monopolize in_addr utility functions in shared/in-addr-util.h
Primarily, this means we get rid of net_parse_inaddr(), and replace it
everywhere with in_addr_from_string() and in_addr_from_string_auto().
These functions do not clobber the callers arguments on failure, which
is more close to our usual coding style. |
af93291cc4cbd2fe2fb4af7d3c56138fb39f31dc |
|
30-Jul-2014 |
Lennart Poettering <lennart@poettering.net> |
resolved: when answer A or AAAA questions, order responses by whether addresses are link-local or not |
16aa63a00b5b1db23a9c0b8de350ebf482d90cd0 |
|
28-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: route/address - use trivial hash functions |
b0e39c8284b5195850a58e4efcce2f059bdcc6ad |
|
23-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: merge DNS and NTP entries when exporting
In the state files, do not distinguish where the various entries came from
(static or DHCP), but include them all in the same list. |
c081882f07617e56bcbce54105068137e4e0bb52 |
|
07-Jul-2014 |
Susant Sahani <susant@redhat.com> |
networkd: add support for peer address
This patch adds peer address support for
networkd . In the [Address] a new configurable
param is Peer.
[Match]
Name=ipip-tun
[Address]
Address=10.0.0.1/32
Peer=10.0.0.2/32 |
563c69c6b2c2bd691352ef522cb9ec95c08a0c63 |
|
03-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - take ref immediately after calling out
Keeping the refcounting next to the sd_bus_call_async() makes it easier to check. |
0099bc15f14932c1d6e2bea4fc240038e45871dc |
|
01-Jul-2014 |
Susant Sahani <susant@redhat.com> |
networkd: address_acquire use cleanup macro
use cleanup macro for Address na
[tomegun: dropped unneccessary braces] |
68ceb9df6a39a7f86ffc3cf8266ca677a5d5271b |
|
29-Jun-2014 |
Patrik Flykt <Patrik.Flykt@linux.intel.com> |
sd-dhcp-client/networkd: set lifetimes for IPv4 addresses
Note that /proc/sys/net/ipv4/ip_dynaddr needs to be non-zero.
[tomegun: hook up DHCP renew events to increase the lifetime when necessary] |
11bf3cced13c885ca215c108cb0bdb7a148520d6 |
|
18-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: add address pool support
When an address is configured to be all zeroes, networkd will now
automatically find a locally unused network of the right size from a
list of pre-configured pools. Currently those pools are 10.0.0.0/8,
172.16.0.0/12, 192.168.0.0/16 and fc00::/7, i.e. the network ranges for
private networks. They are compiled in, but should be configurable
eventually.
This allows applying the same configuration to a large number of
interfaces with each time a different IP range block, and management of
these IP ranges is fully automatic.
When allocating an address range from the pool it is made sure the range
is not used otherwise. |
bcb7a07e0a785bda1eed658e984ff6b4a11cba9a |
|
19-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd/sd-network: expose statically configured NTP servers |
9505d3c6deda0452c22ab2ed47bca74b98d87a17 |
|
17-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: IP address equality |
d4920165fe753751aaa274fdc568927d26284eea |
|
16-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: network - store DNS servers in List rather than Set
This way we preserve the order of preference. |
3d3d425547a3f38473fcf8737b85dfebb630479d |
|
16-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: rename Address and Route list fields |
aba496a58acf9d9c61314de71353550e579f85ee |
|
03-Apr-2014 |
Umut Tezduyar Lindskog <umut.tezduyar@axis.com> |
networkd: smooth transition from ipv4ll to dhcp address
Currently when both ipv4ll and dhcp are enabled, ipv4ll
address (if one has been claimed) is removed when dhcp
address is aquired. This is not the best thing to do
since there might be clients unaware of the removal
trying to communicate.
This patch provides a smooth transition between ipv4ll
and dhcp. If ipv4ll address was claimed [1] before dhcp,
address is marked as deprecated. Deprecated address is still
a valid address and packets can be received on it but address
cannot be selected as a source address. If dhcp lease cannot
be extended, then ipv4ll address is marked as valid again.
[1] If there is no collision, claiming IPv4LL takes between 4 to
7 seconds. |
c6f7c917a1b494d4455800823472227463f87438 |
|
21-Mar-2014 |
Tom Gundersen <teg@jklm.no> |
libsystemd-network: move network-utils from src/shared
This does not belong in shared as it is mostly a detail of our networking subsystem.
Moreover, now we can use libudev here, which will simplify things. |
06f021a8048583d66202e3ac5cd0a12386d33ac2 |
|
14-Mar-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: allow more than one static DNS server |
5c1d3fc93d91384bbac29adf01074fa4375317ea |
|
03-Mar-2014 |
Umut Tezduyar Lindskog <umut.tezduyar@axis.com> |
sd-network: IPv4 link-local support [v2]
Implements IPv4LL with respect to RFC 3927
(http://tools.ietf.org/rfc/rfc3927.txt) and integrates it
with networkd. Majority of the IPv4LL state machine is
taken from avahi (http://avahi.org/) project's autoip.
IPv4LL can be enabled by IPv4LL=yes under [Network]
section of .network file.
IPv4LL works independent of DHCP but if DHCP lease is
aquired, then LL address will be dropped.
[tomegun: removed a trailing newline and a compiler warning] |
151b9b9662a90455262ce575a8a8ae74bf4ff336 |
|
20-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
api: in constructor function calls, always put the returned object pointer first (or second)
Previously the returned object of constructor functions where sometimes
returned as last, sometimes as first and sometimes as second parameter.
Let's clean this up a bit. Here are the new rules:
1. The object the new object is derived from is put first, if there is any
2. The object we are creating will be returned in the next arguments
3. This is followed by any additional arguments
Rationale:
For functions that operate on an object we always put that object first.
Constructors should probably not be too different in this regard. Also,
if the additional parameters might want to use varargs which suggests to
put them last.
Note that this new scheme only applies to constructor functions, not to
all other functions. We do give a lot of freedom for those.
Note that this commit only changes the order of the new functions we
added, for old ones we accept the wrong order and leave it like that. |
482e2ac193be708d183bdf2d893eb72435eb1d28 |
|
18-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
man: minor fixes to networkd page
Also enforce that we don't allow setting the Broadcast for IPv6 addresses. |
4fb7242cbbed0d865eb343548b8f0ee0fee71d85 |
|
18-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
sd-rtnl-message: store reference to the bus in the message
This mimics the sd-bus api, as we may need it in the future. |
d595c5cc9e894c3608ed634052b0ba93aa94bf2f |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
rtnl: rename constructors from the form sd_rtnl_xxx_yyy_new() to sd_rtnl_xxx_new_yyy()
So far we followed the rule to always indicate the "flavour" of
constructors after the "_new_" or "_open_" in the function name, so
let's keep things in sync here for rtnl and do the same. |
cf6a8911738fe2635a5210769d5348b05b166691 |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
rtnl: drop "sd_" prefix from cleanup macros
The "sd_" prefix is supposed to be used on exported symbols only, and
not in the middle of names. Let's drop it from the cleanup macros hence,
to make things simpler.
The bus cleanup macros don't carry the "sd_" either, so this brings the
APIs a bit nearer. |
eb0ea358b688a6f83ff305c6b825c61f12b6dcb8 |
|
30-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: address - add support for broadcast |
801bd9e859d7f3f127617172910786929776472b |
|
30-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
net-util: verify the address family
Error out if the address family is already set to something incompatible with the
address being parsed. |
5a72317435a39f23520b42731e53bd13d20f489e |
|
22-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
sd-rtnl: simplify sd_rtnl_message_addr_new()
Split out into sd_rtnl_message_addr_set_{prefixlen,flags,scope}(). |
3bef724f7e7f7eaca69881548b06e221b77d7031 |
|
12-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: generate resolv.conf
This adds support to generate a basic resolv.conf in /run/systemd/network.
This file will not take any effect unless a symlink is created from
/etc/resolv.conf.
Nameservers received over DHCP takes precedence over statically configured ones.
Note: /etc/resolv.conf is severely limited, so in the future we will likely
rather provide a much more powerfull nss plugin (or something to that effect),
but this should allow current users to function without any loss of
functionality. |
f048a16b464295a4e0a4f4c1210f06343ad31231 |
|
01-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: distinguish between static and dynamic addresses/routes
Static addresses/routes are associated with a network. Dynamic
addresses/routes are associtade with links (as the corresponding network
may be shared by several links). |
407fe036a24834203aca6c1eec7d74d9ad3e9ee0 |
|
01-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
network: add support for dropping address |
0a0dc69b655cfb10cab39133f5d521e7b35ce3d5 |
|
16-Dec-2013 |
Tom Gundersen <teg@jklm.no> |
rtnl: replace message_append by typesafe versions |
92fe133abf2de889659464ae8affd1db1710f72e |
|
28-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: fix several Address entries in [Network] section |
c166a070553511e402de5ad216d3fb62b49bdacb |
|
26-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: minor fixes
In particular, store the ifname, though we should only use it carefully, as
it is not guaranteed to be stable. Using it for logging is fine though. |
26fefda707e6511733f48da03b281a004dba6abf |
|
25-Nov-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
delete unused variables |
6ae115c1fe95611b39d2f20cfcea3d385429f59e |
|
25-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: add support for [Address] sections
This will allow specifying more options per address than the
simple Address= entry in the [Network] section.
Preliminary support for the same functionality for [Route] sections
are added, but not yet hooked up, as more testing is needed. |
71a6151083d842b2f5bf04e50239f0bf85d34d2e |
|
25-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
conf-parser: distinguish between multiple sections with the same name
Pass on the line on which a section was decleared to the parsers, so they
can distinguish between multiple sections (if they chose to). Currently
no parsers take advantage of this, but a follow-up patch will do that
to distinguish
[Address]
Address=192.168.0.1/24
Label=one
[Address]
Address=192.168.0.2/24
Label=two
from
[Address]
Address=192.168.0.1/24
Label=one
Address=192.168.0.2/24
Label=two |
f882c247ad59776c3a7753bb963c1f8e2386cb79 |
|
17-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: make all calls async |
8cd11a0f0f4ca05199e1166f6a07472b296f7455 |
|
17-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: store netmask and mac address explicitly |
fe4824e065765f4536c84916694bb050c4a5d0af |
|
13-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
rtnl: rename rtnl_bus_send_with_reply_and_block() to rtnl_bus_call()
Follow the equivalent rename in sd-bus to stay as similar as possible. |
f579559b3a14c1f1ef96c372e7626c4733e6ef7d |
|
09-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: add a basic network daemon
This daemon listens for and configures network devices tagged with
'systemd-networkd'. By default, no devices are tagged so this daemon
can safely run in parallel with existing network daemons/scripts.
Networks are configured in /etc/systemd/network/*.network. The first .network
file that matches a given link is applied. The matching logic is similar to
the one for .link files, but additionally supports matching on interface name.
The mid-term aim is to provide an alternative to ad-hoc scripts currently used
in initrd's and for wired setups that don't change much (e.g., as seen on
servers/and some embedded systems).
Currently, static addresses and a gateway can be configured.
Example .network file:
[Match]
Name=wlp2s0
[Network]
Description=My Network
Gateway=192.168.1.1
Address=192.168.1.23/24
Address=fe80::9aee:94ff:fe3f:c618/64 |