fuzz: add directives.link and 99-default.link for fuzz-link-parser

Also adds several reproducers of errors fixed in earlier commits.
This commit is contained in:
Yu Watanabe 2019-02-22 14:45:46 +09:00
parent a378400b3f
commit eac31d708f
4 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Link]
NamePolicy=keep kernel database onboard slot path
MACAddressPolicy=persistent

View file

@ -0,0 +1,2 @@
[Link]
Advertise=hoge foo

View file

@ -0,0 +1,7 @@
[Match]
OriginalName=eth0
Host=hogehoge
Virtualization=qemu
KernelCommandLine=aaa
KernelVersion=4.20.3
Architecture=x86-64

View file

@ -0,0 +1,35 @@
[Match]
MACAddress=
OriginalName=
Path=
Driver=
Type=
Host=
Virtualization=
KernelCommandLine=
KernelVersion=
Architecture=
[Link]
Description=
MACAddressPolicy=
MACAddress=
NamePolicy=
Name=
Alias=
MTUBytes=
BitsPerSecond=
Duplex=
AutoNegotiation=
WakeOnLan=
Port=
GenericSegmentationOffload=
TCPSegmentationOffload=
TCP6SegmentationOffload=
UDPSegmentationOffload=
GenericReceiveOffload=
LargeReceiveOffload=
RxChannels=
TxChannels=
OtherChannels=
CombinedChannels=
Advertise=