Lines Matching refs:dhcp_msg
56 struct dhcp_msg discovery;
441 struct dhcp_msg *msg, in dhcpv4_encode_header()
444 struct dhcp_msg *reply_msg = (struct dhcp_msg *)buf; in dhcpv4_encode_header()
446 if (buf == NULL || *buflen < sizeof(struct dhcp_msg)) { in dhcpv4_encode_header()
467 *buflen -= sizeof(struct dhcp_msg); in dhcpv4_encode_header()
469 return buf + sizeof(struct dhcp_msg); in dhcpv4_encode_header()
543 uint8_t *reply, size_t len, struct dhcp_msg *msg, in dhcpv4_send()
608 static int dhcpv4_send_offer(struct dhcpv4_server_ctx *ctx, struct dhcp_msg *msg, in dhcpv4_send_offer()
648 static int dhcpv4_send_ack(struct dhcpv4_server_ctx *ctx, struct dhcp_msg *msg, in dhcpv4_send_ack()
693 static int dhcpv4_send_nak(struct dhcpv4_server_ctx *ctx, struct dhcp_msg *msg, in dhcpv4_send_nak()
731 static int dhcpv4_get_client_id(struct dhcp_msg *msg, uint8_t *options, in dhcpv4_get_client_id()
886 struct dhcp_msg *msg, in dhcpv4_server_probe_setup()
941 struct dhcp_msg *msg, uint8_t *options, in dhcpv4_handle_discover()
1101 struct dhcp_msg *msg, uint8_t *options, in dhcpv4_handle_request()
1278 struct dhcp_msg *msg, uint8_t *options, in dhcpv4_handle_decline()
1331 struct dhcp_msg *msg, uint8_t *options, in dhcpv4_handle_release()
1378 struct dhcp_msg *msg, uint8_t *options, in dhcpv4_handle_inform()
1428 struct dhcp_msg *msg; in dhcpv4_process_data()
1432 if (datalen < sizeof(struct dhcp_msg)) { in dhcpv4_process_data()
1437 msg = (struct dhcp_msg *)data; in dhcpv4_process_data()
1444 data += sizeof(struct dhcp_msg); in dhcpv4_process_data()
1445 datalen -= sizeof(struct dhcp_msg); in dhcpv4_process_data()