summaryrefslogtreecommitdiffstats
path: root/src/basic/linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
* glibc: Conditionally #include <linux/fs.h> to resolve ↵Rudi Heitbaum2023-02-013-0/+4
| | | | | | fsconfig_command/mount_attr conflict with glibc 2.36 Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
* basic/linux: update linux uapi headersFrantisek Sumsal2023-01-2518-48/+589
| | | | | | | | | | | | | | | | | | | | | IPPROTO_L2TP was moved from linux/l2tp.h to linux/in.h [0], so let's reflect that change to fix build with newer kernels: ``` In file included from ../src/libsystemd/sd-netlink/netlink-types-genl.c:10: ../src/basic/linux/l2tp.h:16: error: "IPPROTO_L2TP" redefined [-Werror] 16 | #define IPPROTO_L2TP 115 | In file included from ../src/libsystemd/sd-netlink/netlink-types-genl.c:3: /usr/include/netinet/in.h:85: note: this is the location of the previous definition 85 | #define IPPROTO_L2TP IPPROTO_L2TP | cc1: all warnings being treated as errors ``` When at it, update the rest of the headers we ship as well. [0] https://github.com/torvalds/linux/commit/65b32f801bfbc54dc98144a6ec26082b59d131ee
* basic/linux: update kernel headers to 5.19-rc1Yu Watanabe2022-06-1011-27/+451
|
* basic/linux: update linux headers from v5.16-rc6Yu Watanabe2021-12-2511-17/+294
|
* basic/linux: update nl80211.hYu Watanabe2021-09-291-0/+43
|
* basic: delete loadavg.h copyLuca Boccassi2021-09-252-53/+1
| | | | | | | | | | loadavg.h is an internal header of the Linux source repository, and as such it is licensed as GPLv2-only, without syscall exception. We use it only for 4 macros, which are simply doing some math calculations that cannot thus be subject to copyright. Reimplement the same calculations in another internal header and delete loadavg.h from our tree.
* Drop bundled copy of linux/if_arp.hZbigniew Jędrzejewski-Szmek2021-09-211-165/+0
| | | | | | | | | | | | | | | | | | | | | | | | | As far as I can see, we use this to get a list of ARPHRD_* defines (used in particular for Type= in .link files). If we drop our copy, and build against old kernel headers, the user will have a shorter list of types available. This seems OK, and I don't think it's worth carrying our own version of this file just to have newest possible entries. 7c5b9952c4f6e2b72f90edbe439982528b7cf223 recently updated this file, but we'd have to update it every time the kernel adds new entries. But if we look at the failure carefully: src/basic/arphrd-from-name.gperf:65:16: error: ‘ARPHRD_MCTP’ undeclared (first use in this function); did you mean ‘ARPHRD_FCPP’? 65 | MCTP, ARPHRD_MCTP | ^~ | ARPHRD_FCPP we see that the list we were generating was from the system headers, so it was only as good as the system headers anyway, without the newer entries in our bundled copy, if there were any. So let's make things simpler by always using system headers. And if somebody wants to fix things so that we always have the newest list, then we should just generate and store the converted list, not the full header.
* basic/linux: Sync if_arp.h with Linux 5.14Chris Packham2021-09-101-0/+1
| | | | | | ARPHRD_MCTP was added in 5.14. Sync if_arp.h to pick up the definition Fixes #20694
* basic/linux: add more bridge headersYu Watanabe2021-08-312-0/+138
|
* basic: copy genetlink.h to repositoryYu Watanabe2021-08-291-0/+102
|
* basic/linux: update linux uapi headersYu Watanabe2021-08-1517-663/+1115
|
* src: shellcheck-ify shell scriptsFrantisek Sumsal2021-04-201-4/+5
|
* network: Implement B.A.T.M.A.N. Advanced interface typeAnnika Wickert2021-02-241-0/+704
|
* tree-wide: add spdx header on all scripts and helpersZbigniew Jędrzejewski-Szmek2021-01-281-1/+1
| | | | | | Even though many of those scripts are very simple, it is easier to include the header than to try to say whether each of those files is trivial enough not to require one.
* Merge pull request #18230 from ssahani/macvlan-bcqueuelenYu Watanabe2021-01-171-2/+5
|\ | | | | network: macvlan - add support to configure rx queue for broadcast / multicast
| * basic: Add macvlan netlink attributesSusant Sahani2021-01-141-2/+5
| |
* | tree-wide: use curl --failZbigniew Jędrzejewski-Szmek2021-01-151-2/+2
|/ | | | | curl will save the 404 response page (or another error) if the page download fails, which we never want. Let it error out instead.
* linux: move nl80211.h to basic/linuxYu Watanabe2021-01-111-0/+7127
| | | | As sd-netlink uses the header.
* linux: import nf_tables and nfnetlink headers from Linux 5.8Florian Westphal2020-12-162-0/+1950
| | | | | | Will be used/needed in the upcoming nfnetlink/nftables support. This follows existing model where kernel uapi headers are cached locally.
* basic/linux: update kernel headersYu Watanabe2020-12-037-50/+282
| | | | From kernel commit 34816d20f173a90389c8a7e641166d8ea9dce70a.
* Merge pull request #15206 from anitazha/systoomd-v0Zbigniew Jędrzejewski-Szmek2020-10-151-0/+48
|\ | | | | systemd-oomd
| * parse-util: add parse_loadavg_fixed_pointAnita Zhang2020-10-081-0/+48
| |
* | basic: import linux/ipv6_route.hYu Watanabe2020-10-071-0/+64
|/
* util: update kernel headers (v5.9-rc5)Yu Watanabe2020-09-1713-49/+484
|
* util: wireguard is merged into upstream kernelYu Watanabe2020-09-171-5/+1
|
* linux: update headers from v5.6Yu Watanabe2020-03-129-0/+226
|
* Merge pull request #15036 from yuwata/can-termination-modYu Watanabe2020-03-071-0/+144
|\ | | | | network: add CAN Termination tristate option
| * linux: add can/netlink.hYu Watanabe2020-03-061-0/+144
| |
* | treewide: more portable bash shebangsJörg Thalheim2020-03-051-1/+1
|/ | | | | | | | | | | | | | | | As in 2a5fcfae024ffc370bb780572279f45a1da3f946 and in 3e67e5c9928f8b1e1c5a63def88d53ed1fed12eb using /usr/bin/env allows bash to be looked up in PATH rather than being hard-coded. As with the previous changes the same arguments apply - distributions have scripts to rewrite shebangs on installation and they know what locations to rely on. - For tests/compilation we should rather rely on the user to have setup there PATH correctly. In particular this makes testing from git easier on NixOS where do not provide /bin/bash to improve compose-ability.
* linux: update headersYu Watanabe2019-12-1511-754/+802
|
* network: introduce TrafficControlSusant Sahani2019-10-301-0/+1184
| | | | Add network delay to a interface
* network: introduce ip nexthop routingSusant Sahani2019-10-142-4/+70
| | | | | | | | | | Used to manipulate entries in the kernel's nexthop tables. Example: ``` [NextHop] Id=3 Gateway=192.168.5.1 ```
* linux: update headers from current kernel masterYu Watanabe2019-05-1612-13/+68
|
* codespell: fix spelling errorsBen Boeckel2019-04-293-5/+5
|
* linux: import if_ether.h from kernel-5.0Yu Watanabe2019-04-161-0/+169
| | | | | | | | | | | kernel-4.15's if_ether.h has a bug that the header does not provide 'struct ethhdr'. The bug is introduced by 6926e041a8920c8ec27e4e155efa760aa01551fd (4.15-rc8) and fixed by da360299b6734135a5f66d7db458dcc7801c826a (4.16-rc3). This makes systemd built with kernel-4.15 headers. Fixes #12319.
* linux: also import l2tp.h from kernel-5.0Yu Watanabe2019-04-131-0/+201
| | | | | | | | The L2TP_ATTR_UDP_ZERO_CSUM6_{TX,RX} attributes are introduced by 6b649feafe10b293f4bd5a74aca95faf625ae525, which is included in kernel-3.16. To support older kernel, let's import the header. Fixes #12300.
* linux: also import linux/in.h and in6.h from kernel-5.0Yu Watanabe2019-04-132-0/+604
| | | | | | | | | Now linux/in.h has better conflict detection with glibc's netinet/in.h. So, let's import the headers. Note that our code already have many workarounds for the conflict, but in this commit does not drop them. Let's do that in the later commits if this really helps.
* linux: move netdevice.h from shared/linux to basic/linuxYu Watanabe2019-04-131-0/+66
| | | | As the header linux/if_arp.h includes linux/netdevice.h.
* linux: import if_macsec.h from kernel-5.0Yu Watanabe2019-04-121-0/+177
| | | | MACsec is introduced since kernel-4.6. Let's support order kernels.
* tree-wide: drop several missing_*.h and import relevant headers from kernel-5.0Yu Watanabe2019-04-1118-0/+5824
|
* build-sys: drop Makefile symlink in src/basic/linuxLennart Poettering2016-02-131-1/+0
| | | | | The dir is not used otherwise, hence let's drop the Makefile, so that the dir stops to exist, too.
* build-sys: split internal basic/ library from shared/Kay Sievers2015-06-111-0/+1
basic/ can be used by everything cannot use anything outside of basic/ libsystemd/ can use basic/ cannot use shared/ shared/ can use libsystemd/