Home
last modified time | relevance | path

Searched refs:dhcp (Results 1 – 25 of 31) sorted by relevance

12

/systemd-251/src/libsystemd-network/
Dmeson.build6 '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 …]
Dsd-dhcp-server.c362 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 …]
Dsd-dhcp-client.c816 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 …]
Ddhcp-network.c46 … 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()
Dtest-dhcp-client.c28 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()
Ddhcp-protocol.h39 DHCPMessage dhcp; member
/systemd-251/src/network/
Dmeson.build78 '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',
Dnetworkd-dhcp-common.c74 … 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()
Dnetworkd-gperf.gperf9 #include "networkd-dhcp-common.h"
Dnetworkd-network-gperf.gperf17 #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/
Dmeson.build24 '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/
Disc-dhcpd-dhcp6pd.conf4 option dhcp-renewal-time 3600;
5 option dhcp-rebinding-time 7200;
D25-dhcp-client-keep-configuration-dhcp.network8 KeepConfiguration=dhcp
D25-dhcp-client-keep-configuration-dhcp-on-stop.network8 KeepConfiguration=dhcp-on-stop
/systemd-251/test/test-network-generator-conversion/
Dtest-01-dhcp.input1 ip=dhcp
Dtest-02-bridge.input3 ip=bridge99:dhcp:1530:00:11:22:33:44:55
/systemd-251/test/test-fstab-generator/
Dtest-02-dhcp.input1 root=dhcp
/systemd-251/test/fuzz/
D.gitattributes3 /fuzz-dhcp*/* binary
/systemd-251/mkosi.default.d/arch/
D10-mkosi.arch71 dhcp
/systemd-251/rules.d/
Dmeson.build30 '81-net-dhcp.rules',
/systemd-251/mkosi.default.d/debian/
D10-mkosi.debian81 isc-dhcp-server
/systemd-251/mkosi.default.d/fedora/
D10-mkosi.fedora84 dhcp-server
/systemd-251/mkosi.default.d/ubuntu/
D10-mkosi.ubuntu79 isc-dhcp-server
/systemd-251/mkosi.default.d/centos_epel/
D10-mkosi.centos_epel85 dhcp-server
/systemd-251/src/network/generator/
Dnetwork-generator.c1131 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()

12