Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #18243 from ssahani/ensure-put-use | Yu Watanabe | 2021-01-17 | 1 | -5/+1 |
|\ | | | | | tree-wide: introduce hashmap_ensure_put() and use it | ||||
| * | network: routing policy rule - Use hashmap_ensure_put | Susant Sahani | 2021-01-15 | 1 | -5/+1 |
| | | |||||
* | | network: routing-policy-rule - TAKE_PTR | Susant Sahani | 2021-01-16 | 1 | -23/+13 |
|/ | |||||
* | network: drop fib rules configured with Family=both | Yu Watanabe | 2020-12-30 | 1 | -4/+30 |
| | |||||
* | network: set RoutingPolicyRule::family based on Family= setting | Yu Watanabe | 2020-12-30 | 1 | -2/+7 |
| | |||||
* | network: always re-configure rules even if already exist | Yu Watanabe | 2020-12-30 | 1 | -34/+40 |
| | | | | | routing_policy_rule_get() in link_set_routing_policy_rules() does not work when [RoutingPolicyRule] section does not have From= or To=. | ||||
* | network: drop unnecessary checks | Yu Watanabe | 2020-12-30 | 1 | -4/+2 |
| | | | | By the previous commit, the checks are not necessary any more. | ||||
* | network: fix possible memory leak | Yu Watanabe | 2020-12-30 | 1 | -2/+2 |
| | | | | | When set_put() returns 0, then already stored rule will be unref()ed from Manager. | ||||
* | network: constify several arguments | Yu Watanabe | 2020-12-30 | 1 | -9/+9 |
| | |||||
* | network: do not serialize/deserialize routing policy rules | Yu Watanabe | 2020-12-29 | 1 | -370/+0 |
| | | | | | | We already handle foreign routing policy rules correctly by the previous commit. So, the serialization/deserialization of rules are not necessary anymore. | ||||
* | network: drop unnecessary routing policy rules | Yu Watanabe | 2020-12-29 | 1 | -2/+30 |
| | | | | | | | | | | | | networkd already drop foreign address, routes, and nexthops on startup, except those created by kernel. However, previously, routing policy rules were not. The logic of serialization/deserialization of rules only works for rules created by previous invocation of networkd, and does not work for one created by other tools like `ip rule`. This makes networkd drop foreign routing policy rules except created by kernel on startup. Also, remove rules created by networkd when the corresponding links are dropped or networkd is stopping. | ||||
* | network: treat rule which has l3mdev flag as created by kernel | Yu Watanabe | 2020-12-29 | 1 | -0/+17 |
| | |||||
* | network: adjust protocol of rules sent from kernel when kernel does not ↵ | Yu Watanabe | 2020-12-29 | 1 | -1/+30 |
| | | | | | | support FRA_PROTOCOL Otherwise, each configured rule is treated as foreign. | ||||
* | network: set FRA_PROTOCOL to RTPROT_STATIC by default | Yu Watanabe | 2020-12-29 | 1 | -9/+27 |
| | |||||
* | network: Allow to configure unreachable/blackhole RoutingPolicyRule (#17984) | Susant Sahani | 2020-12-18 | 1 | -1/+82 |
| | |||||
* | sd-netlink: routing policy rule port to fib_rule_hdr | Susant Sahani | 2020-12-17 | 1 | -4/+4 |
| | |||||
* | network: use netlink_message_read_in_addr_union() where applicable | Yu Watanabe | 2020-12-14 | 1 | -52/+17 |
| | |||||
* | network: introduce log_routing_policy_rule_debug() | Yu Watanabe | 2020-12-14 | 1 | -33/+26 |
| | |||||
* | network: introduce routing_policy_rule_equal() | Yu Watanabe | 2020-12-14 | 1 | -1/+11 |
| | |||||
* | network: make routing_policy_rule_remove() take Manager instead of Link | Yu Watanabe | 2020-12-14 | 1 | -33/+19 |
| | | | | As routing policy rules are managed by Manager. | ||||
* | network: do not configure static configs more than once simultaneously | Yu Watanabe | 2020-12-11 | 1 | -0/+5 |
| | |||||
* | license: LGPL-2.1+ -> LGPL-2.1-or-later | Yu Watanabe | 2020-11-09 | 1 | -1/+1 |
| | |||||
* | network: rename network_verify_xxx() -> network_drop_invalid_xxx() | Yu Watanabe | 2020-10-07 | 1 | -1/+1 |
| | | | | As 'verify' implies a boolean result. | ||||
* | network: specify all known attributes when removing routing policy rules | Yu Watanabe | 2020-10-07 | 1 | -117/+115 |
| | | | | Otherwise, routing_policy_rule_remove() may removes unintended rule. | ||||
* | network: add missing "else" | Yu Watanabe | 2020-10-07 | 1 | -1/+1 |
| | |||||
* | network: drop unused element | Yu Watanabe | 2020-10-07 | 1 | -2/+0 |
| | |||||
* | network: introduce network_verify_routing_policy_rules() | Yu Watanabe | 2020-10-07 | 1 | -1/+11 |
| | |||||
* | network: make routing_policy_rule_new() static | Yu Watanabe | 2020-10-07 | 1 | -24/+26 |
| | |||||
* | network: move manager_rtnl_process_rule() to networkd-routing-policy-rule.[ch] | Yu Watanabe | 2020-10-07 | 1 | -2/+232 |
| | |||||
* | network: drop list of static routing policy rules | Yu Watanabe | 2020-10-07 | 1 | -34/+23 |
| | | | | | [RoutingPolicyRule] sections are managed by both LIST and Hashmap. Let's drop list. | ||||
* | network: do not duplicate rule if Family=both | Yu Watanabe | 2020-10-07 | 1 | -39/+36 |
| | |||||
* | network: make routing_policy_rule_free() returns NULL | Yu Watanabe | 2020-10-07 | 1 | -4/+4 |
| | |||||
* | network: add more logs on loading routing policy rules failure | Yu Watanabe | 2020-10-07 | 1 | -23/+24 |
| | | | | And reduce scope of variables. | ||||
* | network: reduce scope of variables | Yu Watanabe | 2020-10-06 | 1 | -7/+12 |
| | |||||
* | network: drop routing_policy_rule_make_local() | Yu Watanabe | 2020-10-06 | 1 | -26/+15 |
| | | | | Its error handling was bogus... | ||||
* | network: make several functions static | Yu Watanabe | 2020-10-06 | 1 | -147/+147 |
| | |||||
* | network: move link_request_set_routing_policy() | Yu Watanabe | 2020-10-06 | 1 | -0/+35 |
| | |||||
* | network: replace FRA_IFNAME -> FRA_IIFNAME | Yu Watanabe | 2020-09-10 | 1 | -2/+2 |
| | | | | No functional change, as FRA_IFNAME is an alias of FRA_IIFNAME. | ||||
* | network: fix the default mask for FirewallMark= | Yu Watanabe | 2020-09-10 | 1 | -8/+11 |
| | | | | | | | | And always send FRA_FWMASK if FirewallMark= is set. C.f. https://github.com/torvalds/linux/commit/b8964ed9fa727109c9084abc807652ebfb681c18 Partially fixes #16784. | ||||
* | network: do not assign return value if the parse_fwmark_fwmask() fails | Yu Watanabe | 2020-09-10 | 1 | -15/+20 |
| | | | | | This also removes redundant logs, and makes input string not copied if it does not contain '/'. | ||||
* | network: add debug log for removing routing policy rules | Yu Watanabe | 2020-09-10 | 1 | -10/+21 |
| | |||||
* | network: also logs priority of routing policy rules | Yu Watanabe | 2020-09-10 | 1 | -2/+2 |
| | |||||
* | tree-wide: define iterator inside of the macro | Zbigniew Jędrzejewski-Szmek | 2020-09-08 | 1 | -6/+3 |
| | |||||
* | network: logs about unknown key | Yu Watanabe | 2020-09-04 | 1 | -1/+2 |
| | |||||
* | network: honor already specified family when parsing from= or to= in ↵ | Yu Watanabe | 2020-09-04 | 1 | -20/+26 |
| | | | | serialized rule | ||||
* | network: do not reallocate buffer | Yu Watanabe | 2020-09-04 | 1 | -4/+8 |
| | |||||
* | network: serialize InvertRule= in [RoutingPolicyRule] | Yu Watanabe | 2020-09-04 | 1 | -1/+9 |
| | |||||
* | network: add whitespace after family= and priority= in serialized routing ↵ | Yu Watanabe | 2020-09-04 | 1 | -7/+12 |
| | | | | | | policy rule This also makes priority= serialized only when its value is non-zero. | ||||
* | network: downgrade error level when the error is ignored | Yu Watanabe | 2020-09-04 | 1 | -12/+12 |
| | |||||
* | network: move routing_policy_rule_read_full_file() | Yu Watanabe | 2020-09-04 | 1 | -20/+20 |
| |