/systemd-251/src/libsystemd-network/ |
D | meson.build | 6 'dhcp-client-internal.h', 7 'dhcp-identifier.c', 8 'dhcp-identifier.h', 9 'dhcp-internal.h', 10 'dhcp-lease-internal.h', 11 'dhcp-network.c', 12 'dhcp-option.c', 13 'dhcp-packet.c', 14 'dhcp-protocol.h', 15 'dhcp-server-internal.h', [all …]
|
D | sd-dhcp-server.c | 362 packet->dhcp.yiaddr, in dhcp_server_send_unicast_raw() 440 destination_port, &packet->dhcp, in dhcp_server_send() 444 destination_port, &packet->dhcp, in dhcp_server_send() 468 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &optoffset, 0, in dhcp_server_send_packet() 478 … memcpy(packet->dhcp.options + optoffset, req->agent_info_option, opt_full_length); in dhcp_server_send_packet() 483 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &optoffset, 0, in dhcp_server_send_packet() 515 packet->dhcp.flags = htobe16(0x8000); in dhcp_server_send_packet() 545 r = dhcp_message_init(&packet->dhcp, BOOTREPLY, in server_message_init() 552 packet->dhcp.flags = req->message->flags; in server_message_init() 553 packet->dhcp.giaddr = req->message->giaddr; in server_message_init() [all …]
|
D | sd-dhcp-client.c | 816 r = dhcp_message_init(&packet->dhcp, BOOTREQUEST, client->xid, type, in client_message_init() 832 packet->dhcp.secs = htobe16(secs); in client_message_init() 846 packet->dhcp.flags = htobe16(0x8000); in client_message_init() 871 r = dhcp_option_append(&packet->dhcp, optlen, &optoffset, 0, in client_message_init() 909 r = dhcp_option_append(&packet->dhcp, optlen, &optoffset, 0, in client_message_init() 942 r = dhcp_option_append(&packet->dhcp, client->mtu, &optoffset, 0, in client_message_init() 1005 r = dhcp_option_append(&packet->dhcp, optlen, optoffset, 0, in client_append_common_discover_request_options() 1009 r = client_append_fqdn_option(&packet->dhcp, optlen, optoffset, in client_append_common_discover_request_options() 1016 r = dhcp_option_append(&packet->dhcp, optlen, optoffset, 0, in client_append_common_discover_request_options() 1025 r = dhcp_option_append(&packet->dhcp, optlen, optoffset, 0, in client_append_common_discover_request_options() [all …]
|
D | dhcp-network.c | 46 … BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.op)), /* A <- DHCP op */ in _bind_raw_socket() 49 … BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.htype)), /* A <- DHCP header type */ in _bind_raw_socket() 52 …BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhcp.xid)), /* A <- client identifier */ in _bind_raw_socket() 55 …BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.hlen)), /* A <- MAC address length … in _bind_raw_socket() 63 …BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhcp.chaddr)), /* A <- 4 b… in _bind_raw_socket() 67 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, dhcp.chaddr) + 4), /* A <- rem… in _bind_raw_socket() 71 …BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhcp.magic)), /* A <- DHCP magic cookie */ in _bind_raw_socket()
|
D | test-dhcp-client.c | 28 typedef int (*test_callback_recv_t)(size_t size, DHCPMessage *dhcp); 219 assert_se(discover->dhcp.xid); in dhcp_network_send_raw_socket() 220 assert_se(memcmp(discover->dhcp.chaddr, &mac_addr, ETH_ALEN) == 0); in dhcp_network_send_raw_socket() 225 callback_recv(size, &discover->dhcp); in dhcp_network_send_raw_socket() 258 static int test_discover_message_verify(size_t size, struct DHCPMessage *dhcp) { in test_discover_message_verify() argument 261 res = dhcp_option_parse(dhcp, size, check_options, NULL, NULL); in test_discover_message_verify() 265 printf(" recv DHCP Discover 0x%08x\n", be32toh(dhcp->xid)); in test_discover_message_verify()
|
D | dhcp-protocol.h | 39 DHCPMessage dhcp; member
|
/systemd-251/src/network/ |
D | meson.build | 78 'networkd-dhcp-common.c', 79 'networkd-dhcp-common.h', 80 'networkd-dhcp-prefix-delegation.c', 81 'networkd-dhcp-prefix-delegation.h', 82 'networkd-dhcp-server-bus.c', 83 'networkd-dhcp-server-bus.h', 84 'networkd-dhcp-server-static-lease.c', 85 'networkd-dhcp-server-static-lease.h', 86 'networkd-dhcp-server.c', 87 'networkd-dhcp-server.h',
|
D | networkd-dhcp-common.c | 74 … return link->network->dhcp & (family == AF_INET ? ADDRESS_FAMILY_IPV4 : ADDRESS_FAMILY_IPV6); in link_dhcp_enabled() 79 assert(network->dhcp >= 0); in network_adjust_dhcp() 81 if (network->dhcp == ADDRESS_FAMILY_NO) in network_adjust_dhcp() 88 network->dhcp = ADDRESS_FAMILY_NO; in network_adjust_dhcp() 93 FLAGS_SET(network->dhcp, ADDRESS_FAMILY_IPV6)) { in network_adjust_dhcp() 96 SET_FLAG(network->dhcp, ADDRESS_FAMILY_IPV6, false); in network_adjust_dhcp() 278 AddressFamily *dhcp = data, s; in config_parse_dhcp() local 307 *dhcp = s; in config_parse_dhcp()
|
D | networkd-gperf.gperf | 9 #include "networkd-dhcp-common.h"
|
D | networkd-network-gperf.gperf | 17 #include "networkd-dhcp-common.h" 18 #include "networkd-dhcp-prefix-delegation.h" 19 #include "networkd-dhcp-server-static-lease.h" 20 #include "networkd-dhcp-server.h" 104 …dhcp, 0, offsetof(Network, dhcp)
|
/systemd-251/src/systemd/ |
D | meson.build | 24 'sd-dhcp-client.h', 25 'sd-dhcp-lease.h', 26 'sd-dhcp-option.h', 28 'sd-dhcp-server.h',
|
/systemd-251/test/test-network/conf/ |
D | isc-dhcpd-dhcp6pd.conf | 4 option dhcp-renewal-time 3600; 5 option dhcp-rebinding-time 7200;
|
D | 25-dhcp-client-keep-configuration-dhcp.network | 8 KeepConfiguration=dhcp
|
D | 25-dhcp-client-keep-configuration-dhcp-on-stop.network | 8 KeepConfiguration=dhcp-on-stop
|
/systemd-251/test/test-network-generator-conversion/ |
D | test-01-dhcp.input | 1 ip=dhcp
|
D | test-02-bridge.input | 3 ip=bridge99:dhcp:1530:00:11:22:33:44:55
|
/systemd-251/test/test-fstab-generator/ |
D | test-02-dhcp.input | 1 root=dhcp
|
/systemd-251/test/fuzz/ |
D | .gitattributes | 3 /fuzz-dhcp*/* binary
|
/systemd-251/mkosi.default.d/arch/ |
D | 10-mkosi.arch | 71 dhcp
|
/systemd-251/rules.d/ |
D | meson.build | 30 '81-net-dhcp.rules',
|
/systemd-251/mkosi.default.d/debian/ |
D | 10-mkosi.debian | 81 isc-dhcp-server
|
/systemd-251/mkosi.default.d/fedora/ |
D | 10-mkosi.fedora | 84 dhcp-server
|
/systemd-251/mkosi.default.d/ubuntu/ |
D | 10-mkosi.ubuntu | 79 isc-dhcp-server
|
/systemd-251/mkosi.default.d/centos_epel/ |
D | 10-mkosi.centos_epel | 85 dhcp-server
|
/systemd-251/src/network/generator/ |
D | network-generator.c | 1131 const char *dhcp; in network_dump() local 1150 dhcp = networkd_dhcp_type_to_string(network->dhcp_type); in network_dump() 1151 if (dhcp) in network_dump() 1152 fprintf(f, "DHCP=%s\n", dhcp); in network_dump()
|