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. |
b2a81c0b524fee0a1713720462b6db5c302c3933 |
|
26-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd: optinally use DHCP lease domain info for routing only
This changes the UseDomains= setting of .network files to take an optional third value "route", in addition to the
boolean values. If set, the passed domain information is used for routing rules only, but not for the search path
logic. |
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". |
3df9bec57c3e2d96f7e2a25961585cfa609b61eb |
|
26-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd: rework Domains= setting
Previously, .network files only knew a vaguely defined "Domains=" concept, for which the documentation declared it was
the "DNS domain" for the network connection, without specifying what that means.
With this the Domains setting is reworked, so that there are now "routing" domains and "search" domains. The former are
to be used by resolved to route DNS request to specific network interfaces, the latter is to be used for searching
single-label hostnames with (in addition to being used for routing). Both settings are configured in the "Domains="
setting. Normal domain names listed in it are now considered search domains (for compatibility with existing setups),
while those prefixed with "~" are considered routing domains only. To route all lookups to a specific interface the
routing domain "." may be used, referring to the root domain. An alternative syntax for this is the "*", as was already
implemented before using the "wildcard" domain concept.
This commit adds proper parsers for this new logic, and exposes this via the sd-network API. This information is not
used by resolved yet, this will be added in a later commit. |
8a516214c4412e8a40544bd725a6d499a30cbbbf |
|
06-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
resolved: introduce support for per-interface negative trust anchors |
ad6c04756115809d615dede330213d73edf732a8 |
|
05-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
resolved,networkd: add a per-interface DNSSEC setting
This adds a DNSSEC= setting to .network files, and makes resolved honour
them. |
aaa297d4e5401fd4466632555432774863457f1d |
|
05-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd,resolved: add a per-interface mdns configuration option |
b69c318040acaefdd02a710998676312d764040b |
|
10-Nov-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd: Add support to configure IPV6 hop limit
This patch adds support to configure IPV6 hop limit.
For example:
/proc/sys/net/ipv6/conf/wlp3s0/hop_limit |
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. |
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] |
8b43440b7ef4b81c69c31de7ff820dc07a780254 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move string table stuff into its own string-table.[ch] |
8fcde01280adcbd07e8205b91ac52b06305b6208 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split stat()/statfs()/stavfs() related calls into stat-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] |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
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. |
8749cbcd4fe989709c6e680c4a141e34496e74d9 |
|
16-Oct-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd: add support for configure IPv6 DAD
Configures Ipv6 Duplicate Address Detection.
10 |
a2fae7bbb21bdcc9d0a2094b7fd6b364ffbaae86 |
|
11-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: link/network - correctly align log messages |
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 |
4f2e437ad7b04bc0690d1f8202577cbf47acb215 |
|
12-Sep-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd:add support to configure ipv6 acceprt ra
This patch support to configure the ipv6 acceprt ra option.
for more information see
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/proc-sys-net-ipv6..html |
64d6c22905e94b02e760747c6c143dc9893083d9 |
|
01-Sep-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: do not shadow the global var timezone |
539f2a73815136cb614e401fbf7807f1ff871d24 |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: emit DNS/NTP/Timezone info via DHCP server by default
If we have the data, emit it by default. |
1a04db0fc9d08fffe80d6d7b5b60459295922b11 |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
dhcp,network: support emitting DNS/NTP server information from DHCP server
For now, this is very simple and IP addresses have to be configured
manually. |
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. |
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. |
1ac608c9ccb6b69a6bc8a458e10a05e0fc9a8301 |
|
26-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: don't leak memory of Hostname= is used twice in a .network file
Also, we should only accept trailing dots where we have to, but not
everywhere, hence be more strict when validating configured hostnames. |
a7e5da6e33de9ad9b5bc594fdc74e3e4098a5751 |
|
25-Aug-2015 |
Daniel Mack <daniel@zonque.org> |
sd-network: make LLMNR specific config parser generic
Rename the enum, the lookup functions and the parser for LLMNRSupport so
the type can be reused for mDNS. |
ae691c1d9382995ea7e28317f5c37023229c27ee |
|
06-Aug-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
hostname-util: get rid of unused parameter of hostname_cleanup()
All users are now setting lowercase=false. |
79f17ea6f8d885da063f50d966891adaee236b26 |
|
06-Aug-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: allow trailing dot on fqdn in config file |
8fb494435889dcb9e1c09b8c7220e47bab717bf9 |
|
06-Aug-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
hostname-util: add relax parameter to hostname_is_valid
Tests are modified to check behaviour with relax and without relax.
New tests are added for hostname_cleanup().
Tests are moved a new file (test-hostname-util) because there's
now a bunch of them.
New parameter is not used anywhere, except in tests, so there should
be no observable change. |
f33ff02b1aca5272ec678d3f4a211b4337882348 |
|
27-Jul-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd: add support for macvtap
This patch add support for macvtap.
see http://virt.kernelnewbies.org/MacVTap |
23da66bb402cc6d9bca2eb34e090ccc24dfbf3f5 |
|
25-Jul-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: rename RootBlock to AllowPortToBeRoot
Justification is similar to BPDUGuard rename. "Positive" values
are easier. This is a rather uncommon option, so using a slightly
longer name should not be a problem, and may in fact may make it
easier to guess what the option does without reading the
documentation. |
072f9e4af4cf465aca6e263f4dfd6e07786786d2 |
|
25-Jul-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: turn UnicastFlood on by default
Looking at the kernel commit, "on" seems to be the default value:
commit 867a59436fc35593ae0e0efcd56cc6d2f8506586
Author: Vlad Yasevich <vyasevic@redhat.com>
Date: Wed Jun 5 10:08:01 2013 -0400
bridge: Add a flag to control unicast packet flood.
Add a flag to control flood of unicast traffic. By default, flood is
on and the bridge will flood unicast traffic if it doesn't know
the destination. When the flag is turned off, unicast traffic
without an FDB will not be forwarded to the specified port.
... and it seems to be the reasonable thing to do by default. |
84c3409631f48869dcb59c0a74eba6d4ac40ad93 |
|
25-Jul-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: rename BPDUGuard to UseBPDU
Rename to follow the follow the style of other options.
In general "positive" options are preferred to "negative" ones,
because they are easier to describe and easier for humans to
parse (c.f. the shortening on the man page entry). |
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 |
1f0d9695125bf8e66d0e53e37d454755a84899bb |
|
06-Jul-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: various fixes for the IPv6 privacy extensions support
- Make sure that the IPv6PrivacyExtensions=yes results in
prefer-temporary, not prefer-public.
- Introduce special enum value "kernel" to leave setting unset, similar
how we have it for the IP forwarding settings.
- Bring the enum values in sync with the the strings we parse for them,
to the level this makes sense (specifically, rename "disabled" to
"no", and "prefer-temporary" to "yes").
- Make sure we really set the value to to "no" by default, the way it is
already documented in the man page.
- Fix whitespace error.
- Make sure link_ipv6_privacy_extensions() actually returns the correct
enum type, rather than implicitly casting it to "bool".
- properly size formatting buffer for ipv6 sysctl value
- Don't complain if /proc/sys isn't writable
- Document that the enum follows the kernel's own values (0 = off, 1 =
prefer-public, 2 = prefer-temporary)
- Drop redundant negating of error code passed to log_syntax()
- Manpage fixes
This fixes a number of issues from PR #417 |
49092e22c2893118304bac1b3b706cd88f90590d |
|
05-Jul-2015 |
Susant Sahani <susant@redhat.com> |
networkd: Add support for ipv6 privacy extension
This patch add support for ipv6 privacy extensions.
The variable /proc/sys/net/ipv6/conf/<if>/use_tempaddr
can be changed via the boolean
IPv6PrivacyExtensions=[yes/no/prefer-temporary]
When true enables privacy extensions, but prefer public addresses over
temporary addresses.
prefer-temporary prefers temporary adresses over public addresses.
Defaults to false.
[Match]
Name=enp0s25
[Network]
IPv6PrivacyExtensions=prefer-temporary |
8add5f79709f323f1b077dde8a4a1aa7f560886f |
|
11-Jun-2015 |
Nick Owens <nick.owens@coreos.com> |
networkd: create "kernel" setting for IPForwarding
In 5a8bcb674f71a20e95df55319b34c556638378ce, IPForwarding was introduced
to set forwarding flags on interfaces in .network files. networkd sets
forwarding options regardless of the previous setting, even if it was
set by e.g. sysctl. This commit creates a new option for IPForwarding,
"kernel", that preserves the sysctl settings rather than always setting
them.
See https://bugs.freedesktop.org/show_bug.cgi?id=89509 for the initial
bug report. |
37de250906222211d2bf1755c41191a06d2126dd |
|
10-Jun-2015 |
Nick Owens <nick.owens@coreos.com> |
libsystemd-network: use domain validation instead of hostname validation for dhcp domain option
previously hostname_is_valid was used to validate domain names, which
would silently drop perfectly valid dns names that were longer than a
single dns label. |
958b66ea16deddd794b3a52643bd44633e165ead |
|
18-May-2015 |
Lennart Poettering <lennart@poettering.net> |
util: split all hostname related calls into hostname-util.c |
24c083dfcbff3d1dd86a22cba7555a9ae6d8a53d |
|
12-May-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: network_get - allow udev_device to be NULL
In containers we never have udev devices, so drop the assert.
This fixes an assertion introduced in af3aa302741b6edb0729925febb5f8bc26721fe3. |
9011ce771f149ba45e8ffdb2ae4f0950cdbc6b8b |
|
29-Apr-2015 |
Susant Sahani <susant@redhat.com> |
networkd: introduce vti6 tunnel
This patch add support to create vti6 tunnel
test:
vt6.network
[Match]
Name=wlan0
[Network]
Tunnel=ip6vti
vti6.netdev
[NetDev]
Name=ip6vti
Kind=vti6
[Tunnel]
Local=2a00:ffde:4567:edde::4987
Remote=2001:473:fece:cafe::5179
ip link
11: ip6_vti0@NONE: <NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT
group default
link/tunnel6 :: brd ::
12: ip6vti@wlan0: <POINTOPOINT,NOARP> mtu 1500 qdisc noop state DOWN
mode DEFAULT group default
link/tunnel6 2a00:ffde:4567:edde::4987 peer 2001:473:fece:cafe::5179 |
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. |
af3aa302741b6edb0729925febb5f8bc26721fe3 |
|
27-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
network: don't pass NULL to udev_device_get_driver() |
dc75168823540076b354135f6e2de7a9a978fbca |
|
14-Mar-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Use space after a silencing (void)
We were using a space more often than not, and this way is
codified in CODING_STYLE. |
3e43b2cd97bd82efe6a09e8b9b2e6b5f33f578a0 |
|
04-Mar-2015 |
Jan Janssen <medhefgo@web.de> |
networkd: Make DHCP client ID creation configurable |
0d4ad91dd4fc831c31a9775b0eadf97fea6cd7f6 |
|
27-Feb-2015 |
Alin Rauta <alin.rauta@intel.com> |
networkd: add support for Uplink Failure Detection
Introduce BindCarrier= to indicate the set of links that determine if
the current link should be brought UP or DOWN.
[tomegun: add a bit to commit message] |
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. |
60c35566600f45350c37f152c1093018972bd9a5 |
|
14-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: network - rename ipv6token parser
Too generic name. |
5256e00e8b9015dd1a976d647fc71dc7efbd8cf8 |
|
10-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
net: support globbing and disjunction in Match logic
Match{Name,OrginalName,Type,Driver,Path} can now take a space-separated glob of matches. |
e2acdb6b0f68d9b4152708a9f21bf9e11f8b9e7e |
|
09-Feb-2015 |
Torstein Husebø <torstein@huseboe.net> |
treewide: correct typos and use consistent "MAC" spelling |
7f77697a1744f8df2089848b9d718faf7ba6c665 |
|
09-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: add support for IPv6 tokens
This allows the admin to set the host-specific part of IPv6 addresses, but still
receive the prefix via SLAAC.
.network file snippet:
[Network]
IPv6Token=::12
gives:
$ ip token
token ::12 dev eth0
This closes https://bugs.freedesktop.org/show_bug.cgi?id=81177. |
d0d6a4cd70477970812bff0a37e70f66208d7c14 |
|
09-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: generalize IPv4LL to LinkLocal
This allows both IPv4 and IPv6 link-local addresses to be enabled or disabled. By default
we still enable IPv6LL and disable IPv4LL. The old config option is kept for backwards
compatibility, but removed from the documentation. |
dbffab87f1504abc9f189dd253111693c99fbd9a |
|
08-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: add network_get_by_name |
b16492f86f13abd4a9447afd0910139af9656906 |
|
22-Jan-2015 |
Susant Sahani <susant@redhat.com> |
networkd: Introduce ip6gre and ip6gretap
This patch introduces ipv6 gre and gretap.
test:
ip6gre.netdev:
[NetDev]
Name=ip6gretap
Kind=ip6gretap
[Tunnel]
Local=2a00:ffde:4567:edde::4987
Remote=2001:473:fece:cafe::5179
ip6gre.network:
[Match]
Name=eno16777736
[Network]
Tunnel=ip6gretap
ip link
6: ip6gre@eno16777736: <POINTOPOINT,NOARP> mtu 1448 qdisc noop state
DOWN mode DEFAULT group default
link/gre6 2a:00:ff:de:45:67:ed:de:00:00:00:00:00:00:49:87 peer
20:01:04:73:fe:ce:ca:fe:00:00:00:00:00:00:51:79 |
855ee1a1d272b599410212b40768a9c71f260e37 |
|
22-Jan-2015 |
Susant Sahani <susant@redhat.com> |
networkd: Introduce IP6 tunnel
This patch enables networkd to create IP6 tunnels
example conf:
ipip6.netdev:
[NetDev]
Name=ipip6-tunnel
Kind=ip6tnl
[Tunnel]
Mode=ip4ipv6
Local=2a00:ffde:4567:edde::4987
Remote=2001:473:fece:cafe::5179
ipip6.network
[Match]
Name=wlan0
[Network]
Tunnel=ipip6-tunnel
23: ipip6-tunnel@wlan0: <POINTOPOINT,NOARP> mtu 1452 qdisc noop state
DOWN mode DEFAULT group default
link/tunnel6 2a00:ffde:4567:edde::4987 peer 2001:473:fece:cafe::5179 |
1af2536acf8aecc3eb940d04268a419c956ee10a |
|
22-Jan-2015 |
Susant Sahani <susant@redhat.com> |
networkd: introduce gretap
This patch introdeces gretap to networkd |
c4a5ddc9f29cf910fac9d814cd898b4cc2bd79b1 |
|
19-Jan-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - add ipvlan support |
769d324c99aab129148bd25f5f663ef441287d86 |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: make IP forwarding for IPv4 and IPv6 individually 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. |
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. |
b98b483bac585af754e8a22ea890db8486905d8a |
|
18-Dec-2014 |
Alin Rauta <alin.rauta@intel.com> |
networkd: add FDB support |
7303ec8f3009d6630a994644ad9e539813badc52 |
|
10-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: rename section [BridgePort] → [Bridge]
Let's stick to generic sections that describe the general technology,
instead of specific per-object sections, unless we really have a reason
to do that otherwise. |
ca6038b89645c0c1bd547d6a420bf95eb3d6f4cc |
|
08-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
udev: link-config - simplify net-match |
285760fedfaf907deab967b4b071d20e146752b5 |
|
08-Dec-2014 |
Dave Reisner <dreisner@archlinux.org> |
Check return value from reading name_assign_type attr
This file won't exist on kernels earlier than 3.17. |
32bc8adcd836baff68e4d0f53b9a382f358cccf8 |
|
05-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
net_setup/networkd: warn if matching is done on possibly unstable ifname |
c106cc36b9b8e8998eb95299b02f1db9c1209122 |
|
05-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add basic [Link] settings to .network files
This allows the default link settings (set in .link files) to be overridden per Network. Only MTU and MACAddress is supported for now. |
7eb08da4b388b920c8a894b1500c9cc7dc1f31ef |
|
04-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
udev: net_setup - allow matching on OriginalName=
This has been requested repeatedly, so let's give it a go. We explicitly do not allow matching
on names that have already been changed (from a previous udev run, or otherwise), and matching
on unpredictable names (ethX) is discouraged (but not currently disallowed).
We also currently allow:
[Match]
Name=veth0
[Link]
Name=my-name0
SomeOtherSetting=true
Which means that the link file will be applied the first time it is invoked, but
not on subsequent invocations, which may be surprising. |
e1853b00ef7cb56cafd908327dd44b3ab48b402c |
|
04-Dec-2014 |
Susant Sahani <susant@redhat.com> |
networkd: Add bridge port path cost
This patch add support to specify path cost of the
bridge port to be configured via conf file.
Exampe: conf
file: br.netdev
[NetDev]
Name=br-test
Kind=bridge
file: br.network
[Match]
Name=em1
[Network]
Bridge=br-test
[BridgePort]
Cost=332
bridge link
2: em1 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master
br-test state disabled priority 32 cost 332 |
f647962d64e844689f3e2acfce6102fc47e76df2 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: yet more log_*_errno + return simplifications
Using:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/(if\s*\([^\n]+\))\s*{\n(\s*)(log_[a-z_]*_errno\(\s*([->a-zA-Z_]+)\s*,[^;]+);\s*return\s+\g4;\s+}/\1\n\2return \3;/msg;
print;'
$f
done
And a couple of manual whitespace 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(). |
d5099efc47d4e6ac60816b5381a5f607ab03f06e |
|
15-Sep-2014 |
Michal Schmidt <mschmidt@redhat.com> |
hashmap: introduce hash_ops to make struct Hashmap smaller
It is redundant to store 'hash' and 'compare' function pointers in
struct Hashmap separately. The functions always comprise a pair.
Store a single pointer to struct hash_ops instead.
systemd keeps hundreds of hashmaps, so this saves a little bit of
memory. |
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. |
2c36be2f4ba38f9097cdcdcd1e724ffa46da12c7 |
|
19-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: fix use-after-free
Elements must be removed from the hashtable before they are freed. |
40274ed6232389442f24205bc15779b9a4fe2942 |
|
15-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: print nice warnings if people configure invalid domain names |
486d1a81489da2341454ede4624342aad8334443 |
|
15-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: fix minor memory leak |
f15b6e5a8b6e550c6df7f6ccc216d5c4cbe6a604 |
|
15-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: remove "*" from domains list
Also, simplify things a bit and make sure we don't forget looking at one
of the entries. |
67272d157a35e5cda4e5c904eafdcc23d20541d1 |
|
15-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
sd-network: add support for wildcard domains |
6192b846ca0d15602e94ddb5da4420b7c60d64a5 |
|
15-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add support for Domains= to .network files
This allows the search/routing domanis to be specified per link/network and be passed
on to resolved. |
1bd27a45d04639190fc91ad2552b72ea759c0c27 |
|
15-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: don't respect domainname from DHCP by default
Most routers will send garbage, so make this opt-in only. |
ccf1c0299fbe5f6b59e494aabc9883948b7a9df1 |
|
12-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: disable ipv4ll default routes by default
This causes machines without connectivity to hang where they would otherwise fail. Keep it
opt-in for now, but consider whether we sholud just drop it. |
0b1831c20c4d30077b6560b2b7d88bdb220d5cef |
|
12-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: split out networkd-link.h |
bd8f65387673e29f46136a4ed172097035002c23 |
|
04-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add and expose per-link LLMNR config option |
16aa63a00b5b1db23a9c0b8de350ebf482d90cd0 |
|
28-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: route/address - use trivial hash functions |
6a0a2f860f1ca4a10932da3b41dbc3c0139757cc |
|
28-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: unify handling of stacked netdevs |
bfa695b5cc37aeb78737c57c84e9e69ea08152c0 |
|
25-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: ipv4ll - default to setting up ipv4ll routes
This is necessary for non-ipv4ll hosts to communicate with ipv4ll-only hosts on the same link. Defaults
to being enabled, but can be opted out.
See: <http://avahi.org/wiki/AvahiAutoipd#Routes> |
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. |
aa9f11405829fd4755fef28602a7167dba3ddc89 |
|
21-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - split NetDev struct into per-kind structs
Similarly to how unit types work. |
ed88bcfb7c15029f9fc95ee2380759a9eb782d46 |
|
17-Jul-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Be more careful when checking for empty files
If we want to avoid reading a totally empty file, it seems better
to check after we have opened the file, not before. |
36f822c4bd077f9121757e24b6516e5c7ada63b5 |
|
17-Jul-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Let config_parse open file where applicable
Special care is needed so that we get an error message if the
file failed to parse, but not when it is missing. To avoid duplicating
the same error check in every caller, add an additional 'warn' boolean
to tell config_parse whether a message should be issued.
This makes things both shorter and more robust wrt. to error reporting. |
e9f3d2d508bfd9fb5b54e82994bda365a71eb864 |
|
16-Jul-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Constify ConfigTableItem tables |
3be1d7e0c5bf60658d34eb6311d4e77c6803578c |
|
14-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - introduce vtable for netdev kinds
Split each netdev kind into its own .h/.c. |
edb85f0d8d0a84f27308a3728f3fde3c52b9dce2 |
|
14-Jul-2014 |
Susant Sahani <susant@redhat.com> |
networkd: dhcp add vendor class indentifier option 60
Vendor Class Identifier be used by DHCP clients to identify
their vendor type and configuration. When using this option,
vendors can define their own specific identifier values, such
as to convey a particular hardware or operating system
configuration or other identifying information.
Vendor-specified DHCP options—features that let administrators assign
separate options to clients with similar configuration requirements.
For example, if DHCP-aware clients for example we want to separate
different gateway and option for different set of people
(dev/test/hr/finance) in a org or devices for example web/database
servers or let's say in a embedded device etc and require a different
default gateway or DNS server than the rest of clients. |
c38d2eb828f1a62ae9052c9db45ccc70f98fdb47 |
|
04-Jul-2014 |
Steven Noonan <steven@uplinklabs.net> |
networkd: accept section DHCP in systemd.network files |
4cc7a82c9490a3c5ae03b1d6d168ce40ba499e23 |
|
01-Jul-2014 |
Eugene Yakubovich <eugene.yakubovich@coreos.com> |
networkd: send hostname to dhcp server
Send hostname (option 12) in DISCOVER and REQUEST messages so the
DHCP server could use it to register with dynamic DNS and such.
To opt-out of this behaviour set SendHostname to false in [DHCP]
section of .network file
[tomegun: rebased, made sure a failing set_hostname is a noop and moved
config from DHCPv4 to DHCP] |
e1ea665edac17d75fce01b72dadfa3211b60df2c |
|
29-Jun-2014 |
Eugene Yakubovich <eyakubovich@gmail.com> |
Add support for DHCP static route options
This adds support for DHCP options 33 and 121: Static Route and
Classless Static Route. To enable this feature, set UseRoutes=true
in .network file. Returned routes are added to the routing table. |
889a044ddc554882923a3c05870c050e010b50dc |
|
16-Jun-2014 |
Susant Sahani <susant@redhat.com> |
networkd: unref tunnel
Unref tunnel while shutting down |
326cb4061a7d6ec4107f298b6f947d645512ad76 |
|
16-Jun-2014 |
Susant Sahani <susant@redhat.com> |
networkd: introduce vxlan
This patch enables netwokd to create vxlan
Changes:
Added:
1. File networkd networkd-vxlan.c
2. to netdev
bool learning
struct in_addr group
uint64_t vxlanid;
3. VXLAN subsection and config
parameters |
97578344f3bd03c8ea651d8888622e82c599eadf |
|
13-Jun-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: link - left-align debug messages
Still add some whitespace betwen ifname and the message to get the
messages aligned (as I find it easier to spot specific messages this way). |
a613382bbf4357ce13f17c988713b80172e091fb |
|
02-Jun-2014 |
Susant Sahani <susant@redhat.com> |
networkd: introduce vti tunnel
This patch enables vti tunnel support.
example conf:
file : vti.netdev
[NetDev]
Name=vti-tun
Kind=vti
MTUBytes=1480
[Tunnel]
Local=X.X.X.X
Remote=X.X.X.X
file: vti.network
[Match]
Name=em1
[Network]
Tunnel=vti-tun
TODO:
Add more attributes for vti tunnel
IFLA_VTI_IKEY
IFLA_VTI_OKEY |
bcb7a07e0a785bda1eed658e984ff6b4a11cba9a |
|
19-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd/sd-network: expose statically configured NTP servers |
091a364c802e34a58f3260c9cb5db9b75c62215c |
|
19-May-2014 |
Tom Gundersen <teg@jklm.no> |
resolved: add daemon to manage resolv.conf
Also remove the equivalent functionality from networkd. |
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 |
987efa17dd5c9be156d8f49ddd942df20a72dcb1 |
|
15-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: logging - align messages |
af4e9e2c563047d524b207e0e3d6816385693a16 |
|
15-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: rename NetDev variable for consistency with Link |
7951dea20911969287878e6897b3eca348721ade |
|
12-May-2014 |
Susant Sahani <susant@redhat.com> |
networkd: introduce ipip tunnel
This patch enables basic ipip tunnel support.
It works with kernel module ipip
example conf:
file: ipip.netdev
[NetDev]
Name=ipip-tun
Kind=ipip
MTUBytes=1480
[Tunnel]
Local=192.168.223.238
Remote=192.169.224.239
TTL=64
file: ipip.network
[Match]
Name=em1
[Network]
Tunnel=ipip-tun
[tomegun:
- drop unused variable
- take ref when enslaving] |
31d0ac36c62c9ed9646fb478b9d71cc2ecc3e55c |
|
10-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: network - fix leak |
47e2dc3168cb0509d8d61f5dbeffaa3c252685b5 |
|
09-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: network - do reference counting on netdevs |
69a93e7db47addc4495a6ec9dc0fc74092a6ebee |
|
09-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: network - merge all netdev parsing into one function |
6916ec29afd488d91e7e0fcbcc2e006b4e5f28df |
|
19-Apr-2014 |
Tom Gundersen <teg@jklm.no> |
network: implement masking of .link, .network and .netdev files |
505f8da7325591defe5f751f328bd26915267602 |
|
19-Apr-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: tie links to rtnl rather than udev
This essentially swaps the roles of rtnl and udev in networkd. After this
change libudev is only used for waiting for udev to initialize devices and
to get udev-specific information needed for some [Match] attributes.
This in particular simplifies the code in containers where udev is not really
useful, but also simplifies things and reduces round-trips in the non-container
case. |
ecb08ec6a5c52f2d940f3b8147e2a480affd46e1 |
|
05-Apr-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Fix a few return codes in error paths |
79e16ce3bf734434081e57f1170333277830a592 |
|
24-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: fix a couple of memory leaks |
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 |
a748b692dd1e436ca1ff56b8d567c065c2539e5a |
|
09-Mar-2014 |
Tom Gundersen <teg@jklm.no> |
network: link - simplify code a bit and remove some debug logging |
fe6b2d55bcb379d01664ed28cea40634cb6b52e3 |
|
25-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add basic support for MACVLANs |
bf175aafd20c9ef974709ef12c5acf836121af33 |
|
21-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
net-util: match on the driver as exposed by ethtool if DRIVER not set
Also fix a copy-paste error that broke matching on interface name. |
edbb03e95a3c31bf719d5c6c46eec14d0bcb9c8f |
|
21-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
.network/.netdev/.link: allow to match on architecture |
c0dda18697e0994272c0c9616d36f6777b60e2c7 |
|
20-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - allow filtering on kernel cmdline, host and virt |
2cc412b59353576cece2d5b30c6a39c70552f0a0 |
|
20-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
network/link: Match - filter on kernel cmdline, host and virt |
9b1c2626cef16722603bded9bb52033aba34dd74 |
|
18-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
net-match: fix Driver= match
It should match on the driver of the parent device. |
672682a6b9d6fb6a3722c3fea1a93b4831747b54 |
|
10-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: VLAN - allow multiple vlans to be created on a link
Also limit the range of vlan ids. Other implementations and
documentation use the ranges {0,1}-{4094,4095}, but we use
the one accepted by the kernel: 0-4094.
Reported-by: Oleksii Shevchuk <alxchk@gmail.com> |
1a436809498faf6486815baa0338fb6b8e5def07 |
|
07-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - rename Netdev to NetDev
Both in the configuration file format and everywhere else in the code. |
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. |
54abf461d6b10dc270c4bb2aeac65f240ff1c5cd |
|
25-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add basic VLAN support |
52433f6b65eccd1c54606dde999610640f3458ac |
|
22-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add basic bonding support
Refactor bridging support to be generic netdev support and extend it to
cover bonding as well. |
0de638530c0651e554cff06cb0bf7a8ccdff97ab |
|
18-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: dhcp - by default ignore the MTU |
039ebe6aebaebcaa18375b33caf1db5fe2551621 |
|
18-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
sd-dhcp-client/networkd: add domainname support |
1346b1f0388f4100bb3c2a2bb23bc881769c020c |
|
16-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
sd-dhcp-client/networkd: add transient hostname support |
4f882b2a5007e51032459e29d15a86df6b5ea9f4 |
|
16-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
sd-dhcp-client/networkd: add interface MTU support |
5be4d38e31281727b6f45ae869136bb01a1f7790 |
|
13-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: DHCPv4 - allow opting out of using DNS servers
Setting UseDNS=no will ignore any received DNS servers. |
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. |
f46685a4c0780173e5291fb7c3caa1c35cb1d0af |
|
12-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: don't automatically reload config at runtime
We don't know if the config will be consistent, so do as systemd itself and only
load config when the daemon starts (and possibly, in the future, when explicitly requested). |
2ad8416dd057e7e3185169609ca3006e7649f576 |
|
09-Jan-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
No need to canonicalize fixed paths |
b3070dc0258831c7e2b13624f75fa3dbd80d9833 |
|
05-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: refuse to use .network files with missing Address/Gateway key
These keys are mandatory in [Address]/[Route] sections. Otherwise, we
hit an assert:
ens3: setting addresses
Assertion 'address->family == 2 || address->family == 10' failed at /build/amd64-generic/tmp/portage/sys-apps/systemd-9999-r1/work/systemd-9999/src/network/networkd-address.c:137, function address_configure(). Aborting.
Reported-by: Alex Polvi <alex.polvi@coreos.com>
At the same time make sure Route's Destination and Gateway uses the same address family. |
477e73b5312094f2d34de8e40ccbe61e6d4d81e9 |
|
03-Jan-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: fix memory leak in error path |
7384fa923e1ba403454903133b33f559b735fe75 |
|
03-Jan-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: do not deference null pointer in cleanup |
449f75549247b3b7b073a788f0f099ce6b7c5378 |
|
02-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: improve logging
Remove redundant messages, add some debugging ones and make wording more uniform. |
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). |
bf1bc6701574f5e935fafc3163659372abdcde63 |
|
16-Dec-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
network: more asserts to shut up scan-build |
02b59d57e0c08231645120077f651151f5bb2bab |
|
26-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: add bridge support
A bridge is specified in a .netdev file with a section [Bridge]
and at least the entry Name=.
A link may be joined to a bridge if the .network applied to it has
a Bridge= entry giving the name of the bridge in its [Network] section.
We eagerly create all bridges on startup, and links are added to
bridges as soon as they both appear. |
a9bc6d2df16c1d9f8a99d2cc9be2babf62bd173f |
|
26-Nov-2013 |
Dave Reisner <dreisner@archlinux.org> |
networkd: use correct printf formatter
uint64_t can be formatted correctly with %ju, rather than casting to
unsigned and potentially losing accuracy. |
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. |
5a3eb5a77d7c491a31818c4dfdcf8fd7dcaaadb2 |
|
21-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: make sure Network and Link can always be freed
Also, don't fail a link just because we can't find its MAC address. |
0617ffabe86a6d366252477eafbe59a888b149d4 |
|
19-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: make sure Links and Networks are freed |
f882c247ad59776c3a7753bb963c1f8e2386cb79 |
|
17-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: make all calls async |
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 |