Searched refs:dhcp_msg (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4_internal.h | 18 struct dhcp_msg { struct 82 #define DHCPV4_MESSAGE_SIZE (sizeof(struct dhcp_msg) + \
|
D | dhcpv4_server.c | 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() [all …]
|
D | dhcpv4.c | 240 NET_PKT_DATA_ACCESS_DEFINE(dhcp_access, struct dhcp_msg); in dhcpv4_create_message() 244 struct dhcp_msg *msg; in dhcpv4_create_message() 301 msg = (struct dhcp_msg *)net_pkt_get_data(pkt, &dhcp_access); in dhcpv4_create_message() 303 (void)memset(msg, 0, sizeof(struct dhcp_msg)); in dhcpv4_create_message() 705 static void dhcpv4_enter_requesting(struct net_if *iface, struct dhcp_msg *msg) in dhcpv4_enter_requesting() 1334 struct dhcp_msg *msg) in dhcpv4_handle_msg_offer() 1427 struct dhcp_msg *msg) in dhcpv4_handle_reply() 1455 NET_PKT_DATA_ACCESS_DEFINE(dhcp_access, struct dhcp_msg); in net_dhcpv4_input() 1458 struct dhcp_msg *msg; in net_dhcpv4_input() 1478 if (net_pkt_get_len(pkt) < NET_IPV4UDPH_LEN + sizeof(struct dhcp_msg)) { in net_dhcpv4_input() [all …]
|
/Zephyr-latest/tests/net/dhcpv4/client/src/ |
D | main.c | 228 struct dhcp_msg { struct 357 static int parse_dhcp_message(struct net_pkt *pkt, struct dhcp_msg *msg) in parse_dhcp_message() 413 struct dhcp_msg msg; in tester_send()
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 150 struct dhcp_msg msg = { 0 }; in client_prepare_test_msg() 489 NET_PKT_DATA_ACCESS_DEFINE(dhcp_access, struct dhcp_msg); in verify_offer() 494 struct dhcp_msg *msg; in verify_offer() 505 msg = (struct dhcp_msg *)net_pkt_get_data(pkt, &dhcp_access); in verify_offer() 663 NET_PKT_DATA_ACCESS_DEFINE(dhcp_access, struct dhcp_msg); in verify_ack() 668 struct dhcp_msg *msg; in verify_ack() 679 msg = (struct dhcp_msg *)net_pkt_get_data(pkt, &dhcp_access); in verify_ack()
|