Searched refs:DHCPPacket (Results 1 - 8 of 8) sorted by relevance
/systemd/src/libsystemd-network/ |
H A D | dhcp-protocol.h | 50 struct DHCPPacket { struct 56 typedef struct DHCPPacket DHCPPacket; typedef in typeref:struct:DHCPPacket
|
H A D | dhcp-network.c | 42 BPF_JUMP(BPF_JMP + BPF_JGE + BPF_K, sizeof(DHCPPacket), 1, 0), /* packet >= DHCPPacket ? */ 44 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.protocol)), /* A <- IP protocol */ 47 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags */ 51 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags + Fragment offset */ 55 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination port */ 58 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.op)), /* A <- DHCP op */ 61 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.htype)), /* A <- DHCP header type */ 64 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.hlen)), /* A <- MAC address length */ 67 BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhc [all...] |
H A D | dhcp-internal.h | 56 void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, 60 int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum);
|
H A D | dhcp-server-internal.h | 90 DHCPRequest *req, DHCPPacket *packet,
|
H A D | sd-dhcp-server.c | 260 DHCPPacket *packet, size_t len) { 272 assert(len > sizeof(DHCPPacket)); 343 DHCPRequest *req, DHCPPacket *packet, 407 sizeof(DHCPPacket) + optoffset); 410 static int server_message_init(sd_dhcp_server *server, DHCPPacket **ret, 413 _cleanup_free_ DHCPPacket *packet = NULL; 422 packet = malloc0(sizeof(DHCPPacket) + req->max_optlen); 445 _cleanup_free_ DHCPPacket *packet = NULL; 482 _cleanup_free_ DHCPPacket *packet = NULL; 545 _cleanup_free_ DHCPPacket *packe [all...] |
H A D | dhcp-packet.c | 91 void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, 117 int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum) {
|
H A D | sd-dhcp-client.c | 409 static int client_message_init(sd_dhcp_client *client, DHCPPacket **ret, 411 _cleanup_free_ DHCPPacket *packet; 426 size = sizeof(DHCPPacket) + optlen; 569 static int dhcp_client_send_raw(sd_dhcp_client *client, DHCPPacket *packet, 579 _cleanup_free_ DHCPPacket *discover = NULL; 643 r = dhcp_client_send_raw(client, discover, sizeof(DHCPPacket) + optoffset); 653 _cleanup_free_ DHCPPacket *request = NULL; 749 r = dhcp_client_send_raw(client, request, sizeof(DHCPPacket) + optoffset); 1608 _cleanup_free_ DHCPPacket *packet = NULL; 1646 } else if ((size_t)len < sizeof(DHCPPacket)) [all...] |
H A D | test-dhcp-client.c | 150 _cleanup_free_ DHCPPacket *discover; 156 size = sizeof(DHCPPacket);
|
Completed in 1034 milliseconds