Yu Watanabe
253de60634
Merge pull request #11021 from ssahani/isatap
...
networkd: Add support to configure ISATAP tunnel
2018-12-05 23:13:17 +01:00
Yu Watanabe
36dd5ffd5d
util: drop missing.h from util.h
2018-12-04 10:00:34 +01:00
Yu Watanabe
f2a3de0116
tree-wide: add whitespace between type and variable name
2018-12-04 09:29:54 +01:00
Yu Watanabe
b403758ce0
ip-protocol-list: sort headers
2018-12-04 09:18:21 +01:00
Yu Watanabe
38e0c63d72
missing: move char{16,32}_t definitions to missing_type.h
2018-12-04 08:38:18 +01:00
Yu Watanabe
8ca2702f00
missing: move capabilities to missing_capability.h
2018-12-04 08:38:14 +01:00
Yu Watanabe
2a03bb3e65
missing: move prctl related entries to missing_prctl.h
2018-12-04 08:34:46 +01:00
Yu Watanabe
e01819f84b
missing: move statx related definitions to missing_stat.h
2018-12-04 08:27:50 +01:00
Yu Watanabe
1e54f0ab15
missing: move entries defined in magic.h to missing_magic.h
2018-12-04 07:55:23 +01:00
Yu Watanabe
31c2ddabea
missing: move input related entries to missing_input.h
2018-12-04 07:51:52 +01:00
Yu Watanabe
3843e8260c
missing: rename securebits.h to missing_securebits.h
2018-12-04 07:49:24 +01:00
Yu Watanabe
b9683baffe
missing: move btrfs related entries to missing_btrfs.h and missing_btrfs_tree.h
2018-12-04 07:46:59 +01:00
Yu Watanabe
d7276b61bd
missing: move missing entries in keyctl.h to missing_keyctl.h
2018-12-04 07:42:32 +01:00
Yu Watanabe
475c18f06a
meson: add missing missing_*.h
2018-12-04 07:34:47 +01:00
Yu Watanabe
b1c7e54ad7
Merge pull request #11039 from yuwata/fix-11036
...
missing: re-add mistakenly dropped entries
2018-12-04 13:48:47 +09:00
Yu Watanabe
22b749d6ef
missing: rearrange missing_if_link.h to support centos
2018-12-04 02:35:36 +01:00
Yu Watanabe
b6459df80f
missing: re-add mistakenly dropped entries
...
These entries are mistakenly dropped by 9714c020fc .
Fixes #11036 .
2018-12-04 01:45:14 +01:00
Yu Watanabe
7934dede41
network: drop unnecessary buffers
2018-12-03 12:15:26 +01:00
Yu Watanabe
9714c020fc
missing: split network related entries
...
Also adds comments which kernel version added the entries.
Closes #10553 .
2018-12-03 10:31:05 +01:00
Yu Watanabe
c818721579
Merge pull request #11011 from poettering/tmpfile-util
...
split up fileio.c a bit
2018-12-03 02:04:31 +09:00
Yu Watanabe
71da167373
sysusers: define main through macro
...
This also fixes possible memleak when uid/gid or user/group name
in database are conflicted.
2018-12-02 12:18:54 +01:00
Yu Watanabe
f030d36cd0
sysusers: use fgetgrent_sane()
2018-12-02 12:18:54 +01:00
Yu Watanabe
8276855e48
lldp: rename lldp_neighbor_id_hash_ops and set value destructor
2018-12-02 12:18:54 +01:00
Yu Watanabe
e924c60f69
udev: use hashmap_clear_free_key() and hashmap_free_free_key()
2018-12-02 12:18:54 +01:00
Yu Watanabe
67818055b7
portable: introduce portable_metadata_hash_ops and use it
2018-12-02 12:18:54 +01:00
Yu Watanabe
bb1a05d6f3
machine: introduce machine_hash_ops and use it
2018-12-02 12:18:54 +01:00
Yu Watanabe
b07ec5a173
machine-image: introduce image_hash_ops and use it
2018-12-02 12:18:54 +01:00
Yu Watanabe
87938c3bea
tmpfiles: define main through macro
2018-12-02 12:18:54 +01:00
Yu Watanabe
71a0be76cd
tmpfiles: make load_unix_sockets() return negative errno on failure
2018-12-02 12:18:54 +01:00
Yu Watanabe
a4a90e65c7
cryptsetup-generator: define main through macro
2018-12-02 12:18:54 +01:00
Yu Watanabe
f1bcdd0590
sd-bus: introduce track_item_hash_ops and use it
2018-12-02 12:18:49 +01:00
Yu Watanabe
6121fc3059
dhcp: introduce dhcp_lease_hash_ops and use it
2018-12-02 12:17:28 +01:00
Yu Watanabe
5f5b612203
cgtop: use SWAP_TWO() macro
2018-12-02 12:06:07 +01:00
Yu Watanabe
fb8d181e59
cgtop: introduce group_hash_ops and use it
2018-12-02 12:06:02 +01:00
Yu Watanabe
98233ee5e0
test: add tests for destructors of hashmap or set
2018-12-02 12:05:16 +01:00
Yu Watanabe
59a5cda7b9
hash-func: add destructors for key and value
...
If they are set, then they are called in hashmap_clear() or
hashmap_free().
2018-12-02 11:59:07 +01:00
Yu Watanabe
7a08d314f2
tree-wide: make hash_ops typesafe
2018-12-02 07:53:27 +01:00
Yu Watanabe
25073e5012
hash-funcs: make basic hash_ops typesafe
2018-12-02 07:48:29 +01:00
Yu Watanabe
d1005d1c00
hash-funcs: introduce macro to create typesafe hash_ops
2018-12-02 07:48:12 +01:00
Yu Watanabe
e30f9c972b
util: define free_func_t
2018-12-02 06:34:25 +01:00
Yu Watanabe
ee05335f43
hashmap: fix minor coding style issue
2018-12-02 06:34:25 +01:00
Yu Watanabe
302a796f5a
network: use typesafe netlink_call_async() macro where applicable
2018-12-02 06:29:32 +01:00
Yu Watanabe
10ff4eb621
network: rename ndisc_route_handler() to ndisc_netlink_message_handler()
...
As it is also called when configuring addresses.
2018-12-02 06:28:44 +01:00
Yu Watanabe
bd1175bc46
network: add assertions
...
As they do not have default callback functions.
2018-12-02 06:23:45 +01:00
Yu Watanabe
4645ad47ac
network: use route_remove_handler() as the default callback of route_remove()
2018-12-02 06:23:45 +01:00
Yu Watanabe
63ae056909
network: use address_remove_handler() as the default callback of address_remove()
2018-12-02 06:23:45 +01:00
Yu Watanabe
29889b4d24
network: set default callbacks for routing_policy_rule_configure() and routing_policy_rule_remove()
2018-12-02 06:23:45 +01:00
Yu Watanabe
cccf9517f1
network: move address_label_handler() to networkd-address-label.c
...
And use it as the default callback function of address_label_configure().
2018-12-02 06:23:45 +01:00
Yu Watanabe
a9eea6065c
network: simplify dhcp6_get_prefix_delegation()
2018-12-02 06:23:45 +01:00
Yu Watanabe
3365841384
netlink: add typesafe netlink functions
2018-12-02 06:23:40 +01:00
Yu Watanabe
1e26b1dfc7
macro: introduce DEFINE_TRIVIAL_DESTRUCTOR() macro
2018-12-02 06:21:11 +01:00
Yu Watanabe
deae09ccc5
libsystemd: introduce _sd_destroy_t
2018-12-02 06:21:11 +01:00
Yu Watanabe
d2b42d63c4
core,run: make SocketProtocol= accept protocol name in upper case an protocol number
2018-12-02 06:13:47 +01:00
Yu Watanabe
3a269dcf51
network: make IPProtocol= also accept IP protocol number
2018-12-02 06:13:47 +01:00
Yu Watanabe
97f9df9e30
network: rename Protocol= in [RoutingPolicyRule] to IPProtocol=
2018-12-02 06:13:47 +01:00
Yu Watanabe
dca2309108
test: add tests for ip_protocol_{from,to}_name()
2018-12-02 06:13:47 +01:00
Yu Watanabe
0667a0c497
util: introduce parse_ip_protocol()
...
Not only protocol name in lower case, but it optionally accepts
IP protocol name in upper case and IP protocol number.
2018-12-02 06:13:41 +01:00
Yu Watanabe
cedfe0b02b
util: cast smaller type to large type
2018-12-02 05:58:18 +01:00
Yu Watanabe
da96ad5ae2
util: rename socket_protocol_{from,to}_name() to ip_protocol_{from,to}_name()
2018-12-02 05:48:27 +01:00
Yu Watanabe
636a13d1ec
Merge pull request #10977 from yuwata/test-network-remove-state-file
...
test-network: optionally remove state file of networkd
2018-11-29 13:38:08 +09:00
Yu Watanabe
c0bf673376
test-network: stop systemd-networkd.socket during testing
...
To suppress noisy warning messages.
2018-11-28 22:00:40 +01:00
Yu Watanabe
bad4969bba
test-network: clear state file before starting networkd
...
Otherwise, some tests may disturb others, e.g.,
NetworkdNetWorkTests.test_routing_policy_rule_port_range and
NetworkdNetWorkTests.test_routing_policy_rule.
2018-11-28 21:40:57 +01:00
Yu Watanabe
d486a2d0c1
test-network: use /run instead of legacy /var/run
2018-11-28 19:55:01 +01:00
Yu Watanabe
50ae773f85
Merge pull request #10970 from yuwata/from-name-return-negative-errno
...
util: make *_from_name() returns negative errno on error
2018-11-29 03:18:03 +09:00
Yu Watanabe
fab57f7f13
Merge pull request #10948 from ssahani/iprule-port-proto
...
networkd: add support to configure ip rule port range and protocol.
2018-11-29 03:17:36 +09:00
Yu Watanabe
acf4d15893
util: make *_from_name() returns negative errno on error
2018-11-28 20:20:50 +09:00
Yu Watanabe
7b5e750d2a
util: also move scripts related to socket-protocol-list.[ch] to shared/
...
The source files were moved to shared/. Let's also move the relevant scripts.
2018-11-28 20:20:29 +09:00
Yu Watanabe
6ec439fd4b
tools: move generate-gperfs.py to tools/
2018-11-28 20:19:41 +09:00
Yu Watanabe
66e3834010
Merge pull request #10967 from evverx/check-directives
...
travis: make sure that *.perf and directives.* files are in sync
2018-11-28 14:02:42 +09:00
Yu Watanabe
466a2bee94
Merge pull request #10952 from evverx/keep-fuzz-udev-rules-going
...
tests: make fuzz-udev-rules work also in the environment created by run_minijail
2018-11-28 11:33:27 +09:00
Yu Watanabe
9b6ffef372
man: update explanation for boolean options
2018-11-27 15:07:58 +09:00
Yu Watanabe
025314d97d
man: improve the explanation of "Defaults to unset"
2018-11-27 14:40:25 +09:00
Yu Watanabe
2fb14a12cf
Merge pull request #10947 from poettering/sd-radv-fixes
...
sd-radv fixes
2018-11-27 14:24:43 +09:00
Yu Watanabe
f5050e48ae
test-network: add tests for #5430 and GatewayOnLink=
2018-11-26 18:47:52 +01:00
Yu Watanabe
d80734f7cd
test-network: add one more test for netdev dropin .conf files
...
For netdev, config files are loaded twice, and the first time,
only Match and NetDev setions are read. So, the test given by
the previous commit covers only the second loading.
This adds another test that also covers the first loading.
2018-11-26 22:48:27 +09:00
Yu Watanabe
938dbb292a
Merge pull request #10901 from poettering/startswith-list
...
add new STARTSWITH_SET() macro
2018-11-26 22:40:51 +09:00
Yu Watanabe
013c8dc94d
test-network: add tests for dropin .conf files
2018-11-26 15:01:01 +09:00
Yu Watanabe
6ce611e57c
network: also load foo.netdev.d/*.conf
...
Fixes #9940 .
2018-11-26 14:28:44 +09:00
Yu Watanabe
6acf1ccba5
udevd: do not call udev_ctrl_enable_receiving() if the socket is passed from pid1
...
Before c4b69e990f , if the socket fd is
passed from pid1, `udev_ctrl_enable_receiving()` was not called.
Let's preserve the original logic.
2018-11-26 11:57:48 +09:00
Yu Watanabe
49c603bd5e
udev: drop duplicate whitespaces
2018-11-26 11:53:21 +09:00
Yu Watanabe
572909a38a
udev-ctrl: update log messages
2018-11-26 11:52:40 +09:00
Yu Watanabe
b4ba2fe3f1
udev-rules: include device sysname in log messages
2018-11-26 11:37:29 +09:00
Yu Watanabe
9315f853c4
udev-ctrl: fix coding style isuues
2018-11-26 11:10:46 +09:00
Yu Watanabe
87da558f2b
Merge pull request #10926 from AsciiWolf/copyright
...
Drop my copyright
2018-11-26 09:33:32 +09:00
Yu Watanabe
cbae79b8d0
man: systemd-boot does not read loader.conf.d/*.conf
...
Fixes #10923 .
2018-11-26 06:58:31 +09:00
Yu Watanabe
d949c467b8
sd-boot: fix trailing whitespace trimming
...
Fixes #10922 .
2018-11-26 06:43:36 +09:00
Yu Watanabe
986ab0d2dc
udevd: do not set buffer size if the socket is passed from pid1
...
Before c4b69e990f , if the socket fd is
passed from pid1, `udev_monitor_set_receive_buffer_size()` (now it is
a wrapper of `sd_device_monitor_set_receive_buffer_size()`) was not
called. Let's preserve the original logic.
2018-11-25 20:17:25 +09:00
Yu Watanabe
916707cca5
sd-device: do not call device_monitor_enable_receiving() for passed fd from pid1
...
Before c4b69e990f , if the socket fd is
passed from pid1, `udev_monitor_enable_receiving()` (now it is a wrapper
of `device_monitor_enable_receiving`) was not called.
Let's preserve the original logic.
Fixes #10754 .
2018-11-25 20:14:17 +09:00
Yu Watanabe
f1d7b7874e
sd-device: check whether filter is updated or not in sd_device_monitor_filter_update()
2018-11-25 15:26:43 +09:00
Yu Watanabe
5cee547a94
sd-device: update log message
2018-11-25 14:06:56 +09:00
Yu Watanabe
779c923467
sd-device: fix return value on error path
2018-11-25 14:06:27 +09:00
Yu Watanabe
0d7f7c2fde
basic/list: fix minor coding style issue
2018-11-24 04:26:10 +09:00
Yu Watanabe
1492fa526e
basic/list: add missing header
...
Some macros use assert() which is (re)defined in macro.h
2018-11-24 04:25:10 +09:00
Yu Watanabe
0d94088e4e
import: use structured initializers
2018-11-24 03:53:18 +09:00
Yu Watanabe
c3e658004a
import: use _cleanup_ attribute for CURL object
2018-11-24 03:14:32 +09:00
Yu Watanabe
d43c37bbea
Merge pull request #10893 from keszybz/udev-cleanup-followup
...
Udev cleanup follow-ups
2018-11-23 23:48:44 +09:00
Yu Watanabe
a5a59a2447
test: add more tests for subsystem filter
2018-11-23 06:46:29 +09:00
Yu Watanabe
c6f09e6a2d
locale: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
af7865c1b7
locale: store polkit_registry in Context
2018-11-23 06:22:30 +09:00
Yu Watanabe
6804d7a849
locale: rename context_free() to context_clear()
2018-11-23 06:22:30 +09:00