Bug#886342: systemd-networkd: Unknown section 'Tap'. Ignoring.
Wolfgang Walter
wolfgang.walter at stwm.de
Fri Jan 5 11:40:08 GMT 2018
On Thursday, 4 January 2018 19:54:41 CET Michael Biebl wrote:
> Am 04.01.2018 um 19:30 schrieb Wolfgang Walter:
> > Package: systemd
> > Version: 236-2
> >
> > Problem: since upgrading to 236-1 I get the following error:
> >
> > systemd-networkd:[810]: /etc/systemd/network/tunnel.netdev: :5: Unknown
> > section 'Tap'. Ignoring.
I'm not familiar with the source code of systemd, but this false warnings may
result from
network/netdev/netdev.c, line 603: netdev_load_one()
this functions calls config_parse_many() from shared/conf_parser.c.
The first time netdev_load_one() calls it (line 634) to inspect the sections
Match and NetDev because it does not know at that point which kind of netdev
will be defined.
In shared/conf-parser.c config_parse_many() calls config_parse_many_files()
=> config_parse() => parse_line().
parse_line() emits that warning in line 229 of shared/conf_parser.c when it
parses the VLAN/MACVTAP/... section as in this first call netdev_load_one()
does not include them in the list of valid sections.
Maybe netdev_load_one() should set the flag CONFIG_PARSE_RELAXED for the
first call.
I looked at the code
https://sources.debian.org/src/systemd/236-2/src/
Regards,
--
Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts
More information about the Pkg-systemd-maintainers
mailing list