1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00
systemd/test/fuzz/fuzz-network-parser
Evgeny Vereshchagin 220fa139de tests: add a couple of files containing all the sections and directives
This should help the fuzzers to discover code paths faster.

In case anyone is interested, they were generated with the following script
```
perl -aF'/[\s,]+/' -ne '
if (my ($s, $d) = ($F[0] =~ /^([^\s\.]+)\.([^\s\.]+)$/)) { $d{$s}{$d} = 1; }
END { while (my ($key, $value) = each %d) {
    printf "[%s]\n%s\n", $key, join("\n", keys(%$value))
}}'
```
by passing src/network/networkd-network-gperf.gperf and
src/network/netdev/netdev-gperf.gperf to it.
2018-11-06 19:42:29 +01:00
..
21-vlan.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
23-active-slave.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
23-bond199.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
23-emit-lldp.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
23-primary-slave.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
23-test1-bond199.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
24-lldp.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
24-search-domain.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-address-link-section.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-address-section-miscellaneous.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-address-section.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-ipv6-address-label-section.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-link-section-unmanaged.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-route-section.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-route-tcp-window-settings.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-route-type.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
25-sysctl.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
26-bridge-slave-interface-1.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
26-bridge-slave-interface-2.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
bridge99.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
configure-without-carrier.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-anonymize.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-critical-connection.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-ipv4-dhcp-settings.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-ipv4-only-ipv6-disabled.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-ipv4-only.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-ipv6-only.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-ipv6-rapid-commit.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-listen-port.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-route-metric.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-route-table.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client-timezone-router.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-client.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-server-timezone-router.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-server-veth-peer.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-server.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
dhcp-v4-server-veth-peer.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
directives.network tests: add a couple of files containing all the sections and directives 2018-11-06 19:42:29 +01:00
github-10639 tests: add a reporoducer for https://github.com/systemd/systemd/issues/10639 2018-11-06 19:01:32 +01:00
gretap.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
gretun.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
ip6gretap.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
ip6tnl.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
ipip.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
ipv6-prefix-veth.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
ipv6-prefix.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
ipvlan.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
macvlan.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
macvtap.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
routing-policy-rule.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
sit.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
test-static.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
vti6.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
vti.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00
vxlan.network tests: add some data that can be fed to fuzz-network-parser 2018-11-06 19:01:32 +01:00