summaryrefslogtreecommitdiff
path: root/src/network/networkd-network-bus.c
Commit message (Collapse)AuthorAgeFilesLines
* src: changed usage of basename() to path_extract_filename().OMOJOLA JOSHUA DAMILOLA2023-04-041-3/+6
| | | | TODO.
* tree-wide: use ASSERT_PTR moreDavid Tardon2022-09-131-4/+2
|
* network,udev: make .network and .link file can match with hardware address ↵Yu Watanabe2021-11-251-4/+4
| | | | longer or shorter than ETH_ALEN
* network: use BusObjectImplementationYu Watanabe2021-11-191-1/+8
|
* ether-addr-util, network: introduce ETHER_ADDR_TO_STR() macro and use itYu Watanabe2021-06-101-2/+1
|
* Merge pull request #17478 from yuwata/split-network-internalYu Watanabe2020-11-271-5/+5
|\ | | | | libsystemd-network: split network-internal.c
| * net-condition: introduce struct NetMatchYu Watanabe2020-10-291-5/+5
| |
* | license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|/
* tree-wide: define iterator inside of the macroZbigniew Jędrzejewski-Szmek2020-09-081-4/+2
|
* network: move prototypes related to network Network bus objects to ↵Yu Watanabe2019-06-301-0/+1
| | | | networkd-network-bus.h
* network: drop list fields in Network objectYu Watanabe2019-05-071-1/+2
|
* tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek2018-06-201-3/+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
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-141-1/+1
| | | | | | 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: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+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.
* network,udev: make MACAddress= in [Match] section take multiple MAC addressesYu Watanabe2018-05-091-8/+10
|
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* macro: introduce TAKE_PTR() macroLennart Poettering2018-03-221-2/+1
| | | | | | | | | | | | | | | | This macro will read a pointer of any type, return it, and set the pointer to NULL. This is useful as an explicit concept of passing ownership of a memory area between pointers. This takes inspiration from Rust: https://doc.rust-lang.org/std/option/enum.Option.html#method.take and was suggested by Alan Jenkins (@sourcejedi). It drops ~160 lines of code from our codebase, which makes me like it. Also, I think it clarifies passing of ownership, and thus helps readability a bit (at least for the initiated who know the new macro)
* Add SPDX license identifiers to source files under the LGPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
| | | | | This follows what the kernel is doing, c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460.
* networkd: clean up main header file a bitTom Gundersen2016-11-141-1/+1
| | | | | Rename networkd.h to networkd-manager.h, to more accurately describe what it contains.
* networkd: fix dbus matchmac interface (#3485)Andrew Jeddeloh2016-06-101-1/+1
| | | | | Fix issue where the *Network passed via userdata is being offset by offsetof(Network, matchmac) leading to incorrect values being exposed in dbus.
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* util-lib: split out allocation calls into alloc-util.[ch]Lennart Poettering2015-10-271-0/+1
|
* util-lib: split our string related calls from util.[ch] into its own file ↵Lennart Poettering2015-10-241-2/+2
| | | | | | | | | | | | | | 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.
* property callback returns are consistentUmut Tezduyar Lindskog2015-07-081-5/+1
| | | | | | | It is no different to return 0 over 1 in the property callback. It is confusing to return 1 which made me think 1 has a special purpose. This way code is consistent with the rest of the tree.
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-231-2/+0
| | | | | | 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.
* net: support globbing and disjunction in Match logicTom Gundersen2015-02-101-4/+4
| | | | Match{Name,OrginalName,Type,Driver,Path} can now take a space-separated glob of matches.
* networkd: bus - expose MatchMACTom Gundersen2015-02-101-1/+38
|
* networkd: network-bus - use sd_bus_path_{en,de}codeTom Gundersen2015-02-101-13/+8
|
* networkd: add basic org.freedesktop.network1.Network interfaceTom Gundersen2015-02-081-0/+128