Searched defs:link (Results 1 - 25 of 40) sorted by relevance

12

/systemd/src/network/
H A Dnetworkd-netdev-bridge.c46 static int netdev_bridge_post_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument
63 return log_link_error_errno(link, r, "Could not set netlink flags: %m");
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-netdev-vlan.c24 static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument
29 assert(link);
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-netdev-macvlan.c36 static int netdev_macvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument
41 assert(link);
H A Dnetworkd-netdev-veth.c27 static int netdev_veth_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument
32 assert(!link);
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-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-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-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-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-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-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-netdev-vxlan.c28 #include "networkd-link.h"
31 static int netdev_vxlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument
36 assert(link);
53 r = sd_netlink_message_append_u32(m, IFLA_VXLAN_LINK, link->ifindex);
H A Dnetworkd-wait-online-manager.c27 #include "networkd-wait-online-link.h"
32 bool manager_ignore_link(Manager *m, Link *link) { argument
36 assert(link);
39 if (link->flags & IFF_LOOPBACK)
43 if (m->interfaces && !strv_contains(m->interfaces, link->ifname))
48 if (fnmatch(*ignore, link->ifname, 0) == 0)
70 and at least one link to gain a carrier */
78 log_debug("link %s has not yet been processed by udev",
84 log_debug("link %s is being processed by networkd",
91 /* we wait for at least one link t
[all...]
H A Dnetworkd-netdev-bond.c182 static int netdev_bond_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument
188 assert(!link);
/systemd/src/resolve/
H A Dresolved-dns-search-domain.h31 #include "resolved-link.h"
40 Link *link; member in struct:DnsSearchDomain
55 Link *link,
H A Dresolved-dns-scope.h31 #include "resolved-link.h"
48 Link *link; member in struct:DnsScope
H A Dresolved-dns-server.h52 #include "resolved-link.h"
61 Link *link; member in struct:DnsServer
102 Link *link,
H A Dresolved-link.h40 Link *link; member in struct:LinkAddress
/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/libsystemd-network/
H A Darp-util.c80 union sockaddr_union link = { local
100 r = bind(s, &link.sa, sizeof(link.ll));
113 union sockaddr_union link = { local
139 r = sendto(fd, &arp, sizeof(struct ether_arp), 0, &link.sa, sizeof(link.ll));
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...]
H A Dtest-dhcp-client.c148 int dhcp_network_send_raw_socket(int s, const union sockaddr_union *link, const void *packet, size_t len) { argument
195 union sockaddr_union *link,
193 dhcp_network_bind_raw_socket( int index, union sockaddr_union *link, uint32_t id, const uint8_t *addr, size_t addr_len, uint16_t arp_type) argument
/systemd/src/test/
H A Dtest-copy.c90 char **links = STRV_MAKE("link", "file",
92 char **p, **link; local
104 STRV_FOREACH_PAIR(link, p, links) {
106 char *l = strjoina(original_dir, *link);
124 STRV_FOREACH_PAIR(link, p, links) {
127 char *l = strjoina(copy_dir, *link);

Completed in 3683 milliseconds

12