Yu Watanabe
8fb3bda83c
Merge pull request #14297 from poettering/id128-size
...
cleaning up id128 formatting buffer sizing
2019-12-11 13:26:51 +09:00
Yu Watanabe
bfb68540d5
Merge pull request #14280 from yuwata/network-tbf-more
...
network: tc: add more options for TBF
2019-12-11 00:02:43 +09:00
Yu Watanabe
393f783ed3
Merge pull request #14295 from poettering/greedy-alloc-round-up
...
add new GREEDY_ALLOC_ROUND_UP() to make strv_extend() a bit less slow
2019-12-10 20:17:33 +09:00
Yu Watanabe
886e07a9cf
test-network: add tests for new TBF settings
2019-12-10 01:28:38 +09:00
Yu Watanabe
dcfc23ae77
network: tc: add more options for TBF
2019-12-10 01:28:38 +09:00
Yu Watanabe
0810e6d787
test-network: add a test case for SendOption=
2019-12-10 01:28:09 +09:00
Yu Watanabe
83b56c70e6
network: fix segfault in parsing SendOption=
...
Fixes #14283 .
2019-12-10 01:28:09 +09:00
Yu Watanabe
8ee08dc564
test: do not fail if new device is plugged during enumeration
2019-12-09 08:45:25 +00:00
Yu Watanabe
bc942f69aa
test-network: make test_bind_carrier more stable
2019-12-08 19:52:01 +00:00
Yu Watanabe
84043bfd74
Merge pull request #14266 from topimiettinen/dont-resolve-user-if-not-root
...
resolved: don't resolve the user if not root
2019-12-09 00:15:31 +09:00
Yu Watanabe
debda5a4e5
Merge pull request #14273 from ssahani/ifb
...
network: introduce IFB
2019-12-08 05:13:08 +09:00
Yu Watanabe
6d62ec61b9
network: fix copy and paste mistake
2019-12-08 05:11:26 +09:00
Yu Watanabe
b076d5d76d
test-network: add test case for IFB
2019-12-08 00:03:29 +09:00
Yu Watanabe
43a20059a5
Merge pull request #14102 from ssahani/acd-duplicate-ip
...
network: introduce DAD for static IPV4 address
2019-12-07 14:11:44 +09:00
Yu Watanabe
dc7d3c5fd4
test-network: add test case for IPv4 DAD
2019-12-06 23:29:28 +09:00
Yu Watanabe
2c7b826ddf
network: do not drop foreign config if interface is in initialized state
...
If the interface is in initialized state, no network file is assigned to
the interface. If an interface is not managed by networkd, previously,
the foreign configs of the interface was dropped.
Fixes #14250 .
2019-12-06 12:27:47 +01:00
Yu Watanabe
ec34e7d1ab
Merge pull request #14229 from yuwata/nspawn-network-interface-14223
...
nspawn: do not fail if udev is not running
2019-12-05 16:10:29 +09:00
Yu Watanabe
bf331d8717
network: if /sys is rw, then udev should be around
...
This switches detect_container() to path_is_read_only_rw("/sys"), as if
systemd-udevd.service is conditionalized with that way.
This also updates the log message.
2019-12-05 08:22:52 +09:00
Yu Watanabe
26208d5b96
nspawn: do not fail if udev is not running
...
If /sys is read only filesystem, e.g., nspawn is running in container,
then usually udev is not running. In such a case, let's assume that
the interface is already initialized. Also, this makes nspawn refuse
to use the network interface which is under renaming.
Fixes #14223 .
2019-12-05 08:22:16 +09:00
Yu Watanabe
0ab9279132
test-network: add a test case for SFQ
2019-12-04 20:58:33 +09:00
Yu Watanabe
b2340fbb5a
network: SFQ cannot be configured with netem or TBF
2019-12-04 20:58:33 +09:00
Yu Watanabe
1b628c4f64
test-network: add test case for TBF
2019-12-04 20:57:48 +09:00
Yu Watanabe
f1dba55565
network: drop unnecessary headers
2019-12-04 20:57:48 +09:00
Yu Watanabe
6483f04381
network: make network_emulator_fill_message() take NetworkEmulator
2019-12-04 20:57:39 +09:00
Yu Watanabe
edc54f2f75
network: rename QDiscs to QDisc
2019-12-04 20:57:01 +09:00
Yu Watanabe
8efb93f02d
network: ignore sections which have both NetworkEmulator and TokenBufferFilter settings
2019-12-04 20:55:55 +09:00
Yu Watanabe
e813de549b
network: do not return error but return UINT64_MAX if speed meter is disabled
...
Fixes #14222 .
2019-12-04 09:11:34 +01:00
Yu Watanabe
33ebda2e81
networkctl: fix to show BSSID
...
This fixes an issue caused by a typo in
78404d22cc .
2019-12-03 20:00:05 +01:00
Yu Watanabe
5ecb131d94
network: include NLMSGERR_ATTR_MSG attribute in error message
2019-11-30 16:14:02 +09:00
Yu Watanabe
e4a1e68d7a
sd-netlink: support NLMSGERR_ATTR_MSG
...
From v4.12 the kernel appends some attributes to netlink acks
containing a textual description of the error and other fields.
This makes sd-netlink parse the attributes.
2019-11-30 16:13:51 +09:00
Yu Watanabe
3db7d5d2bf
network: fix double free()
2019-11-28 19:50:45 +01:00
Yu Watanabe
e681a2ee4d
man: use literal tag at one more place
2019-11-28 19:50:12 +01:00
Yu Watanabe
d2a56598d0
Merge pull request #14166 from keszybz/transient-unit-settings
...
Fix docs and some transient unit property passing
2019-11-28 17:23:30 +09:00
Yu Watanabe
403e4b4728
Merge pull request #14160 from mwilck/fix-shutdown-hang
...
Fix shutdown hang caused by recent udev change
2019-11-27 19:16:12 +09:00
Yu Watanabe
6eee88577d
udev: tiny update for log messages
2019-11-26 10:42:54 +01:00
Yu Watanabe
f5c3892266
network: also assume Table=local for ipv6 route if Type=local, broadcast, anycast or nat ( #14148 )
...
Also, if Type=multicast and scope is not set, then assume Scope=link.
Fixes #14122 .
2019-11-26 12:41:54 +09:00
Yu Watanabe
cfbb1c6def
Merge pull request #14134 from keszybz/variables-and-docs
...
Documentation and option parsing fixes
2019-11-26 12:40:30 +09:00
Yu Watanabe
8c99d40d47
travis: add missing closing quote sign
...
Fixes #14127 .
2019-11-24 13:15:20 +03:00
Yu Watanabe
08de195825
udev: do not propagate error in executing PROGRAM and IMPORT{program}
...
Also, this adds more logs.
Fixes #14027 .
2019-11-19 20:20:46 +01:00
Yu Watanabe
88b860034e
NEWS: SendRawOption= -> SendOption=
2019-11-19 11:52:36 +01:00
Yu Watanabe
c9fdaed079
man: add entry about SpeedMeter=
...
Closes #14002 .
2019-11-18 16:47:26 +01:00
Yu Watanabe
f0beb6f816
udev: silence warning about PROGRAM+= or IMPORT+= rules
...
Closes #14062 .
2019-11-18 16:46:12 +01:00
Yu Watanabe
dc11d2bf66
udevadm: ignore EROFS and return earlier
...
Fixes #14060 .
2019-11-18 16:07:21 +01:00
Yu Watanabe
0e96961d62
network: unify config_parse_dhcp_server_option_data() and config_parse_dhcp_send_option()
2019-11-18 23:39:03 +09:00
Yu Watanabe
461dbb2fa9
dhcp: remove struct sd_dhcp_raw_option
...
sd_dhcp_raw_option and sd_dhcp_option are essentially equivalent.
2019-11-18 23:37:22 +09:00
Yu Watanabe
d8b736bd0c
network: rename SendRawOption= to SendOption=
...
As DHCPv4.SendOption= and DHCPServer.SendRawOption= take the same
format.
2019-11-18 23:35:48 +09:00
Yu Watanabe
c00c3b64be
network: add more error logs
2019-11-18 15:26:55 +01:00
Yu Watanabe
ce0d4c4f91
Merge pull request #14056 from yuwata/dhcp-debug-logs
...
dhcp: add debug logs and propagate error in restarting client
2019-11-18 18:49:45 +09:00
Yu Watanabe
a339859f79
dhcp6: add debug logs
2019-11-17 23:58:43 +09:00
Yu Watanabe
944e23b8a0
dhcp4: propagate error in restarting DHCPv4 client
2019-11-17 23:52:46 +09:00
Yu Watanabe
f515c345d2
dhcp4: add debug logs
2019-11-17 23:48:46 +09:00
Yu Watanabe
586ec936c6
network: make SendOption= also take type field
...
This makes SendOption= and SendRawOption= takes values in the same
format.
2019-11-17 23:17:29 +09:00
Yu Watanabe
2e5580a8c1
network: rename DHCPRawOption to DHCPOptionDataType
...
And moves the definition from networkd-dhcp-server.[ch] to networkd-dhcp-common.[ch].
2019-11-17 23:00:11 +09:00
Yu Watanabe
599e10a1d2
network: fix logged error value
2019-11-17 22:51:06 +09:00
Yu Watanabe
62a7c3608e
network: fix indentation
2019-11-17 22:45:38 +09:00
Yu Watanabe
a566ed2c82
udev: do not append newline when write attributes
...
Before 25de7aa7b9 , the content is written
by `fprintf()` without new line. So WRITE_STRING_FILE_AVOID_NEWLINE flag
is necessary.
Fixes #13985 .
2019-11-12 09:25:00 +01:00
Yu Watanabe
b64b83d13e
udev: ignore error caused by device disconnection
...
During an add or change event, the device may be disconnected.
Fixes #13976 .
2019-11-12 14:58:53 +09:00
Yu Watanabe
ffdc9c891f
udev: fix error code in the log message
2019-11-12 14:58:53 +09:00
Yu Watanabe
4b613ec212
udev: ignore ENOENT when chmod_and_chown() device node
2019-11-12 14:58:53 +09:00
Yu Watanabe
e64664cefe
Merge pull request #13975 from keszybz/more-seccomp-syscalls
...
Add more syscalls to the seccomp lists
2019-11-09 23:27:34 +09:00
Yu Watanabe
3126d64e5f
sd-device-enumerator: do not return error when a device is removed
...
Fixes #13814 .
2019-11-05 22:13:11 +01:00
Yu Watanabe
95081e08d7
network: split struct Prefix into Prefix and RoutePrefix
2019-11-05 22:31:20 +09:00
Yu Watanabe
c631c3d6a3
Merge pull request #13939 from yuwata/network-fix-memleak-and-13938
...
network: fix memleak and invalid free function
2019-11-05 20:16:06 +09:00
Yu Watanabe
69d7eba188
sd-radv: fix memleak
2019-11-05 13:30:00 +09:00
Yu Watanabe
c1ed516cde
test: add testcase for issue #13938
2019-11-05 10:49:07 +09:00
Yu Watanabe
471e126b25
network: fix memleak in route_prefix_free()
2019-11-05 10:48:15 +09:00
Yu Watanabe
095b3a7d90
network: fix typo
2019-11-05 10:43:43 +09:00
Yu Watanabe
e7825b2359
network: fix invalid cleanup function
2019-11-05 10:39:15 +09:00
Yu Watanabe
9be6ae775f
network: fix memleak
2019-11-05 09:41:03 +09:00
Yu Watanabe
acb71754e1
network: use fix invalid free function
...
Fixes #13938 .
2019-11-05 09:40:55 +09:00
Yu Watanabe
146ca45902
util: drop unnecessary headers from util.c
2019-11-04 00:40:37 +09:00
Yu Watanabe
8e1e87a5de
tree-wide: drop double newline
2019-11-04 00:30:32 +09:00
Yu Watanabe
8cb28504a5
tree-wide: drop input.h when missing_input.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
1405cb653a
tree-wide: drop stdio.h when stdio-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
021cdf8330
tree-wide: drop signal.h when signal-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
d8704e6914
tree-wide: drop mman.h when missing_mman.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
0fb81b8abe
tree-wide: drop magic.h when missing_magic.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
e30e8b5073
tree-wide: drop stat.h or statfs.h when stat-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
92133d2878
tree-wide: drop socket.h when socket-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
af760d85c3
tree-wide: drop mntent.h when fstab-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
c415489932
tree-wide: drop libkmod.h when module-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
adb29d588e
tree-wide: drop blkid.h when blkid-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
e259108494
tree-wide: drop acl.h when acl-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
927d2351d7
tree-wide: drop pwd.h and grp.h when user-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
f21e58b47d
tree-wide: drop time.h when time-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
dc54946cea
tree-wide: drop capability.h when capability-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
df26692947
tree-wide: drop sched.h when missing_sched.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
a4dca9836b
tree-wide: drop gcrypt.h when gcrypt-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
a969d60645
tree-wide: drop locale.h when locale-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
99e0d09731
tree-wide: drop glob.h when glob-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
996f7e1cd0
tree-wide: drop dirent.h when dirent-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
1c1da38afc
tree-wide: drop alloca.h when alloc-util.h is included
2019-11-04 00:30:32 +09:00
Yu Watanabe
455fa9610c
tree-wide: drop string.h when string-util.h or friends are included
2019-11-04 00:30:32 +09:00
Yu Watanabe
f4dad55b8b
Merge pull request #13899 from poettering/in-gid-tweak
...
user-util: tweak to in_gid()
2019-11-03 22:54:32 +09:00
Yu Watanabe
5e467d74ad
Merge pull request #13909 from poettering/env-copy-pid
...
Fixes for the "saved_env" copy logic
2019-11-03 22:46:42 +09:00
Yu Watanabe
8574039520
Merge pull request #13916 from ddstreet/test-network
...
test-network: minor changes to work better on Debian/Ubuntu autopkgtest
2019-11-03 21:42:15 +09:00
Yu Watanabe
6878c02245
NEWS: mention NetworkEmulatorDuplicateRate= setting
2019-11-01 13:18:13 +09:00
Yu Watanabe
aab64de281
Merge pull request #13888 from ssahani/qdisc
...
tc qdisc: netem add support to duplicate packets.
2019-11-01 11:44:10 +09:00
Yu Watanabe
f5947a5e92
tree-wide: drop missing.h
2019-10-31 17:57:03 +09:00
Yu Watanabe
9648956d1f
test: move {test,fuzz}-fido-id-desc.c into src/udev/fido_id
2019-10-31 10:37:42 +09:00