summaryrefslogtreecommitdiffstats
path: root/src/network (follow)
Commit message (Collapse)AuthorAgeFilesLines
* network: drop unused slotsYu Watanabe2018-07-172-6/+2
|
* tree-wide: add a space after (void)Yu Watanabe2018-07-031-3/+3
|
* tree-wide: drop double newlineYu Watanabe2018-06-2929-29/+0
|
* network: update log messageYu Watanabe2018-06-291-1/+3
| | | | Closes #9396.
* Merge pull request #9422 from yuwata/conf-filesLennart Poettering2018-06-282-0/+19
|\ | | | | cleanups for default conf files
| * network: provide default networkd.confYu Watanabe2018-06-252-0/+19
| |
* | netdev: do not assign unused valuesYu Watanabe2018-06-261-8/+4
|/
* network: fix log messageYu Watanabe2018-06-251-1/+1
|
* tree-wide: drop copyright lines for more authorsZbigniew Jędrzejewski-Szmek2018-06-224-10/+0
| | | | Acks in https://github.com/systemd/systemd/issues/9320.
* Merge pull request #9348 from keszybz/copyright-removalLennart Poettering2018-06-2059-180/+0
|\ | | | | Copyright removal
| * tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek2018-06-2059-180/+0
| | | | | | | | | | | | | | | | Fixes #9320. for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms' done
* | networkd: Unify set MTUSusant Sahani2018-06-201-20/+24
|/ | | | | | | Now the setting MTU is embedded into the link_up message which makes it incapable of setting MTU if link is up. MTU can be set while Link is up. Closes #9254
* Correct a number of trivial typos.Chris Lamb2018-06-182-5/+5
|
* Drop my copyright headersZbigniew Jędrzejewski-Szmek2018-06-143-7/+0
| | | | | | | perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-1471-75/+75
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-147-19/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: use proper unicode © instead of (C) where we canLennart Poettering2018-06-147-7/+7
| | | | | | Let's use a proper unicode copyright symbol where we can, it's prettier. This important patch is very important.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-1482-164/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* resolve: rename PrivateDNS to DNSOverTLSIwan Timmer2018-06-144-6/+6
| | | PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS
* tree-wide: drop !! casts to booleansZbigniew Jędrzejewski-Szmek2018-06-131-1/+1
| | | | | | | | | | | They are not needed, because anything that is non-zero is converted to true. C11: > 6.3.1.2: When any scalar value is converted to _Bool, the result is 0 if the > value compares equal to 0; otherwise, the result is 1. https://stackoverflow.com/questions/31551888/casting-int-to-bool-in-c-c
* resolve: make PrivateDNS configurable per linkIwan Timmer2018-06-114-0/+7
| | | Like with DNSSec, make PrivateDNS configurable per link, so you can have trusted and untrusted links.
* networkd-link: add support to configure CAN interfacesHiram van Paassen2018-06-094-2/+131
| | | | This patch adds support for kind "can". Fixes: #4042.
* networkd-link: link_up_can(): move function upwardsMarc Kleine-Budde2018-06-091-25/+25
| | | | | This patch is a preparation patch, to avoid forward declarations in the next patch.
* networkd-link: link_configure(); factor out link_configure_can() into ↵Marc Kleine-Budde2018-06-091-12/+16
| | | | separate function
* networkd: tunnel ignore wrong conf rather than assertSusant Sahani2018-06-081-2/+2
| | | | Closes #9234
* lldp: check that lldp neighbor raw data size is in expected rangeFilipe Brandenburger2018-06-081-0/+4
| | | | | | | | | This fixes an insecure use of tainted data as argument to functions that allocate memory and read from files, which could be tricked into getting networkctl to allocate a large amount of memory and fill it with file data. This was uncovered by Coverity. Fixes CID 1393254.
* networkd: add missing _cleanup_ in prefix_newFilipe Brandenburger2018-06-081-1/+1
| | | | | | | | | | This should fix a leak of the allocated Prefix if sd_radv_prefix_new fails for some reason. The code was already initializing prefix to NULL and using TAKE_PTR to return it, so only the _cleanup_ was missing. Fixes Coverity finding CID 1382976.
* Merge pull request #9200 from poettering/device-state-fixLennart Poettering2018-06-071-1/+1
|\ | | | | core: rework device state serialization/enumeration
| * tree-wide: fix a number of log calls that use %m but have no errno setLennart Poettering2018-06-071-1/+1
| | | | | | | | | | | | | | | | This is mostly fall-out from d1a1f0aaf0d2f08c60d1e0d32e646439d99f58dc, however some cases are older bugs. There might be more issues lurking, this was a simple grep for "%m" across the tree, with all lines removed that mention "errno" at all.
* | Merge pull request #9165 from ssahani/networkd-netdevsimLennart Poettering2018-06-076-0/+41
|\ \ | |/ |/| networkd: introduce netdev "Netdevsim" Driver
| * Add SPDX license identifier.Susant Sahani2018-06-031-0/+1
| |
| * networkd: introduce netdev "Netdevsim" DriverSusant Sahani2018-06-035-0/+40
| | | | | | | | | | | | This "netdevsim" as implied by the name is a tool for network developers and is a simulator. This simulated networking device is used for testing various networking APIs and at this time is particularly focused on testing hardware offloading related interfaces.
* | basic/log: add the log_struct terminator to macroZbigniew Jędrzejewski-Szmek2018-06-042-21/+11
| | | | | | | | | | This way all callers do not need to specify it. Exhaustively tested by running test-log under valgrind ;)
* | network: avoid temporary variables for parsing, use TAKE_PTR (#9166)Zbigniew Jędrzejewski-Szmek2018-06-031-30/+15
| | | | | | | | | | | | We don't need a temporary variable when parsing just one number, because our parsing functions do not touch the output variable on error. TAKE_PTR is more expressive than 'n = NULL'.
* | netdev: fix parser for VRF.Table=Yu Watanabe2018-06-021-1/+1
| | | | | | | | | | | | This effectively reverts f98dd1e70750f09a85d9236ad3621b249ad59629 (#6704). Fixes #9150.
* | networkd: enable to set IFF_ALLMULTI to network device (#9146)Susant Sahani2018-06-014-1/+9
|/ | | networkd: allow setting set IFF_ALLMULTI flag on network devices
* networkd: Add ability to set MULTICAST flag on interfaceSusant Sahani2018-05-304-2/+10
| | | | | | Closes #9113 fix ARP toggling flag
* test-tables,test-network-tables: add a few more testsZbigniew Jędrzejewski-Szmek2018-05-281-0/+14
|
* test-tables*: sortZbigniew Jędrzejewski-Szmek2018-05-281-8/+8
|
* fileio: accept FILE* in addition to path in parse_env_file()Lennart Poettering2018-05-242-2/+2
| | | | | | | Most our other parsing functions do this, let's do this here too, internally we accept that anyway. Also, the closely related load_env_file() and load_env_file_pairs() also do this, so let's be systematic.
* networkd: Support the ability to set MTU in [Route] sectionsSusant Sahani2018-05-243-0/+37
| | | | | | Add support to set the route MTU. Closes #9047
* Merge pull request #9040 from yuwata/resolved-networkd-use-dynamic-userLennart Poettering2018-05-231-1/+1
|\ | | | | Set DynamicUser= to resolved and networkd
| * network: set DynamicUser= to systemd-networkd.serviceYu Watanabe2018-05-221-1/+1
| |
* | Merge pull request #9065 from poettering/fixup-tab-double-newlineZbigniew Jędrzejewski-Szmek2018-05-221-1/+0
|\ \ | | | | | | tree-wide: fix some TABs and double newlines
| * | tree-wide: remove some double newlines in headers, tooLennart Poettering2018-05-222-2/+0
| |/
* / tree-wide: port over all code to the new CONFIG_PARSER_PROTOTYPE() macroLennart Poettering2018-05-2211-89/+81
|/ | | | | | | | | | | This makes most header files easier to look at. Also Emacs gets really slow when browsing through large sections of overly long prototypes, which is much improved by this macro. We should probably not do something similar with too many other cases, as macros like this might help readability for some, but make it worse for others. But I think given the complexity of this specific prototype and how often we use it, it's worth doing.
* Merge pull request #8962 from floppym/issue8905Zbigniew Jędrzejewski-Szmek2018-05-131-1/+1
|\ | | | | basic: timezone_is_valid: check for magic bytes "TZif"
| * basic: add log_level argument to timezone_is_validMike Gilbert2018-05-121-1/+1
| |
* | network: make route_update() accept NULLYu Watanabe2018-05-112-7/+7
| | | | | | | | | | | | This also fixes a wrong argument for route_configure(). Fixes #8960.
* | network: fix indentationYu Watanabe2018-05-111-104/+124
|/