summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-routing-policy-rule.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* network: add missing entries in routing_policy_rule_{hash,compare}_func()Yu Watanabe2019-06-191-9/+2
| | | | | This also makes routing_policy_rule_get() or friends take a RoutingPolicyRule object as an input.
* network: remove unused argument in routing_policy_rule_configure()Yu Watanabe2019-06-041-1/+1
|
* network: include glibc headers before including kernel headersYu Watanabe2019-05-091-0/+1
|
* tree-wide: drop several missing_*.h and import relevant headers from kernel-5.0Yu Watanabe2019-04-111-1/+0
|
* network: drop sections contain invalid settings in network_verify()Yu Watanabe2019-03-131-1/+2
| | | | | | | | | | | If e.g., an [Address] section has an invalid setting, then previously assigned settings in the section is freed, and only later settings are stored. That may cause partially broken section stored in Network object. This makes if an invalid setting is found, then set 'invalid' flag instead of freeing it. And invalid sections are dropped later by network_verify().
* networkd: RPDB rule - add support to configure inverted rule.Susant Sahani2018-12-061-0/+3
| | | | Closes #10706
* util: drop missing.h from util.hYu Watanabe2018-12-041-0/+1
|
* Merge pull request #10976 from yuwata/typesafe-netlink-callLennart Poettering2018-12-031-4/+2
|\ | | | | netlink: introduce typesafe netlink functions
| * network: use typesafe netlink_call_async() macro where applicableYu Watanabe2018-12-021-2/+2
| |
| * network: set default callbacks for routing_policy_rule_configure() and ↵Yu Watanabe2018-12-021-2/+0
| | | | | | | | routing_policy_rule_remove()
* | network: rename Protocol= in [RoutingPolicyRule] to IPProtocol=Yu Watanabe2018-12-021-1/+1
|/
* networkd: add support to configure ip rule port range and protocol.Susant Sahani2018-11-281-3/+13
| | | | | | | | | Please see: iprule: support for ip_proto, sport and dport match options https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=f686f764682745daf6a93b0a6330ba42a961f858 Closes 10622
* network: strdup iif and oif when creating RoutingPolicyRule objectYu Watanabe2018-09-271-3/+3
|
* tree-wide: drop double newlineYu Watanabe2018-06-291-1/+0
|
* 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.
* tree-wide: port over all code to the new CONFIG_PARSER_PROTOTYPE() macroLennart Poettering2018-05-221-6/+7
| | | | | | | | | | | 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.
* tree-wide: drop redundant _cleanup_ macros (#8810)Lennart Poettering2018-04-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This drops a good number of type-specific _cleanup_ macros, and patches all users to just use the generic ones. In most recent code we abstained from defining type-specific macros, and this basically removes all those added already, with the exception of the really low-level ones. Having explicit macros for this is not too useful, as the expression without the extra macro is generally just 2ch wider. We should generally emphesize generic code, unless there are really good reasons for specific code, hence let's follow this in this case too. Note that _cleanup_free_ and similar really low-level, libc'ish, Linux API'ish macros continue to be defined, only the really high-level OO ones are dropped. From now on this should really be the rule: for really low-level stuff, such as memory allocation, fd handling and so one, go ahead and define explicit per-type macros, but for high-level, specific program code, just use the generic _cleanup_() macro directly, in order to keep things simple and as readable as possible for the uninitiated. Note that before this patch some of the APIs (notable libudev ones) were already used with the high-level macros at some places and with the generic _cleanup_ macro at others. With this patch we hence unify on the latter.
* 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.
* networkd: routing policy rules rename Manager object m to manager.Susant Sahani2018-01-241-1/+1
|
* Fix #7704 and #7708. (#7712)Susant Sahani2017-12-211-0/+2
| | | | | | Init rule variable iif oif and to, from While foreign rules are added the network part is not attached. attach manager to rules and use it in routing_policy_rule_free.
* networkd: move rule loading to a separate functionZbigniew Jędrzejewski-Szmek2017-11-281-1/+2
| | | | No functional change.
* networkd: support incoming/outgoing device for rule matching (#7223)Susant Sahani2017-11-211-3/+7
| | | Closes #7210
* 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: add support to configure IP Rule (#5725)Susant Sahani2017-09-141-0/+83
Routing Policy rule manipulates rules in the routing policy database control the route selection algorithm. This work supports to configure Rule ``` [RoutingPolicyRule] TypeOfService=0x08 Table=7 From= 192.168.100.18 ``` ``` ip rule show 0: from all lookup local 0: from 192.168.100.18 tos 0x08 lookup 7 ``` V2 changes: 1. Added logic to handle duplicate rules. 2. If rules are changed or deleted and networkd restarted then those are deleted when networkd restarts next time V3: 1. Add parse_fwmark_fwmask