tests: add some data that can be fed to fuzz-network-parser

This commit is contained in:
Evgeny Vereshchagin 2018-11-04 23:04:43 +01:00
parent a633d5b997
commit efc1a59af6
53 changed files with 384 additions and 0 deletions

View file

@ -0,0 +1,5 @@
[Match]
Name=test1
[Network]
VLAN=vlan99

View file

@ -0,0 +1,6 @@
[Match]
Name=dummy98
[Network]
Bond=bond199
ActiveSlave=true

View file

@ -0,0 +1,2 @@
[Match]
Name=bond199

View file

@ -0,0 +1,5 @@
[Match]
Name=veth-peer
[Network]
EmitLLDP=yes

View file

@ -0,0 +1,6 @@
[Match]
Name=dummy98
[Network]
Bond=bond199
PrimarySlave=true

View file

@ -0,0 +1,6 @@
[Match]
Name=test1
[Network]
Bond=bond199
PrimarySlave=true

View file

@ -0,0 +1,5 @@
[Match]
Name=veth99
[Network]
LLDP=yes

View 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

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Link]
MACAddress=00:01:02:aa:bb:cc

View file

@ -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

View 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

View file

@ -0,0 +1,6 @@
[Match]
Name=dummy98
[IPv6AddressLabel]
Label=4444
Prefix=2004:da8:1:0::/64

View file

@ -0,0 +1,6 @@
[Match]
Name=dummy98
[Link]
MACAddress=00:01:02:aa:bb:cc
Unmanaged=true

View file

@ -0,0 +1,8 @@
[Match]
Name=dummy98
[Network]
Address=192.168.0.15/24
[Route]
Gateway=192.168.0.1

View file

@ -0,0 +1,10 @@
[Match]
Name=test1
[Route]
Destination=192.168.1.1
InitialCongestionWindow=20
[Route]
Destination=192.168.1.2
InitialAdvertisedReceiveWindow=30

View 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

View file

@ -0,0 +1,10 @@
[Match]
Name=dummy98
[Network]
IPForward=true
IPv6PrivacyExtensions=true
IPv6DuplicateAddressDetection=3
IPv6HopLimit=5
IPv4ProxyARP=true
IPv6ProxyNDP=true

View file

@ -0,0 +1,11 @@
[Match]
Name=dummy98
[Network]
Bridge=bridge99
[Bridge]
Cost=400
HairPin = true
FastLeave = true
UnicastFlood = true

View file

@ -0,0 +1,5 @@
[Match]
Name=test1
[Network]
Bridge=bridge99

View file

@ -0,0 +1,6 @@
[Match]
Name=bridge99
[Network]
Address=192.168.0.15/24
Gateway=192.168.0.1

View file

@ -0,0 +1,7 @@
[Match]
Name=test1
[Network]
Address=192.168.0.15/24
Gateway=192.168.0.1
ConfigureWithoutCarrier=true

View 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

View file

@ -0,0 +1,9 @@
[Match]
Name=veth99
[Network]
DHCP=ipv4
IPv6AcceptRA=false
[DHCP]
CriticalConnection=true

View file

@ -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

View file

@ -0,0 +1,6 @@
[Match]
Name=veth99
[Network]
DHCP=ipv4
IPv6AcceptRA=false

View file

@ -0,0 +1,5 @@
[Match]
Name=veth99
[Network]
DHCP=ipv4

View file

@ -0,0 +1,5 @@
[Match]
Name=veth99
[Network]
DHCP=ipv6

View file

@ -0,0 +1,8 @@
[Match]
Name=veth99
[Network]
DHCP=ipv6
[DHCP]
RapidCommit=false

View file

@ -0,0 +1,8 @@
[Match]
Name=veth99
[Network]
DHCP=yes
[DHCP]
ListenPort=5555

View file

@ -0,0 +1,10 @@
[Match]
Name=veth99
[Network]
DHCP=ipv4
IPv6AcceptRA=false
[DHCP]
UseRoutes=true
RouteMetric=24

View file

@ -0,0 +1,10 @@
[Match]
Name=veth99
[Network]
DHCP=ipv4
IPv6AcceptRA=false
[DHCP]
UseRoutes=true
RouteTable=12

View file

@ -0,0 +1,8 @@
[Match]
Name=veth99
[Network]
IPv6AcceptRA=false
DHCP=ipv4
UseRoutes=true
UseTimezone=true

View file

@ -0,0 +1,5 @@
[Match]
Name=veth99
[Network]
DHCP=yes

View file

@ -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

View file

@ -0,0 +1,6 @@
[Match]
Name=veth-peer
[Network]
Address=2600::1
Address=192.168.5.1/24

View 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

View file

@ -0,0 +1,6 @@
[Match]
Name=veth-peer
[Network]
Address=192.168.0.1
Address=192.168.5.1

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=gretap99

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=gretun99

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=ip6gretap99

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=ip6tnl99

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=ipiptun99

View file

@ -0,0 +1,5 @@
[Match]
Name=veth99
[Network]
IPv6AcceptRA=true

View file

@ -0,0 +1,10 @@
[Match]
Name=veth-peer
[Network]
IPv6PrefixDelegation=yes
[IPv6Prefix]
Prefix=2002:da8:1:0::/64
PreferredLifetimeSec=1000s
ValidLifetimeSec=2100s

View file

@ -0,0 +1,5 @@
[Match]
Name=test1
[Network]
IPVLAN=ipvlan99

View file

@ -0,0 +1,5 @@
[Match]
Name=test1
[Network]
MACVLAN=macvlan99

View file

@ -0,0 +1,5 @@
[Match]
Name=test1
[Network]
MACVTAP=macvtap99

View file

@ -0,0 +1,10 @@
[Match]
Name=test1
[RoutingPolicyRule]
TypeOfService=0x08
Table=7
From= 192.168.100.18
Priority=111
IncomingInterface=test1
OutgoingInterface=test1

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=sittun99

View file

@ -0,0 +1,6 @@
[Match]
Name=dummy98
[Network]
Address=192.168.0.15/24
Gateway=192.168.0.1

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=vtitun99

View file

@ -0,0 +1,5 @@
[Match]
Name=dummy98
[Network]
Tunnel=vti6tun99

View file

@ -0,0 +1,5 @@
[Match]
Name=test1
[Network]
VXLAN=vxlan99