mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 16:21:26 +03:00
network: rename network_verify_xxx() -> network_drop_invalid_xxx()
As 'verify' implies a boolean result.
This commit is contained in:
parent
494b6b43cb
commit
13ffa39f8e
@ -151,7 +151,7 @@ int link_set_address_labels(Link *link) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_address_labels(Network *network) {
|
||||
void network_drop_invalid_address_labels(Network *network) {
|
||||
AddressLabel *label;
|
||||
|
||||
assert(network);
|
||||
|
@ -21,7 +21,7 @@ typedef struct AddressLabel {
|
||||
|
||||
AddressLabel *address_label_free(AddressLabel *label);
|
||||
|
||||
void network_verify_address_labels(Network *network);
|
||||
void network_drop_invalid_address_labels(Network *network);
|
||||
|
||||
int link_set_address_labels(Link *link);
|
||||
|
||||
|
@ -1874,7 +1874,7 @@ static int address_section_verify(Address *address) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_addresses(Network *network) {
|
||||
void network_drop_invalid_addresses(Network *network) {
|
||||
Address *address;
|
||||
|
||||
assert(network);
|
||||
|
@ -70,7 +70,7 @@ int ipv4_dad_update_mac(Link *link);
|
||||
|
||||
int manager_rtnl_process_address(sd_netlink *nl, sd_netlink_message *message, Manager *m);
|
||||
|
||||
void network_verify_addresses(Network *network);
|
||||
void network_drop_invalid_addresses(Network *network);
|
||||
|
||||
void address_hash_func(const Address *a, struct siphash *state);
|
||||
int address_compare_func(const Address *a1, const Address *a2);
|
||||
|
@ -185,7 +185,7 @@ int link_set_bridge_fdb(Link *link) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_fdb_entries(Network *network) {
|
||||
void network_drop_invalid_fdb_entries(Network *network) {
|
||||
FdbEntry *fdb_entry;
|
||||
|
||||
assert(network);
|
||||
|
@ -41,7 +41,7 @@ typedef struct FdbEntry {
|
||||
|
||||
FdbEntry *fdb_entry_free(FdbEntry *fdb_entry);
|
||||
|
||||
void network_verify_fdb_entries(Network *network);
|
||||
void network_drop_invalid_fdb_entries(Network *network);
|
||||
|
||||
int link_set_bridge_fdb(Link *link);
|
||||
|
||||
|
@ -278,7 +278,7 @@ static int mdb_entry_verify(MdbEntry *mdb_entry) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_mdb_entries(Network *network) {
|
||||
void network_drop_invalid_mdb_entries(Network *network) {
|
||||
MdbEntry *mdb_entry;
|
||||
|
||||
assert(network);
|
||||
|
@ -21,7 +21,7 @@ typedef struct MdbEntry {
|
||||
|
||||
MdbEntry *mdb_entry_free(MdbEntry *mdb_entry);
|
||||
|
||||
void network_verify_mdb_entries(Network *network);
|
||||
void network_drop_invalid_mdb_entries(Network *network);
|
||||
|
||||
int link_set_bridge_mdb(Link *link);
|
||||
|
||||
|
@ -591,7 +591,7 @@ static int neighbor_section_verify(Neighbor *neighbor) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_neighbors(Network *network) {
|
||||
void network_drop_invalid_neighbors(Network *network) {
|
||||
Neighbor *neighbor;
|
||||
|
||||
assert(network);
|
||||
|
@ -32,7 +32,7 @@ typedef struct Neighbor {
|
||||
|
||||
Neighbor *neighbor_free(Neighbor *neighbor);
|
||||
|
||||
void network_verify_neighbors(Network *network);
|
||||
void network_drop_invalid_neighbors(Network *network);
|
||||
|
||||
int link_set_neighbors(Link *link);
|
||||
int link_drop_neighbors(Link *link);
|
||||
|
@ -287,18 +287,18 @@ int network_verify(Network *network) {
|
||||
network->ipv6_proxy_ndp_addresses = set_free_free(network->ipv6_proxy_ndp_addresses);
|
||||
}
|
||||
|
||||
network_verify_addresses(network);
|
||||
network_verify_routes(network);
|
||||
network_verify_nexthops(network);
|
||||
network_verify_fdb_entries(network);
|
||||
network_verify_mdb_entries(network);
|
||||
network_verify_neighbors(network);
|
||||
network_verify_address_labels(network);
|
||||
network_verify_prefixes(network);
|
||||
network_verify_route_prefixes(network);
|
||||
network_verify_routing_policy_rules(network);
|
||||
network_verify_traffic_control(network);
|
||||
network_verify_sr_iov(network);
|
||||
network_drop_invalid_addresses(network);
|
||||
network_drop_invalid_routes(network);
|
||||
network_drop_invalid_nexthops(network);
|
||||
network_drop_invalid_fdb_entries(network);
|
||||
network_drop_invalid_mdb_entries(network);
|
||||
network_drop_invalid_neighbors(network);
|
||||
network_drop_invalid_address_labels(network);
|
||||
network_drop_invalid_prefixes(network);
|
||||
network_drop_invalid_route_prefixes(network);
|
||||
network_drop_invalid_routing_policy_rules(network);
|
||||
network_drop_invalid_traffic_control(network);
|
||||
network_drop_invalid_sr_iov(network);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -449,7 +449,7 @@ static int nexthop_section_verify(NextHop *nh) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_nexthops(Network *network) {
|
||||
void network_drop_invalid_nexthops(Network *network) {
|
||||
NextHop *nh;
|
||||
|
||||
assert(network);
|
||||
|
@ -31,7 +31,7 @@ typedef struct NextHop {
|
||||
|
||||
NextHop *nexthop_free(NextHop *nexthop);
|
||||
|
||||
void network_verify_nexthops(Network *network);
|
||||
void network_drop_invalid_nexthops(Network *network);
|
||||
|
||||
int link_set_nexthop(Link *link);
|
||||
|
||||
|
@ -160,7 +160,7 @@ static int route_prefix_new_static(Network *network, const char *filename, unsig
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_prefixes(Network *network) {
|
||||
void network_drop_invalid_prefixes(Network *network) {
|
||||
Prefix *prefix;
|
||||
|
||||
assert(network);
|
||||
@ -170,7 +170,7 @@ void network_verify_prefixes(Network *network) {
|
||||
prefix_free(prefix);
|
||||
}
|
||||
|
||||
void network_verify_route_prefixes(Network *network) {
|
||||
void network_drop_invalid_route_prefixes(Network *network) {
|
||||
RoutePrefix *prefix;
|
||||
|
||||
assert(network);
|
||||
|
@ -45,8 +45,8 @@ typedef struct RoutePrefix {
|
||||
Prefix *prefix_free(Prefix *prefix);
|
||||
RoutePrefix *route_prefix_free(RoutePrefix *prefix);
|
||||
|
||||
void network_verify_prefixes(Network *network);
|
||||
void network_verify_route_prefixes(Network *network);
|
||||
void network_drop_invalid_prefixes(Network *network);
|
||||
void network_drop_invalid_route_prefixes(Network *network);
|
||||
|
||||
int radv_emit_dns(Link *link);
|
||||
int radv_configure(Link *link);
|
||||
|
@ -2212,7 +2212,7 @@ static int route_section_verify(Route *route, Network *network) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_routes(Network *network) {
|
||||
void network_drop_invalid_routes(Network *network) {
|
||||
Route *route;
|
||||
|
||||
assert(network);
|
||||
|
@ -89,7 +89,7 @@ int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, Ma
|
||||
|
||||
int network_add_ipv4ll_route(Network *network);
|
||||
int network_add_default_route_on_device(Network *network);
|
||||
void network_verify_routes(Network *network);
|
||||
void network_drop_invalid_routes(Network *network);
|
||||
|
||||
CONFIG_PARSER_PROTOTYPE(config_parse_gateway);
|
||||
CONFIG_PARSER_PROTOTYPE(config_parse_preferred_src);
|
||||
|
@ -1473,7 +1473,7 @@ static int routing_policy_rule_section_verify(RoutingPolicyRule *rule) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_routing_policy_rules(Network *network) {
|
||||
void network_drop_invalid_routing_policy_rules(Network *network) {
|
||||
RoutingPolicyRule *rule;
|
||||
|
||||
assert(network);
|
||||
|
@ -50,7 +50,7 @@ typedef struct RoutingPolicyRule {
|
||||
|
||||
RoutingPolicyRule *routing_policy_rule_free(RoutingPolicyRule *rule);
|
||||
|
||||
void network_verify_routing_policy_rules(Network *network);
|
||||
void network_drop_invalid_routing_policy_rules(Network *network);
|
||||
|
||||
int link_set_routing_policy_rules(Link *link);
|
||||
|
||||
|
@ -262,7 +262,7 @@ static int sr_iov_section_verify(SRIOV *sr_iov) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void network_verify_sr_iov(Network *network) {
|
||||
void network_drop_invalid_sr_iov(Network *network) {
|
||||
SRIOV *sr_iov;
|
||||
|
||||
assert(network);
|
||||
|
@ -35,7 +35,7 @@ typedef struct SRIOV {
|
||||
|
||||
SRIOV *sr_iov_free(SRIOV *sr_iov);
|
||||
int link_configure_sr_iov(Link *link);
|
||||
void network_verify_sr_iov(Network *network);
|
||||
void network_drop_invalid_sr_iov(Network *network);
|
||||
|
||||
DEFINE_NETWORK_SECTION_FUNCTIONS(SRIOV, sr_iov_free);
|
||||
|
||||
|
@ -69,7 +69,7 @@ static int traffic_control_section_verify(TrafficControl *tc, bool *qdisc_has_ro
|
||||
}
|
||||
}
|
||||
|
||||
void network_verify_traffic_control(Network *network) {
|
||||
void network_drop_invalid_traffic_control(Network *network) {
|
||||
bool has_root = false, has_clsact = false;
|
||||
TrafficControl *tc;
|
||||
|
||||
|
@ -29,4 +29,4 @@ typedef struct TrafficControl {
|
||||
|
||||
void traffic_control_free(TrafficControl *tc);
|
||||
int link_configure_traffic_control(Link *link);
|
||||
void network_verify_traffic_control(Network *network);
|
||||
void network_drop_invalid_traffic_control(Network *network);
|
||||
|
Loading…
Reference in New Issue
Block a user