summaryrefslogtreecommitdiffstats
path: root/src/network/test-network.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* networkd: refactor socket activation a bitTom Gundersen2015-02-031-2/+0
|
* network-address,test-network: avoid undefined behaviourZbigniew Jędrzejewski-Szmek2015-02-031-2/+1
|
* test-network: fix off-by-one error in testTom Gundersen2014-08-311-3/+3
|
* sd-network: remove redundant array size parameter from functions that return ↵Lennart Poettering2014-07-171-3/+3
| | | | | | | | arrays As long as the number of array entries is relatively small it's nicer to simply return the number of entries directly, instead of using a size_t* return parameter for it.
* test: network - skip if we don't have permissions to create netdevsTom Gundersen2014-07-141-3/+14
|
* Add support for DHCP static route optionsEugene Yakubovich2014-06-291-0/+59
| | | | | | 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.
* sd-dhcp-lease: move in_addr (de)serialization to shared network codeTom Gundersen2014-05-191-1/+34
|
* networkd: IP address equalityTom Gundersen2014-05-171-0/+47
|
* networkd: tie links to rtnl rather than udevTom Gundersen2014-04-191-11/+3
| | | | | | | | | | 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.
* networkd: handle SIGINT and SIGTERMTom Gundersen2014-02-221-5/+2
|
* test: always use assert_se in testsTom Gundersen2014-02-221-14/+14
|
* networkd: add bridge supportTom Gundersen2013-11-261-4/+4
| | | | | | | | | | | 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.
* networkd: make sure Links and Networks are freedTom Gundersen2013-11-191-1/+1
|
* networkd: make all calls asyncTom Gundersen2013-11-171-1/+2
|
* network: fix testsTom Gundersen2013-11-101-1/+6
| | | | | One of the tests were assuming the network configuration dirs exist. We can't do that, so disable it for now.
* networkd: add a basic network daemonTom Gundersen2013-11-091-0/+74
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