summaryrefslogtreecommitdiffstats
path: root/src/network/test-network-tables.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* network: rename DHCPUseDomains -> UseDomainsYu Watanabe2024-04-191-1/+1
| | | | As it is also used for NDisc.
* tree-wide: make sure net/if.h is included before any linux/ headerFrantisek Sumsal2024-04-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The linux/ headers include linux/libc-compat.h that makes sure the linux/ headers won't redeclare symbols already declared by net/if.h, but glibc's net/if.h doesn't do that, so if the include order is reversed we'll end up with a bunch of errors about redeclared stuff: [3/519] Compiling C object test-network-tables.p/src_network_test-network-tables.c.o FAILED: test-network-tables.p/src_network_test-network-tables.c.o cc -Itest-network-tables.p -I. -I.. -Isrc/basic -I../src/basic -Isrc/fundamental -I../src/fundamental -Isrc/systemd -I../src/systemd -I../src/libsystemd/sd-bus -I../src/libsystemd/sd-device -I../src/libsystemd/sd-event -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-journal -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/shared -I../src/shared -Isrc/libsystemd-network -I../src/libsystemd-network -Isrc/network -I../src/network -I../src/network/netdev -I../src/network/tc -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -g -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays --param=ssp-buffer-size=4 -Wno-unused-result -Werror=shadow -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -fno-omit-frame-pointer -include config.h -pthread -DTEST_CODE=1 -MD -MQ test-network-tables.p/src_network_test-network-tables.c.o -MF test-network-tables.p/src_network_test-network-tables.c.o.d -o test-network-tables.p/src_network_test-network-tables.c.o -c ../src/network/test-network-tables.c In file included from ../src/basic/linux/if_bonding.h:47, from ../src/network/netdev/bond.h:5, from ../src/network/test-network-tables.c:3: ../src/basic/linux/if.h:111:41: error: redeclaration of enumerator ‘IFF_UP’ 111 | #define IFF_UP IFF_UP | ^~~~~~ ../src/basic/linux/if.h:84:9: note: previous definition of ‘IFF_UP’ with type ‘enum net_device_flags’ 84 | IFF_UP = 1<<0, /* sysfs */ | ^~~~~~ ../src/basic/linux/if.h:112:41: error: redeclaration of enumerator ‘IFF_BROADCAST’ 112 | #define IFF_BROADCAST IFF_BROADCAST | ^~~~~~~~~~~~~ ... This also drops remaining workarounds from the last time this issue was brought up (6f270e6bd8) since they shouldn't be needed anymore if the order of the includes is the "correct" one. I also added a comment to each affected include when this is inevitably encountered again in the future. Resolves: #32160
* test: always call test_setup_logging()Yu Watanabe2023-11-171-0/+3
|
* sd-dhcp6-client: add missing message typesYu Watanabe2021-10-121-1/+1
| | | | This also changes the prefix: DHCP6_ -> DHCP6_MESSAGE_.
* sd-lldp-rx: rename sd_lldp -> sd_lldp_rxYu Watanabe2021-09-271-2/+2
|
* sd-lldp: rename sd-lldp.[ch] -> sd-lldp-rx.[ch]Yu Watanabe2021-09-271-1/+1
|
* sd-netlink: drop sd_genl_family_t and introduce GenericNetlinkFamilyYu Watanabe2021-08-291-1/+0
| | | | | | | | | | | Kernel manages each genl family by its name, e.g. "nlctrl" or WG_GENL_NAME, and its ID (used for nlmsg_type) is determined dynamically when the corresponding module is loaded. This commit makes sd-netlink follow the same way; now, sd_genl_family_t is dropped, and sd_genl_message_new() takes a genl family name. Each genl family is resolved when it is used first time, and its information is stored in GenericNetlinkFamily.
* sd-netlink: split netlink-types.[ch] into small filesYu Watanabe2021-08-291-2/+0
| | | | Also renames several files.
* udev: make WakeOnLan= take multiple featuresYu Watanabe2021-06-081-1/+0
| | | | WAKE_XXX are flag, not enum.
* network: suffix types with _t in public headersLennart Poettering2021-02-181-4/+4
| | | | | | | | | | | | Apparently, in our current public headers (i.e. those called sd-*.h) we suffixed typedefs that we use as values with _t, but we didn't do this for enum typedefs. Fix that while this stuff is not actually public yet. With this scheme "value typedefs" now end systematically in _t, and "object typedefs" (i.e. structures that are typically passed around via pointers and not values) do not. No code changes, just some renaming.
* network: make use of SD_ENUM_FORCE_S64() for all public enumsLennart Poettering2021-02-161-0/+6
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* tree-wide: use the usual SPDX header for our own filesZbigniew Jędrzejewski-Szmek2020-10-291-0/+2
|
* network: cleanup header inclusionYu Watanabe2019-10-301-4/+4
|
* network: rename AddressFamilyBoolean -> AddressFamilyYu Watanabe2019-08-161-1/+1
| | | | We usually do not call an extended boolean as XxxBoolean.
* networkd: Option to use LinkLocalAddressing only when DHCP failsSusant Sahani2019-05-041-1/+1
| | | | | | | When LinkLocalAddressing=fallback or LinkLocalAddressing=ipv4-fallback then IPv4LL will be started only when DHCP fails. Closes #9648.
* test: add tests for string tables for lldp and ndisc eventsYu Watanabe2018-11-061-0/+4
|
* test: add test for radv_prefix_delegation_{from,to}_string()Yu Watanabe2018-11-031-0/+1
|
* test-network-tables: remove duplicate lineZbigniew Jędrzejewski-Szmek2018-10-281-1/+0
|
* test-network-tables: add dhcp6_message_type to testZbigniew Jędrzejewski-Szmek2018-07-241-1/+1
| | | | Follow-up for e91c99059b0d111bd681ea9077d014bd3b6a1f97.
* test: add comment in test-network-tables.cYu Watanabe2018-07-231-0/+1
|
* test-tables,test-network-tables: add a few more testsZbigniew Jędrzejewski-Szmek2018-05-281-0/+14
|
* test-tables*: sortZbigniew Jędrzejewski-Szmek2018-05-281-8/+8
|
* networkd: clean up main header file a bitTom Gundersen2016-11-141-1/+3
| | | | | Rename networkd.h to networkd-manager.h, to more accurately describe what it contains.
* networkd: netdev - move to separate subdirectoryTom Gundersen2016-11-131-2/+2
| | | | | This could (and should) be made into a separate daemon, at least move the sourcefiles out for now.
* tree-wide: use mdash instead of a two minusesZbigniew Jędrzejewski-Szmek2016-04-221-1/+1
|
* tree-wide: sort includesThomas Hindoe Paaboel Andersen2015-11-161-5/+4
| | | | Sort the includes accoding to the new coding style.
* sd-netlink: rename from sd-rtnlTom Gundersen2015-06-131-1/+1
|
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-231-1/+0
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* networkd: netdev - add ipvlan supportTom Gundersen2015-01-191-0/+1
|
* networkd: introduce an AddressFamilyBoolean enum typeLennart Poettering2015-01-131-1/+1
| | | | | | This introduces am AddressFamilyBoolean type that works more or less like a booleaan, but can optionally turn on/off things for ipv4 and ipv6 independently. THis also ports the DHCP field over to it.
* networkd: split out networkd-link.hTom Gundersen2014-08-121-0/+1
|
* test-tables: add new entriesZbigniew Jędrzejewski-Szmek2014-07-171-0/+26
One missing string found. A few things had to be moved around to make it possible to test them.