tests: add some data that can be fed to fuzz-network-parser
This commit is contained in:
parent
a633d5b997
commit
efc1a59af6
5
test/fuzz/fuzz-network-parser/21-vlan.network
Normal file
5
test/fuzz/fuzz-network-parser/21-vlan.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
VLAN=vlan99
|
6
test/fuzz/fuzz-network-parser/23-active-slave.network
Normal file
6
test/fuzz/fuzz-network-parser/23-active-slave.network
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Bond=bond199
|
||||
ActiveSlave=true
|
2
test/fuzz/fuzz-network-parser/23-bond199.network
Normal file
2
test/fuzz/fuzz-network-parser/23-bond199.network
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Match]
|
||||
Name=bond199
|
5
test/fuzz/fuzz-network-parser/23-emit-lldp.network
Normal file
5
test/fuzz/fuzz-network-parser/23-emit-lldp.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=veth-peer
|
||||
|
||||
[Network]
|
||||
EmitLLDP=yes
|
6
test/fuzz/fuzz-network-parser/23-primary-slave.network
Normal file
6
test/fuzz/fuzz-network-parser/23-primary-slave.network
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Bond=bond199
|
||||
PrimarySlave=true
|
6
test/fuzz/fuzz-network-parser/23-test1-bond199.network
Normal file
6
test/fuzz/fuzz-network-parser/23-test1-bond199.network
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
Bond=bond199
|
||||
PrimarySlave=true
|
5
test/fuzz/fuzz-network-parser/24-lldp.network
Normal file
5
test/fuzz/fuzz-network-parser/24-lldp.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
LLDP=yes
|
7
test/fuzz/fuzz-network-parser/24-search-domain.network
Normal file
7
test/fuzz/fuzz-network-parser/24-search-domain.network
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Address=192.168.42.100
|
||||
DNS=192.168.42.1
|
||||
Domains= one two three four five six seven eight nine ten
|
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Link]
|
||||
MACAddress=00:01:02:aa:bb:cc
|
|
@ -0,0 +1,10 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Address]
|
||||
Address=10.2.3.4/16
|
||||
PreferredLifetime=0
|
||||
Scope=link
|
||||
|
||||
[Address]
|
||||
Address=2001:0db8:0:f101::1/64
|
11
test/fuzz/fuzz-network-parser/25-address-section.network
Normal file
11
test/fuzz/fuzz-network-parser/25-address-section.network
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Address]
|
||||
Address=10.2.3.4/16
|
||||
Peer=10.2.3.5/16
|
||||
Label=32
|
||||
|
||||
[Address]
|
||||
Address=10.6.7.8/16
|
||||
Label=33
|
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[IPv6AddressLabel]
|
||||
Label=4444
|
||||
Prefix=2004:da8:1:0::/64
|
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Link]
|
||||
MACAddress=00:01:02:aa:bb:cc
|
||||
Unmanaged=true
|
8
test/fuzz/fuzz-network-parser/25-route-section.network
Normal file
8
test/fuzz/fuzz-network-parser/25-route-section.network
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Address=192.168.0.15/24
|
||||
|
||||
[Route]
|
||||
Gateway=192.168.0.1
|
|
@ -0,0 +1,10 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Route]
|
||||
Destination=192.168.1.1
|
||||
InitialCongestionWindow=20
|
||||
|
||||
[Route]
|
||||
Destination=192.168.1.2
|
||||
InitialAdvertisedReceiveWindow=30
|
14
test/fuzz/fuzz-network-parser/25-route-type.network
Normal file
14
test/fuzz/fuzz-network-parser/25-route-type.network
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Route]
|
||||
Type=blackhole
|
||||
Destination=202.54.1.2
|
||||
|
||||
[Route]
|
||||
Type=unreachable
|
||||
Destination=202.54.1.3
|
||||
|
||||
[Route]
|
||||
Type=prohibit
|
||||
Destination=202.54.1.4
|
10
test/fuzz/fuzz-network-parser/25-sysctl.network
Normal file
10
test/fuzz/fuzz-network-parser/25-sysctl.network
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
IPForward=true
|
||||
IPv6PrivacyExtensions=true
|
||||
IPv6DuplicateAddressDetection=3
|
||||
IPv6HopLimit=5
|
||||
IPv4ProxyARP=true
|
||||
IPv6ProxyNDP=true
|
|
@ -0,0 +1,11 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Bridge=bridge99
|
||||
|
||||
[Bridge]
|
||||
Cost=400
|
||||
HairPin = true
|
||||
FastLeave = true
|
||||
UnicastFlood = true
|
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
Bridge=bridge99
|
6
test/fuzz/fuzz-network-parser/bridge99.network
Normal file
6
test/fuzz/fuzz-network-parser/bridge99.network
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=bridge99
|
||||
|
||||
[Network]
|
||||
Address=192.168.0.15/24
|
||||
Gateway=192.168.0.1
|
|
@ -0,0 +1,7 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
Address=192.168.0.15/24
|
||||
Gateway=192.168.0.1
|
||||
ConfigureWithoutCarrier=true
|
16
test/fuzz/fuzz-network-parser/dhcp-client-anonymize.network
Normal file
16
test/fuzz/fuzz-network-parser/dhcp-client-anonymize.network
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
IPv6AcceptRA=false
|
||||
|
||||
[DHCP]
|
||||
Anonymize=true
|
||||
UseMTU=true
|
||||
UseRoutes=true
|
||||
SendHostname=true
|
||||
UseHostname=true
|
||||
Hostname=test-hostname
|
||||
ClientIdentifier=mac
|
||||
VendorClassIdentifier=SusantVendorTest
|
|
@ -0,0 +1,9 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
IPv6AcceptRA=false
|
||||
|
||||
[DHCP]
|
||||
CriticalConnection=true
|
|
@ -0,0 +1,15 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
IPv6AcceptRA=false
|
||||
|
||||
[DHCP]
|
||||
UseMTU=true
|
||||
UseRoutes=true
|
||||
SendHostname=true
|
||||
UseHostname=true
|
||||
Hostname=test-hostname
|
||||
ClientIdentifier=mac
|
||||
VendorClassIdentifier=SusantVendorTest
|
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
IPv6AcceptRA=false
|
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv6
|
|
@ -0,0 +1,8 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv6
|
||||
|
||||
[DHCP]
|
||||
RapidCommit=false
|
|
@ -0,0 +1,8 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
|
||||
[DHCP]
|
||||
ListenPort=5555
|
|
@ -0,0 +1,10 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
IPv6AcceptRA=false
|
||||
|
||||
[DHCP]
|
||||
UseRoutes=true
|
||||
RouteMetric=24
|
|
@ -0,0 +1,10 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
IPv6AcceptRA=false
|
||||
|
||||
[DHCP]
|
||||
UseRoutes=true
|
||||
RouteTable=12
|
|
@ -0,0 +1,8 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
IPv6AcceptRA=false
|
||||
DHCP=ipv4
|
||||
UseRoutes=true
|
||||
UseTimezone=true
|
5
test/fuzz/fuzz-network-parser/dhcp-client.network
Normal file
5
test/fuzz/fuzz-network-parser/dhcp-client.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
|
@ -0,0 +1,13 @@
|
|||
[Match]
|
||||
Name=veth-peer
|
||||
|
||||
[Network]
|
||||
IPv6AcceptRA=false
|
||||
Address=192.168.5.1/24
|
||||
DHCPServer=yes
|
||||
|
||||
[DHCPServer]
|
||||
PoolOffset=10
|
||||
PoolSize=50
|
||||
EmitRouter=yes
|
||||
Timezone=Europe/Berlin
|
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=veth-peer
|
||||
|
||||
[Network]
|
||||
Address=2600::1
|
||||
Address=192.168.5.1/24
|
12
test/fuzz/fuzz-network-parser/dhcp-server.network
Normal file
12
test/fuzz/fuzz-network-parser/dhcp-server.network
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Match]
|
||||
Name=veth-peer
|
||||
|
||||
[Network]
|
||||
Address=192.168.5.1/24
|
||||
DHCPServer=yes
|
||||
|
||||
[DHCPServer]
|
||||
PoolOffset=10
|
||||
PoolSize=50
|
||||
DNS=192.168.5.1
|
||||
NTP=192.168.5.1
|
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=veth-peer
|
||||
|
||||
[Network]
|
||||
Address=192.168.0.1
|
||||
Address=192.168.5.1
|
5
test/fuzz/fuzz-network-parser/gretap.network
Normal file
5
test/fuzz/fuzz-network-parser/gretap.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=gretap99
|
5
test/fuzz/fuzz-network-parser/gretun.network
Normal file
5
test/fuzz/fuzz-network-parser/gretun.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=gretun99
|
5
test/fuzz/fuzz-network-parser/ip6gretap.network
Normal file
5
test/fuzz/fuzz-network-parser/ip6gretap.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=ip6gretap99
|
5
test/fuzz/fuzz-network-parser/ip6tnl.network
Normal file
5
test/fuzz/fuzz-network-parser/ip6tnl.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=ip6tnl99
|
5
test/fuzz/fuzz-network-parser/ipip.network
Normal file
5
test/fuzz/fuzz-network-parser/ipip.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=ipiptun99
|
5
test/fuzz/fuzz-network-parser/ipv6-prefix-veth.network
Normal file
5
test/fuzz/fuzz-network-parser/ipv6-prefix-veth.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
IPv6AcceptRA=true
|
10
test/fuzz/fuzz-network-parser/ipv6-prefix.network
Normal file
10
test/fuzz/fuzz-network-parser/ipv6-prefix.network
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Match]
|
||||
Name=veth-peer
|
||||
|
||||
[Network]
|
||||
IPv6PrefixDelegation=yes
|
||||
|
||||
[IPv6Prefix]
|
||||
Prefix=2002:da8:1:0::/64
|
||||
PreferredLifetimeSec=1000s
|
||||
ValidLifetimeSec=2100s
|
5
test/fuzz/fuzz-network-parser/ipvlan.network
Normal file
5
test/fuzz/fuzz-network-parser/ipvlan.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
IPVLAN=ipvlan99
|
5
test/fuzz/fuzz-network-parser/macvlan.network
Normal file
5
test/fuzz/fuzz-network-parser/macvlan.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
MACVLAN=macvlan99
|
5
test/fuzz/fuzz-network-parser/macvtap.network
Normal file
5
test/fuzz/fuzz-network-parser/macvtap.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
MACVTAP=macvtap99
|
10
test/fuzz/fuzz-network-parser/routing-policy-rule.network
Normal file
10
test/fuzz/fuzz-network-parser/routing-policy-rule.network
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[RoutingPolicyRule]
|
||||
TypeOfService=0x08
|
||||
Table=7
|
||||
From= 192.168.100.18
|
||||
Priority=111
|
||||
IncomingInterface=test1
|
||||
OutgoingInterface=test1
|
5
test/fuzz/fuzz-network-parser/sit.network
Normal file
5
test/fuzz/fuzz-network-parser/sit.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=sittun99
|
6
test/fuzz/fuzz-network-parser/test-static.network
Normal file
6
test/fuzz/fuzz-network-parser/test-static.network
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Address=192.168.0.15/24
|
||||
Gateway=192.168.0.1
|
5
test/fuzz/fuzz-network-parser/vti.network
Normal file
5
test/fuzz/fuzz-network-parser/vti.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=vtitun99
|
5
test/fuzz/fuzz-network-parser/vti6.network
Normal file
5
test/fuzz/fuzz-network-parser/vti6.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
Tunnel=vti6tun99
|
5
test/fuzz/fuzz-network-parser/vxlan.network
Normal file
5
test/fuzz/fuzz-network-parser/vxlan.network
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
VXLAN=vxlan99
|
Loading…
Reference in a new issue