Yu Watanabe
b0ab85a2e4
network: ignore requested ipv6 fdb entry when ipv6 is disabled by sysctl
2019-06-12 11:04:06 +09:00
Yu Watanabe
7ef7e5509b
network: ignore requested ipv6 routing policy rule when ipv6 is disabled by sysctl
2019-06-12 11:03:37 +09:00
Yu Watanabe
c442331750
network: ignore requested ipv6 route when ipv6 is disabled by sysctl
2019-06-12 11:03:08 +09:00
Yu Watanabe
54a1a535bd
network: ignore requested ipv6 addresses when ipv6 is disabled by sysctl
2019-06-12 11:02:33 +09:00
Yu Watanabe
d03073ddcd
network: assign new DHCP address before removing old lease address
...
Closes #12676 .
2019-06-07 16:22:00 +09:00
Yu Watanabe
3ab7ed3f12
network: ignore callback calls when link is in failed state
2019-06-07 16:22:00 +09:00
Yu Watanabe
a2f684904c
network: drop unnecessary link_enter_failed() calls
...
As the function called soon later anyway.
2019-06-07 16:22:00 +09:00
Yu Watanabe
448aaf9f43
network: check earlier the existence of lifetime in lease
2019-06-07 16:22:00 +09:00
Yu Watanabe
1590dfa4a0
network: make all failures in route configuration fatal
2019-06-07 16:22:00 +09:00
Zbigniew Jędrzejewski-Szmek
2db18cdd46
Merge pull request #12738 from yuwata/network-routing-policy-cleanup
...
network: several cleanups for routing policy rule
2019-06-06 18:53:20 +02:00
Yu Watanabe
db51778f85
network: make KeepConfiguration=static drop DHCP addresses and routes
...
Also, KeepConfiguration=dhcp drops static foreign addresses and routes.
2019-06-06 22:50:29 +09:00
Yu Watanabe
95355a281c
network: add KeepConfiguration=dhcp-on-stop
...
The option prevents to drop lease address on stop.
By setting this, we can safely restart networkd.
2019-06-06 22:50:29 +09:00
Susant Sahani
7da377ef16
networkd: add support to keep configuration
2019-06-06 22:50:29 +09:00
Yu Watanabe
9ee92e7ed8
network: check stored object is euivalent to what we want to remove
...
When object A is stored in Manager::rules and B is in ::rules_foreign,
and compare function for the object cannot distinguish them,
then freeing A causes B to be removed from rules_foreign or vice versa.
Hopefully fixes #12731 .
2019-06-06 00:45:46 +09:00
Zbigniew Jędrzejewski-Szmek
aafec74d04
Merge pull request #12733 from keszybz/sd-bus-error-reporting
...
Bus error reporting improvements
2019-06-04 12:01:52 +02:00
Yu Watanabe
9f08a578a8
network: remove unused argument in routing_policy_rule_configure()
2019-06-04 16:23:18 +09:00
Yu Watanabe
d26267ddf1
network: fix double free on error path
2019-06-04 16:23:18 +09:00
Yu Watanabe
3681d63935
network: fix UBSAN issue
...
Closes #12724 .
2019-06-04 09:12:44 +02:00
Yu Watanabe
38b9af6154
networkctl: re-cast value stored in Set with INT_TO_PTR()
2019-06-04 09:08:55 +02:00
Zbigniew Jędrzejewski-Szmek
8210a61ad5
networkctl: log quietly if we fail to get bit rates
...
If we query older networked, they will be missing. This is not an error.
Also, make the error more informative, because the bus error itself might
be just "Unknown interface or property" which is not enough to understand
what is going on.
2019-06-04 08:37:04 +02:00
Yu Watanabe
81914d9f13
networkctl: drop unnecessary use of table_add_cell_full()
2019-06-03 16:43:18 +09:00
Yu Watanabe
335dd8ba13
networkctl: show link bit rates
2019-06-01 10:24:47 +09:00
Yu Watanabe
a879e1a46e
network: monitor link bit rates
2019-06-01 10:24:47 +09:00
Yu Watanabe
a459b24f7e
networkctl: optionally show link statistics
2019-06-01 10:24:47 +09:00
Zbigniew Jędrzejewski-Szmek
90e29fe1a5
networkctl: shorten Minimum/Maximum to min/max
...
This makes the output slightly "lighter" visually. min/max are well-established
forms, so there's no risk of misunderstanding. Also, not using title-case looks
a bit better.
Follow-up for c06ff86e25
.
$ build/networkctl status '*'|grep MTU
MTU: 65536
MTU: 1500 (min: 68, max: 9000)
MTU: 1500 (max: 2048)
MTU: 1500 (min: 256, max: 2304)
MTU: 1500 (min: 68, max: 65535)
MTU: 1500 (min: 68, max: 65521)
MTU: 1500 (min: 68, max: 65535)
MTU: 1500 (max: 65535)
MTU: 1360 (min: 68, max: 65535)
2019-06-01 10:24:08 +09:00
Yu Watanabe
c06ff86e25
networkctl: do not show zero maximum MTU
2019-05-31 10:55:07 +02:00
Yu Watanabe
9e90465539
Merge pull request #12705 from keszybz/varlink-json-fix-and-two-cleanups
...
Varlink json fix and two cleanups
2019-05-31 08:28:37 +09:00
Zbigniew Jędrzejewski-Szmek
5043ec6476
networkd: shorter two error statements a bit
...
Also let's not use a cast if we don't have to.
2019-05-30 22:56:03 +02:00
Zbigniew Jędrzejewski-Szmek
c2babfc2f5
networkd: rewrite condition to make it easier to understand
2019-05-30 15:31:44 +02:00
Yu Watanabe
e2835111dd
networkctl: fix memleak
...
Closes #12701 .
2019-05-30 20:58:36 +09:00
Yu Watanabe
518a66ec08
tree-wide: replace if_indextoname() with format_ifname()
2019-05-29 14:21:19 +09:00
Yu Watanabe
658e910640
networkctl: use Table for 'lldp' command
2019-05-29 14:21:19 +09:00
Yu Watanabe
0232beed9c
networkctl: use Table for 'label' command
2019-05-29 14:21:19 +09:00
Yu Watanabe
98d5bef3c5
networkctl: use Table for 'status' command
2019-05-29 14:21:19 +09:00
Yu Watanabe
ff7c88a2f3
networkctl: use Table for 'list' command
2019-05-29 14:21:19 +09:00
Yu Watanabe
4bddccc684
networkctl: use parse_ifindex_or_ifname()
2019-05-29 13:22:01 +09:00
Susant Sahani
9cd8c76661
networkctl: add support to delete virtual netdevs
...
We now don't have the support to delete netdevs and dependent
upon iproute to delete. With this we can delete via networkctl
and use in our test cases too.
Note that it supports deleting multiple links at once.
```
sudo ./networkctl delete test1 test2 test3 test4
```
2019-05-29 11:00:37 +09:00
Yu Watanabe
0feeac6418
Merge pull request #12635 from yuwata/nlmon-support
...
network: add nlmon support
2019-05-29 10:22:09 +09:00
Yu Watanabe
d61e4c5b6e
network: add nlmon support
...
nlmon is a Netlink monitor device.
2019-05-28 22:47:15 +09:00
Yu Watanabe
daf0f8ca87
network: add NetDevVTable::generate_mac flag
2019-05-28 22:45:35 +09:00
Yu Watanabe
efdb62dfd0
network: do not send DHCPRELEASE when CriticalConnection= is enabled
2019-05-28 22:21:25 +09:00
Yu Watanabe
5b11f372f0
network: lower log level about critical connection
2019-05-28 22:21:23 +09:00
Yu Watanabe
7fa472f9b7
network: split dhcp_lease_lost() into small pieces
2019-05-28 22:21:23 +09:00
Yu Watanabe
a20c909c68
network: set dhcp4_configured flag false before configuring address
...
Otherwise, even if dhcp_lease_acquired() fails, the flag is still on.
2019-05-28 22:21:23 +09:00
Yu Watanabe
4c9c827231
network: reset Link::dhcp4_configured flag earlier
2019-05-28 22:21:23 +09:00
Yu Watanabe
8df8ce781c
network: set preferred source in removing route entry on address lost
...
Closes #12490 .
2019-05-28 22:21:23 +09:00
Yu Watanabe
cab042b843
network: make VXCAN devices go through LINK_STATE_CONFIGURING
2019-05-24 10:55:33 +09:00
Yu Watanabe
a43b1f8267
Merge pull request #12618 from yuwata/test-network-improvements
...
network: several cleanups
2019-05-23 11:17:33 +09:00
Yu Watanabe
910feb787f
network: unify link_ipv4ll_enabled() and link_ipv4ll_fallback_enabled()
2019-05-22 17:59:39 +09:00
Yu Watanabe
a0ae96149a
network: drop unused variable
2019-05-22 17:59:39 +09:00