Searched refs:link (Results 1 - 25 of 59) sorted by relevance

123

/systemd/src/network/
H A Dnetworkd-link.c31 #include "networkd-link.h"
41 bool link_dhcp6_enabled(Link *link) { argument
42 if (link->flags & IFF_LOOPBACK)
45 if (!link->network)
48 return link->network->dhcp & ADDRESS_FAMILY_IPV6;
51 bool link_dhcp4_enabled(Link *link) { argument
52 if (link->flags & IFF_LOOPBACK)
55 if (!link->network)
58 return link->network->dhcp & ADDRESS_FAMILY_IPV4;
61 bool link_dhcp4_server_enabled(Link *link) { argument
71 link_ipv4ll_enabled(Link *link) argument
81 link_ipv6ll_enabled(Link *link) argument
91 link_lldp_enabled(Link *link) argument
104 link_ipv4_forward_enabled(Link *link) argument
117 link_ipv6_forward_enabled(Link *link) argument
134 link_ipv6_accept_ra_enabled(Link *link) argument
156 link_ipv6_privacy_extensions(Link *link) argument
170 link_update_operstate(Link *link) argument
226 link_update_flags(Link *link, sd_netlink_message *m) argument
299 _cleanup_link_unref_ Link *link = NULL; local
375 link_free(Link *link) argument
433 link_unref(Link *link) argument
449 link_ref(Link *link) argument
461 Link *link; local
476 link_set_state(Link *link, LinkState state) argument
489 link_enter_unmanaged(Link *link) argument
499 link_stop_clients(Link *link) argument
539 link_enter_failed(Link *link) argument
554 link_find_dhcp_server_address(Link *link) argument
583 link_enter_configured(Link *link) argument
597 link_check_ready(Link *link) argument
640 _cleanup_link_unref_ Link *link = userdata; local
666 link_enter_set_routes(Link *link) argument
697 _cleanup_link_unref_ Link *link = userdata; local
715 _cleanup_link_unref_ Link *link = userdata; local
745 link_push_dns_to_dhcp_server(Link *link, sd_dhcp_server *s) argument
790 link_push_ntp_to_dhcp_server(Link *link, sd_dhcp_server *s) argument
835 link_enter_set_addresses(Link *link) argument
979 _cleanup_link_unref_ Link *link = userdata; local
996 link_set_bridge_fdb(Link *const link) argument
1012 _cleanup_link_unref_ Link *link = userdata; local
1028 _cleanup_link_unref_ Link *link = userdata; local
1044 link_set_hostname(Link *link, const char *hostname) argument
1080 _cleanup_link_unref_ Link *link = userdata; local
1096 link_set_timezone(Link *link, const char *tz) argument
1131 _cleanup_link_unref_ Link *link = userdata; local
1148 link_set_mtu(Link *link, uint32_t mtu) argument
1175 link_set_bridge(Link *link) argument
1234 Link *link = userdata; local
1253 link_acquire_ipv6_conf(Link *link) argument
1286 link_acquire_conf(Link *link) argument
1327 link_has_carrier(Link *link) argument
1342 _cleanup_link_unref_ Link *link = userdata; local
1359 link_up(Link *link) argument
1431 _cleanup_link_unref_ Link *link = userdata; local
1446 link_down(Link *link) argument
1474 link_handle_bound_to_list(Link *link) argument
1508 link_handle_bound_by_list(Link *link) argument
1527 link_put_carrier(Link *link, Link *carrier, Hashmap **h) argument
1550 link_new_bound_by_list(Link *link) argument
1592 link_new_bound_to_list(Link *link) argument
1634 link_new_carrier_maps(Link *link) argument
1656 link_free_bound_to_list(Link *link) argument
1670 link_free_bound_by_list(Link *link) argument
1686 link_free_carrier_maps(Link *link) argument
1707 link_drop(Link *link) argument
1723 link_joined(Link *link) argument
1751 _cleanup_link_unref_ Link *link = userdata; local
1776 link_enter_join_netdev(Link *link) argument
1862 link_set_ipv4_forward(Link *link) argument
1882 link_set_ipv6_forward(Link *link) argument
1904 link_set_ipv6_privacy_extensions(Link *link) argument
1924 link_set_ipv6_accept_ra(Link *link) argument
1948 link_set_ipv6_dad_transmits(Link *link) argument
1976 link_set_ipv6_hop_limit(Link *link) argument
2004 link_drop_foreign_config(Link *link) argument
2033 link_configure(Link *link) argument
2143 _cleanup_link_unref_ Link *link = userdata; local
2200 link_initialized(Link *link, struct udev_device *device) argument
2239 link_load(Link *link) argument
2431 Link *link; local
2486 link_ipv6ll_gained(Link *link, const struct in6_addr *address) argument
2507 link_carrier_gained(Link *link) argument
2527 link_carrier_lost(Link *link) argument
2545 link_carrier_reset(Link *link) argument
2566 link_update(Link *link, sd_netlink_message *m) argument
2692 link_save(Link *link) argument
2983 link_dirty(Link *link) argument
3002 link_clean(Link *link) argument
[all...]
H A Dnetworkd-dhcp6.c26 #include "networkd-link.h"
28 static int dhcp6_lease_address_acquired(sd_dhcp6_client *client, Link *link);
31 Link *link) {
37 _cleanup_link_unref_ Link *link = userdata; local
40 assert(link);
44 if (link->rtnl_extended_attrs) {
45 log_link_warning(link, "Could not set extended netlink attributes, reverting to fallback mechanism");
47 link->rtnl_extended_attrs = false;
48 dhcp6_lease_address_acquired(link->dhcp6_client, link);
30 dhcp6_lease_information_acquired(sd_dhcp6_client *client, Link *link) argument
63 dhcp6_address_change(Link *link, struct in6_addr *ip6_addr, uint32_t lifetime_preferred, uint32_t lifetime_valid) argument
93 dhcp6_lease_address_acquired(sd_dhcp6_client *client, Link *link) argument
119 Link *link = userdata; local
167 dhcp6_request_address(Link *link) argument
206 dhcp6_configure(Link *link) argument
[all...]
H A Dnetworkd-ndisc.c26 #include "networkd-link.h"
29 _cleanup_link_unref_ Link *link = userdata; local
32 assert(link);
33 assert(link->ndisc_messages > 0);
35 link->ndisc_messages --;
39 log_link_error_errno(link, r, "Could not set NDisc route or address: %m");
40 link_enter_failed(link);
43 if (link->ndisc_messages == 0) {
44 link->ndisc_configured = true;
45 link_check_ready(link);
54 Link *link = userdata; local
106 Link *link = userdata; local
144 Link *link = userdata; local
193 Link *link = userdata; local
220 ndisc_configure(Link *link) argument
[all...]
H A Dnetworkd-dhcp4.c27 #include "networkd-link.h"
31 _cleanup_link_unref_ Link *link = userdata; local
34 assert(link);
35 assert(link->dhcp4_messages > 0);
37 link->dhcp4_messages --;
41 log_link_error_errno(link, r, "Could not set DHCPv4 route: %m");
42 link_enter_failed(link);
45 if (link->dhcp4_messages == 0) {
46 link->dhcp4_configured = true;
47 link_check_ready(link);
53 link_set_dhcp_routes(Link *link) argument
146 dhcp_lease_lost(Link *link) argument
264 _cleanup_link_unref_ Link *link = userdata; local
281 dhcp4_update_address(Link *link, struct in_addr *address, struct in_addr *netmask, uint32_t lifetime) argument
315 dhcp_lease_renew(sd_dhcp_client *client, Link *link) argument
359 dhcp_lease_acquired(sd_dhcp_client *client, Link *link) argument
469 Link *link = userdata; local
530 dhcp4_configure(Link *link) argument
[all...]
H A Dnetworkd-ipv4ll.c24 #include "networkd-link.h"
26 static int ipv4ll_address_lost(Link *link) { argument
32 assert(link);
34 link->ipv4ll_route = false;
35 link->ipv4ll_address = false;
37 r = sd_ipv4ll_get_address(link->ipv4ll, &addr);
41 log_link_debug(link, "IPv4 link-local release %u.%u.%u.%u", ADDRESS_FMT_VAL(addr));
45 log_link_error_errno(link, r, "Could not allocate address: %m");
54 address_remove(address, link,
74 _cleanup_link_unref_ Link *link = userdata; local
95 _cleanup_link_unref_ Link *link = userdata; local
116 ipv4ll_address_claimed(sd_ipv4ll *ll, Link *link) argument
169 Link *link = userdata; local
201 ipv4ll_configure(Link *link) argument
[all...]
H A Dnetworkd-link.h121 Link *link_unref(Link *link);
122 Link *link_ref(Link *link);
125 void link_drop(Link *link);
130 void link_enter_failed(Link *link);
131 int link_initialized(Link *link, struct udev_device *device);
133 void link_check_ready(Link *link);
135 void link_update_operstate(Link *link);
136 int link_update(Link *link, sd_netlink_message *message);
138 void link_dirty(Link *link);
139 void link_clean(Link *link);
[all...]
H A Dnetworkd-link-bus.c22 #include "networkd-link.h"
39 static char *link_bus_path(Link *link) { argument
44 assert(link);
45 assert(link->ifindex > 0);
47 if (asprintf(&ifindex, "%d", link->ifindex) < 0)
50 r = sd_bus_path_encode("/org/freedesktop/network1/link", ifindex, &p);
61 Link *link; local
73 HASHMAP_FOREACH(link, m->links, i) {
76 p = link_bus_path(link);
93 Link *link; local
119 link_send_changed(Link *link, const char *property, ...) argument
[all...]
H A Dnetworkd-manager.c96 Link *link; local
102 HASHMAP_FOREACH(link, m->links, i) {
103 r = link_carrier_reset(link);
105 log_link_warning_errno(link, r, "Could not reset carrier: %m");
171 r = sd_bus_add_fallback_vtable(m->bus, NULL, "/org/freedesktop/network1/link", "org.freedesktop.network1.Link", link_vtable, link_object_find, m);
173 return log_error_errno(r, "Failed to add link object vtable: %m");
175 r = sd_bus_add_node_enumerator(m->bus, NULL, "/org/freedesktop/network1/link", link_node_enumerator, m);
177 return log_error_errno(r, "Failed to add link enumerator: %m");
199 Link *link = NULL; local
214 r = link_get(m, ifindex, &link);
284 Link *link = NULL; local
474 Link *link = NULL; local
628 Link *link = NULL; local
831 Link *link; local
979 Link *link; local
1049 Link *link; local
1089 Link *link; local
1117 Link *link; local
1167 sd_netlink_message *link; local
1307 Link *link; local
[all...]
H A Dnetworkd-address.h29 #include "networkd-link.h"
39 Link *link; member in struct:Address
61 int address_add_foreign(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
62 int address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
63 int address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
66 int address_configure(Address *address, Link *link, sd_netlink_message_handler_t callback, bool update);
67 int address_remove(Address *address, Link *link, sd_netlink_message_handler_t callback);
H A Dnetworkd-address.c98 if (address->link) {
99 set_remove(address->link->addresses, address);
100 set_remove(address->link->addresses_foreign, address);
203 static int address_establish(Address *address, Link *link) { argument
208 assert(link);
210 masq = link->network &&
211 link->network->ip_masquerade &&
222 log_link_warning_errno(link, r, "Could not enable IP masquerading: %m");
230 static int address_add_internal(Link *link, Set **addresses, argument
238 assert(link);
270 address_add_foreign(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument
274 address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument
361 Link *link; local
380 address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument
407 address_remove(Address *address, Link *link, sd_netlink_message_handler_t callback) argument
444 address_acquire(Link *link, Address *original, Address **ret) argument
503 address_configure(Address *address, Link *link, sd_netlink_message_handler_t callback, bool update) argument
[all...]
H A Dnetworkd-fdb.c84 Link *link = userdata; local
87 assert(link);
91 log_link_error_errno(link, r, "Could not add FDB entry: %m");
97 int fdb_entry_configure(Link *const link, FdbEntry *const fdb_entry) { argument
102 assert(link);
103 assert(link->manager);
106 rtnl = link->manager->rtnl;
109 r = sd_rtnl_message_new_neigh(rtnl, &req, RTM_NEWNEIGH, link->ifindex, PF_BRIDGE);
135 r = sd_netlink_call_async(rtnl, req, set_fdb_handler, link, 0, NULL);
137 return log_link_error_errno(link,
[all...]
H A Dnetworkd-route.h31 Link *link; member in struct:Route
58 int route_configure(Route *route, Link *link, sd_netlink_message_handler_t callback);
59 int route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback);
61 int route_get(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
62 int route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
63 int route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
H A Dnetworkd-netdev-ipvlan.c34 static int netdev_ipvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument
39 assert(link);
H A Dnetworkd-wait-online.h30 #include "networkd-wait-online-link.h"
54 bool manager_ignore_link(Manager *m, Link *link);
H A Dnetworkd-netdev.c97 assert(callback->link);
102 callback->callback(netdev->manager->rtnl, m, callback->link);
106 link_unref(callback->link);
193 static int netdev_enslave_ready(NetDev *netdev, Link* link, sd_netlink_message_handler_t callback) { argument
202 assert(link);
205 r = sd_rtnl_message_new_link(netdev->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
213 r = sd_netlink_call_async(netdev->manager->rtnl, req, callback, link, 0, NULL);
217 link_ref(link);
219 log_netdev_debug(netdev, "Enslaving link '%s'", link
278 netdev_enslave(NetDev *netdev, Link *link, sd_netlink_message_handler_t callback) argument
454 netdev_create(NetDev *netdev, Link *link, sd_netlink_message_handler_t callback) argument
544 netdev_join(NetDev *netdev, Link *link, sd_netlink_message_handler_t callback) argument
[all...]
H A Dnetworkd-route.c98 if (route->link) {
99 set_remove(route->link->routes, route);
100 set_remove(route->link->routes_foreign, route);
176 int route_get(Link *link, argument
192 assert(link);
198 existing = set_get(link->routes, &route);
203 existing = set_get(link->routes_foreign, &route);
213 static int route_add_internal(Link *link, Set **routes, argument
223 assert(link);
246 route->link
256 route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
266 route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
332 route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback) argument
427 route_configure(Route *route, Link *link, sd_netlink_message_handler_t callback) argument
[all...]
H A Dnetworkd-fdb.h39 int fdb_entry_configure(Link *const link, FdbEntry *const fdb_entry);
H A Dnetworkd-netdev-tunnel.c30 #include "networkd-link.h"
49 static int netdev_ipip_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument
54 assert(link);
59 r = sd_netlink_message_append_u32(m, IFLA_IPTUN_LINK, link->ifindex);
82 static int netdev_sit_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument
87 assert(link);
92 r = sd_netlink_message_append_u32(m, IFLA_IPTUN_LINK, link->ifindex);
115 static int netdev_gre_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument
128 assert(link);
131 r = sd_netlink_message_append_u32(m, IFLA_GRE_LINK, link
158 netdev_ip6gre_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument
203 netdev_vti_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument
228 netdev_vti6_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument
253 netdev_ip6tnl_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument
[all...]
H A Dnetworkd-netdev-macvlan.c36 static int netdev_macvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument
41 assert(link);
/systemd/src/udev/net/
H A Dlink-config.c31 #include "link-config.h"
67 static void link_config_free(link_config *link) { argument
68 if (!link)
71 free(link->filename);
73 free(link->match_mac);
74 strv_free(link->match_path);
75 strv_free(link->match_driver);
76 strv_free(link->match_type);
77 free(link->match_name);
78 free(link
95 link_config *link, *link_next; local
245 link_config *link; local
[all...]
/systemd/src/udev/
H A Dudev-builtin-net_setup_link.c21 #include "link-config.h"
30 link_config *link; local
42 r = link_config_get(ctx, dev, &link);
45 log_debug("No matching link configuration found.");
48 log_error_errno(r, "Could not get link config: %m");
53 r = link_config_apply(ctx, link, dev, &name);
55 log_error_errno(r, "Could not apply link config to %s: %m", udev_device_get_sysname(dev));
59 udev_builtin_add_property(dev, test, "ID_NET_LINK_FILE", link->filename);
81 log_debug("Created link configuration context.");
88 log_debug("Unloaded link configuratio
[all...]
/systemd/src/resolve/
H A Dresolved-dns-search-domain.c64 d->link = l;
122 assert(d->link);
123 assert(d->link->n_search_domains > 0);
124 LIST_REMOVE(domains, d->link->search_domains, d);
125 d->link->n_search_domains--;
156 assert(d->link);
158 LIST_REMOVE(domains, d->link->search_domains, d);
159 LIST_INSERT_AFTER(domains, d->link->search_domains, tail, d);
H A Dresolved-dns-search-domain.h31 #include "resolved-link.h"
40 Link *link; member in struct:DnsSearchDomain
55 Link *link,
H A Dresolved-link.c27 #include "resolved-link.h"
471 /* If this link used to be managed, but is now unmanaged, flush all our settings -- but only once. */
522 /* A link is relevant for local multicast traffic if it isn't a loopback or pointopoint device, has a link
523 * beat, can do multicast and has at least one link-local (or better) IP address.
525 * A link is relevant for non-multicast traffic if it isn't a loopback device, has a link beat, and has at
650 a->link = l;
663 if (a->link) {
664 LIST_REMOVE(addresses, a->link
[all...]
/systemd/src/libsystemd-network/
H A Ddhcp-network.c34 static int _bind_raw_socket(int ifindex, union sockaddr_union *link, argument
95 assert(link);
109 link->ll.sll_family = AF_PACKET;
110 link->ll.sll_protocol = htons(ETH_P_IP);
111 link->ll.sll_ifindex = ifindex;
112 link->ll.sll_hatype = htons(arp_type);
113 link->ll.sll_halen = mac_addr_len;
114 memcpy(link->ll.sll_addr, bcast_addr, mac_addr_len);
116 r = bind(s, &link->sa, sizeof(link
126 dhcp_network_bind_raw_socket(int ifindex, union sockaddr_union *link, uint32_t xid, const uint8_t *mac_addr, size_t mac_addr_len, uint16_t arp_type) argument
202 dhcp_network_send_raw_socket(int s, const union sockaddr_union *link, const void *packet, size_t len) argument
[all...]

Completed in 2776 milliseconds

123