1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

network: cleanup headers in networkd-neighbor.[ch]

This commit is contained in:
Yu Watanabe 2020-09-30 00:17:22 +09:00
parent 9be0b3abc2
commit 1939ebeb89
8 changed files with 14 additions and 15 deletions

View File

@ -4,6 +4,7 @@
#include <netinet/in.h>
#include <linux/if_macsec.h>
#include "ether-addr-util.h"
#include "in-addr-util.h"
#include "netdev.h"
#include "networkd-util.h"

View File

@ -8,6 +8,7 @@
#include <linux/neighbour.h>
#include "conf-parser.h"
#include "ether-addr-util.h"
#include "list.h"
#include "macro.h"
#include "networkd-util.h"

View File

@ -29,6 +29,7 @@
#include "networkd-link-bus.h"
#include "networkd-manager-bus.h"
#include "networkd-manager.h"
#include "networkd-neighbor.h"
#include "networkd-network-bus.h"
#include "networkd-nexthop.h"
#include "networkd-routing-policy-rule.h"

View File

@ -1,16 +1,12 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#include "sd-netlink.h"
#include "alloc-util.h"
#include "conf-parser.h"
#include "ether-addr-util.h"
#include "hashmap.h"
#include "in-addr-util.h"
#include "netlink-util.h"
#include "networkd-link.h"
#include "networkd-manager.h"
#include "networkd-neighbor.h"
#include "networkd-network.h"
#include "set.h"
void neighbor_free(Neighbor *neighbor) {

View File

@ -1,26 +1,25 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include "sd-netlink.h"
#include "conf-parser.h"
#include "ether-addr-util.h"
#include "in-addr-util.h"
#include "list.h"
#include "macro.h"
typedef struct Neighbor Neighbor;
#include "networkd-link.h"
#include "networkd-network.h"
#include "networkd-util.h"
typedef Manager Manager;
typedef Network Network;
typedef Link Link;
union lladdr_union {
struct ether_addr mac;
union in_addr_union ip;
};
struct Neighbor {
typedef struct Neighbor {
Network *network;
Link *link;
NetworkConfigSection *section;
@ -29,7 +28,7 @@ struct Neighbor {
union in_addr_union in_addr;
union lladdr_union lladdr;
size_t lladdr_size;
};
} Neighbor;
void neighbor_free(Neighbor *neighbor);
int neighbor_section_verify(Neighbor *neighbor);

View File

@ -15,6 +15,7 @@ _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
#include "networkd-ipv4ll.h"
#include "networkd-ndisc.h"
#include "networkd-network.h"
#include "networkd-neighbor.h"
#include "networkd-nexthop.h"
#include "networkd-routing-policy-rule.h"
#include "networkd-sriov.h"

View File

@ -15,6 +15,7 @@
#include "networkd-dhcp-server.h"
#include "network-internal.h"
#include "networkd-manager.h"
#include "networkd-neighbor.h"
#include "networkd-network.h"
#include "networkd-nexthop.h"
#include "networkd-routing-policy-rule.h"

View File

@ -25,7 +25,6 @@
#include "networkd-lldp-tx.h"
#include "networkd-mdb.h"
#include "networkd-ndisc.h"
#include "networkd-neighbor.h"
#include "networkd-radv.h"
#include "networkd-route.h"
#include "networkd-util.h"