networkd: fix drop-in conf directory configs overwriting each other
authorSusant Sahani <susant@redhat.com>
Wed, 15 Feb 2017 04:30:35 +0000 (10:00 +0530)
committerSusant Sahani <susant@redhat.com>
Thu, 16 Feb 2017 05:01:42 +0000 (10:31 +0530)
commitf4859fc74c06bf5040e96ef68ddf7102f43cc7db
treee827c6ba57a292e1c77b3e4e07f585152e948dc6
parent28b1a3eac252d471de4fbb6f317353af30d68878
networkd: fix drop-in conf directory configs overwriting each other

Now we track the sections for example [Address] via line number.
Which was fine till we din't had dropins dir. If we have multiple
sections which have the ideantical line number in diffrent files
we are overwriting these since line number is the key.

This patch fixes this by taking filename and line number as key.
This fixes [Address] and [Route] section overwriting.

fixes: #5141
src/network/networkd-address.c
src/network/networkd-address.h
src/network/networkd-network.c
src/network/networkd-network.h
src/network/networkd-route.c
src/network/networkd-route.h