Searched refs:DHCPPacket (Results 1 – 8 of 8) sorted by relevance
/systemd-251/src/libsystemd-network/ |
D | dhcp-network.c | 30 …BPF_JUMP(BPF_JMP + BPF_JGE + BPF_K, sizeof(DHCPPacket), 1, 0), /* packet >= DHCPPacket ? */ in _bind_raw_socket() 32 … BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.protocol)), /* A <- IP protocol */ in _bind_raw_socket() 35 … BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags */ in _bind_raw_socket() 39 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags + Fragment of… in _bind_raw_socket() 43 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination por… in _bind_raw_socket() 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() [all …]
|
D | dhcp-protocol.h | 36 struct DHCPPacket { struct 42 typedef struct DHCPPacket DHCPPacket; argument
|
D | sd-dhcp-server.c | 338 DHCPPacket *packet, in dhcp_server_send_unicast_raw() 354 assert(len > sizeof(DHCPPacket)); in dhcp_server_send_unicast_raw() 434 DHCPPacket *packet, in dhcp_server_send() 451 sizeof(DHCPPacket) + optoffset); in dhcp_server_send() 455 DHCPRequest *req, DHCPPacket *packet, in dhcp_server_send_packet() 526 DHCPPacket **ret, in server_message_init() 531 _cleanup_free_ DHCPPacket *packet = NULL; in server_message_init() 541 packet = malloc0(sizeof(DHCPPacket) + req->max_optlen); in server_message_init() 567 _cleanup_free_ DHCPPacket *packet = NULL; in server_send_offer_or_ack() 676 _cleanup_free_ DHCPPacket *packet = NULL; in server_send_nak_or_ignore() [all …]
|
D | dhcp-packet.c | 99 void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, in dhcp_packet_append_ip_headers() 128 int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum, uint16_t port) { in dhcp_packet_verify_headers() 132 assert(len >= sizeof(DHCPPacket)); in dhcp_packet_verify_headers()
|
D | dhcp-internal.h | 61 void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, 65 int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum, uint16_t port);
|
D | sd-dhcp-client.c | 790 DHCPPacket **ret, in client_message_init() 795 _cleanup_free_ DHCPPacket *packet = NULL; in client_message_init() 810 size = sizeof(DHCPPacket) + optlen; in client_message_init() 980 DHCPPacket *packet, in dhcp_client_send_raw() 990 static int client_append_common_discover_request_options(sd_dhcp_client *client, DHCPPacket *packet… in client_append_common_discover_request_options() 1063 _cleanup_free_ DHCPPacket *discover = NULL; in client_send_discover() 1104 r = dhcp_client_send_raw(client, discover, sizeof(DHCPPacket) + optoffset); in client_send_discover() 1114 _cleanup_free_ DHCPPacket *request = NULL; in client_send_request() 1202 r = dhcp_client_send_raw(client, request, sizeof(DHCPPacket) + optoffset); in client_send_request() 1983 _cleanup_free_ DHCPPacket *packet = NULL; in client_receive_message_raw() [all …]
|
D | dhcp-server-internal.h | 112 DHCPRequest *req, DHCPPacket *packet,
|
D | test-dhcp-client.c | 187 _cleanup_free_ DHCPPacket *discover; in dhcp_network_send_raw_socket() 193 size = sizeof(DHCPPacket); in dhcp_network_send_raw_socket()
|