libsystemd-network: move network-utils from src/shared

This does not belong in shared as it is mostly a detail of our networking subsystem.

Moreover, now we can use libudev here, which will simplify things.
This commit is contained in:
Tom Gundersen 2014-03-21 21:38:14 +01:00
parent b5db00e52e
commit c6f7c917a1
13 changed files with 16 additions and 13 deletions

View file

@ -779,8 +779,6 @@ libsystemd_shared_la_SOURCES = \
src/shared/ima-util.h \ src/shared/ima-util.h \
src/shared/ptyfwd.c \ src/shared/ptyfwd.c \
src/shared/ptyfwd.h \ src/shared/ptyfwd.h \
src/shared/net-util.c \
src/shared/net-util.h \
src/shared/errno-list.c \ src/shared/errno-list.c \
src/shared/errno-list.h \ src/shared/errno-list.h \
src/shared/af-list.c \ src/shared/af-list.c \
@ -2460,7 +2458,9 @@ libsystemd_network_la_SOURCES = \
src/libsystemd-network/sd-ipv4ll.c \ src/libsystemd-network/sd-ipv4ll.c \
src/libsystemd-network/ipv4ll-network.c \ src/libsystemd-network/ipv4ll-network.c \
src/libsystemd-network/ipv4ll-packet.c \ src/libsystemd-network/ipv4ll-packet.c \
src/libsystemd-network/ipv4ll-internal.h src/libsystemd-network/ipv4ll-internal.h \
src/libsystemd-network/network-internal.c \
src/libsystemd-network/network-internal.h
libsystemd_network_la_LIBADD = \ libsystemd_network_la_LIBADD = \
libsystemd-label.la \ libsystemd-label.la \
@ -2720,6 +2720,7 @@ libudev_core_la_LIBADD = \
libudev-internal.la \ libudev-internal.la \
libsystemd-label.la \ libsystemd-label.la \
libsystemd-internal.la \ libsystemd-internal.la \
libsystemd-network.la \
libsystemd-shared.la \ libsystemd-shared.la \
$(BLKID_LIBS) \ $(BLKID_LIBS) \
$(KMOD_LIBS) $(KMOD_LIBS)

View file

@ -27,7 +27,7 @@
#include "strv.h" #include "strv.h"
#include "siphash24.h" #include "siphash24.h"
#include "libudev-private.h" #include "libudev-private.h"
#include "net-util.h" #include "network-internal.h"
#include "log.h" #include "log.h"
#include "utf8.h" #include "utf8.h"
#include "util.h" #include "util.h"

View file

@ -25,6 +25,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <stdbool.h> #include <stdbool.h>
#include "udev.h"
#include "condition-util.h" #include "condition-util.h"
bool net_match_config(const struct ether_addr *match_mac, bool net_match_config(const struct ether_addr *match_mac,

View file

@ -22,6 +22,7 @@
***/ ***/
#include "util.h" #include "util.h"
#include "sd-network.h"
DEFINE_TRIVIAL_CLEANUP_FUNC(sd_network_monitor*, sd_network_monitor_unref); DEFINE_TRIVIAL_CLEANUP_FUNC(sd_network_monitor*, sd_network_monitor_unref);

View file

@ -26,7 +26,7 @@
#include "utf8.h" #include "utf8.h"
#include "util.h" #include "util.h"
#include "conf-parser.h" #include "conf-parser.h"
#include "net-util.h" #include "network-internal.h"
int address_new_static(Network *network, unsigned section, Address **ret) { int address_new_static(Network *network, unsigned section, Address **ret) {
_cleanup_address_free_ Address *address = NULL; _cleanup_address_free_ Address *address = NULL;

View file

@ -26,7 +26,7 @@
#include "libudev-private.h" #include "libudev-private.h"
#include "util.h" #include "util.h"
#include "bus-util.h" #include "bus-util.h"
#include "net-util.h" #include "network-internal.h"
#include "dhcp-lease-internal.h" #include "dhcp-lease-internal.h"

View file

@ -2,7 +2,7 @@
#include <stddef.h> #include <stddef.h>
#include "conf-parser.h" #include "conf-parser.h"
#include "networkd.h" #include "networkd.h"
#include "net-util.h" #include "network-internal.h"
%} %}
struct ConfigPerfItem; struct ConfigPerfItem;
%null_strings %null_strings

View file

@ -20,7 +20,7 @@
***/ ***/
#include "networkd.h" #include "networkd.h"
#include "net-util.h" #include "network-internal.h"
#include "path-util.h" #include "path-util.h"
#include "conf-files.h" #include "conf-files.h"
#include "conf-parser.h" #include "conf-parser.h"

View file

@ -2,7 +2,7 @@
#include <stddef.h> #include <stddef.h>
#include "conf-parser.h" #include "conf-parser.h"
#include "networkd.h" #include "networkd.h"
#include "net-util.h" #include "network-internal.h"
%} %}
struct ConfigPerfItem; struct ConfigPerfItem;
%null_strings %null_strings

View file

@ -20,7 +20,7 @@
***/ ***/
#include "networkd.h" #include "networkd.h"
#include "net-util.h" #include "network-internal.h"
#include "path-util.h" #include "path-util.h"
#include "conf-files.h" #include "conf-files.h"
#include "conf-parser.h" #include "conf-parser.h"

View file

@ -26,7 +26,7 @@
#include "utf8.h" #include "utf8.h"
#include "util.h" #include "util.h"
#include "conf-parser.h" #include "conf-parser.h"
#include "net-util.h" #include "network-internal.h"
int route_new_static(Network *network, unsigned section, Route **ret) { int route_new_static(Network *network, unsigned section, Route **ret) {
_cleanup_route_free_ Route *route = NULL; _cleanup_route_free_ Route *route = NULL;

View file

@ -1,7 +1,7 @@
%{ %{
#include <stddef.h> #include <stddef.h>
#include "conf-parser.h" #include "conf-parser.h"
#include "net-util.h" #include "network-internal.h"
#include "link-config.h" #include "link-config.h"
#include "ethtool-util.h" #include "ethtool-util.h"
%} %}

View file

@ -38,7 +38,7 @@
#include "fileio.h" #include "fileio.h"
#include "hashmap.h" #include "hashmap.h"
#include "rtnl-util.h" #include "rtnl-util.h"
#include "net-util.h" #include "network-internal.h"
#include "siphash24.h" #include "siphash24.h"
struct link_config_ctx { struct link_config_ctx {