/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-util.c | 55 const struct ether_addr *mac, unsigned mtu) { 62 if (!alias && !mac && mtu == 0) 87 if (mtu > 0) { 88 r = sd_netlink_message_append_u32(message, IFLA_MTU, mtu); 54 rtnl_set_link_properties(sd_netlink **rtnl, int ifindex, const char *alias, const struct ether_addr *mac, unsigned mtu) argument
|
H A D | test-netlink.c | 55 unsigned int mtu = 1450, mtu_out; local 63 assert_se(sd_netlink_message_append_u32(message, IFLA_MTU, mtu) >= 0); 75 assert_se(mtu == mtu_out); 81 unsigned int mtu = 1500; local 96 assert_se(sd_netlink_message_append_u32(m, IFLA_MTU, mtu) >= 0);
|
/systemd/src/libsystemd-network/ |
H A D | dhcp-lease-internal.h | 75 uint16_t mtu; /* 0 if unset */ member in struct:sd_dhcp_lease
|
H A D | test-ndisc-rs.c | 96 uint32_t mtu; local 111 assert_se(sd_ndisc_get_mtu(nd, &mtu) == -ENOMSG);
|
H A D | sd-dhcp-lease.c | 99 int sd_dhcp_lease_get_mtu(sd_dhcp_lease *lease, uint16_t *mtu) { argument 101 assert_return(mtu, -EINVAL); 103 if (lease->mtu <= 0) 106 *mtu = lease->mtu; 577 r = lease_parse_u16(option, len, &lease->mtu, 68); 735 uint16_t mtu; local 776 r = sd_dhcp_lease_get_mtu(lease, &mtu); 778 fprintf(f, "MTU=%" PRIu16 "\n", mtu); 889 *mtu local [all...] |
H A D | sd-ndisc.c | 80 uint32_t mtu; member in struct:sd_ndisc 268 int sd_ndisc_get_mtu(sd_ndisc *nd, uint32_t *mtu) { argument 270 assert_return(mtu, -EINVAL); 272 if (nd->mtu == 0) 275 *mtu = nd->mtu; 433 uint32_t mtu; local 443 mtu = be32toh(opt_mtu->nd_opt_mtu_mtu); 445 if (mtu != nd->mtu) { [all...] |
H A D | sd-dhcp-client.c | 96 uint32_t mtu; member in struct:sd_dhcp_client 342 int sd_dhcp_client_set_mtu(sd_dhcp_client *client, uint32_t mtu) { argument 344 assert_return(mtu >= DHCP_DEFAULT_MIN_SIZE, -ERANGE); 346 client->mtu = mtu; 537 r = dhcp_option_append(&packet->dhcp, client->mtu, &optoffset, 0, 1788 client->mtu = DHCP_DEFAULT_MIN_SIZE;
|
/systemd/src/network/ |
H A D | networkd-dhcp4.c | 225 uint16_t mtu; local 227 r = sd_dhcp_lease_get_mtu(link->dhcp_lease, &mtu); 228 if (r >= 0 && link->original_mtu != mtu) { 414 uint16_t mtu; local 416 r = sd_dhcp_lease_get_mtu(lease, &mtu); 418 r = link_set_mtu(link, mtu); 420 log_link_error_errno(link, r, "Failed to set MTU to %" PRIu16 ": %m", mtu); 566 if (link->mtu) { 567 r = sd_dhcp_client_set_mtu(link->dhcp_client, link->mtu);
|
H A D | networkd-link.h | 71 uint32_t mtu; member in struct:Link 147 int link_set_mtu(Link *link, uint32_t mtu);
|
H A D | networkd-netdev.h | 98 size_t mtu; member in struct:NetDev
|
H A D | networkctl.c | 521 uint32_t mtu; local 570 (void) sd_netlink_message_read_u32(reply, IFLA_MTU, &mtu); 641 if (mtu > 0) 642 printf(" MTU: %u\n", mtu);
|
H A D | networkd-network.h | 138 unsigned mtu; member in struct:Network
|
H A D | networkd-link.c | 1148 int link_set_mtu(Link *link, uint32_t mtu) { argument 1156 log_link_debug(link, "Setting MTU: %" PRIu32, mtu); 1162 r = sd_netlink_message_append_u32(req, IFLA_MTU, mtu); 1385 if (link->network->mtu) { 1386 r = sd_netlink_message_append_u32(req, IFLA_MTU, link->network->mtu); 2569 uint32_t mtu; local 2602 r = sd_netlink_message_read_u32(m, IFLA_MTU, &mtu); 2603 if (r >= 0 && mtu > 0) { 2604 link->mtu = mtu; [all...] |
/systemd/src/resolve/ |
H A D | resolved-link.h | 82 uint32_t mtu; member in struct:Link
|
H A D | resolved-dns-scope.c | 181 uint32_t mtu; local 188 mtu = s->link->mtu; 191 mtu = manager_find_mtu(s->manager); 204 if (p->size + UDP_PACKET_HEADER_SIZE > mtu)
|
H A D | resolved-manager.c | 916 uint32_t mtu = 0; local 925 if (l->mtu <= 0) 928 if (mtu <= 0 || l->mtu < mtu) 929 mtu = l->mtu; 932 return mtu;
|
H A D | resolved-dns-packet.c | 31 int dns_packet_new(DnsPacket **ret, DnsProtocol protocol, size_t mtu) { argument 37 if (mtu <= UDP_PACKET_HEADER_SIZE) 40 a = mtu - UDP_PACKET_HEADER_SIZE; 117 int dns_packet_new_query(DnsPacket **ret, DnsProtocol protocol, size_t mtu, bool dnssec_checking_disabled) { argument 123 r = dns_packet_new(&p, protocol, mtu);
|
/systemd/src/udev/net/ |
H A D | link-config.h | 69 size_t mtu; member in struct:link_config
|