DHCPPacket 59 src/libsystemd-network/dhcp-internal.h void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, DHCPPacket 63 src/libsystemd-network/dhcp-internal.h int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum); DHCPPacket 44 src/libsystemd-network/dhcp-network.c BPF_JUMP(BPF_JMP + BPF_JGE + BPF_K, sizeof(DHCPPacket), 1, 0), /* packet >= DHCPPacket ? */ DHCPPacket 46 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.protocol)), /* A <- IP protocol */ DHCPPacket 49 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags */ DHCPPacket 53 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags + Fragment offset */ DHCPPacket 57 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination port */ DHCPPacket 60 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.op)), /* A <- DHCP op */ DHCPPacket 63 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.htype)), /* A <- DHCP header type */ DHCPPacket 66 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.hlen)), /* A <- mac address length */ DHCPPacket 69 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhcp.xid)), /* A <- client identifier */ DHCPPacket 74 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhcp.chaddr)), /* A <- 4 bytes of MAC from dhcp.chaddr */ DHCPPacket 80 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, dhcp.chaddr) + 4), /* A <- remainder of MAC from dhcp.chaddr */ DHCPPacket 84 src/libsystemd-network/dhcp-network.c BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhcp.magic)), /* A <- DHCP magic cookie */ DHCPPacket 100 src/libsystemd-network/dhcp-packet.c void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, DHCPPacket 126 src/libsystemd-network/dhcp-packet.c int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum) { DHCPPacket 58 src/libsystemd-network/dhcp-protocol.h typedef struct DHCPPacket DHCPPacket; DHCPPacket 87 src/libsystemd-network/dhcp-server-internal.h DHCPRequest *req, DHCPPacket *packet, DHCPPacket 318 src/libsystemd-network/sd-dhcp-client.c static int client_message_init(sd_dhcp_client *client, DHCPPacket **ret, DHCPPacket 320 src/libsystemd-network/sd-dhcp-client.c _cleanup_free_ DHCPPacket *packet; DHCPPacket 335 src/libsystemd-network/sd-dhcp-client.c size = sizeof(DHCPPacket) + optlen; DHCPPacket 441 src/libsystemd-network/sd-dhcp-client.c static int dhcp_client_send_raw(sd_dhcp_client *client, DHCPPacket *packet, DHCPPacket 451 src/libsystemd-network/sd-dhcp-client.c _cleanup_free_ DHCPPacket *discover = NULL; DHCPPacket 507 src/libsystemd-network/sd-dhcp-client.c r = dhcp_client_send_raw(client, discover, sizeof(DHCPPacket) + optoffset); DHCPPacket 517 src/libsystemd-network/sd-dhcp-client.c _cleanup_free_ DHCPPacket *request = NULL; DHCPPacket 609 src/libsystemd-network/sd-dhcp-client.c r = dhcp_client_send_raw(client, request, sizeof(DHCPPacket) + optoffset); DHCPPacket 1439 src/libsystemd-network/sd-dhcp-client.c _cleanup_free_ DHCPPacket *packet = NULL; DHCPPacket 1475 src/libsystemd-network/sd-dhcp-client.c } else if ((size_t)len < sizeof(DHCPPacket)) DHCPPacket 223 src/libsystemd-network/sd-dhcp-server.c DHCPPacket *packet, size_t len) { DHCPPacket 236 src/libsystemd-network/sd-dhcp-server.c assert(len > sizeof(DHCPPacket)); DHCPPacket 311 src/libsystemd-network/sd-dhcp-server.c DHCPRequest *req, DHCPPacket *packet, DHCPPacket 375 src/libsystemd-network/sd-dhcp-server.c sizeof(DHCPPacket) + optoffset); DHCPPacket 378 src/libsystemd-network/sd-dhcp-server.c static int server_message_init(sd_dhcp_server *server, DHCPPacket **ret, DHCPPacket 381 src/libsystemd-network/sd-dhcp-server.c _cleanup_free_ DHCPPacket *packet = NULL; DHCPPacket 390 src/libsystemd-network/sd-dhcp-server.c packet = malloc0(sizeof(DHCPPacket) + req->max_optlen); DHCPPacket 413 src/libsystemd-network/sd-dhcp-server.c _cleanup_free_ DHCPPacket *packet = NULL; DHCPPacket 450 src/libsystemd-network/sd-dhcp-server.c _cleanup_free_ DHCPPacket *packet = NULL; DHCPPacket 486 src/libsystemd-network/sd-dhcp-server.c _cleanup_free_ DHCPPacket *packet = NULL; DHCPPacket 503 src/libsystemd-network/sd-dhcp-server.c _cleanup_free_ DHCPPacket *packet = NULL; DHCPPacket 511 src/libsystemd-network/sd-dhcp-server.c packet = malloc0(sizeof(DHCPPacket) + DHCP_MIN_OPTIONS_SIZE); DHCPPacket 575 src/libsystemd-network/sd-dhcp-server.c - sizeof(DHCPPacket);