Searched refs:send_pkt (Results 1 – 2 of 2) sorted by relevance
/third_party/lwip/test/unit/dhcp/ |
D | test_dhcp.c | 143 static void send_pkt(struct netif *netif, const u8_t *data, size_t len) in send_pkt() function 459 send_pkt(&net_test, dhcp_offer, sizeof(dhcp_offer)); in START_TEST() 469 send_pkt(&net_test, dhcp_offer, sizeof(dhcp_offer)); in START_TEST() 474 send_pkt(&net_test, dhcp_ack, sizeof(dhcp_ack)); in START_TEST() 479 send_pkt(&net_test, dhcp_ack, sizeof(dhcp_ack)); in START_TEST() 532 send_pkt(&net_test, dhcp_offer, sizeof(dhcp_offer)); in START_TEST() 542 send_pkt(&net_test, dhcp_offer, sizeof(dhcp_offer)); in START_TEST() 547 send_pkt(&net_test, dhcp_ack, sizeof(dhcp_ack)); in START_TEST() 552 send_pkt(&net_test, dhcp_ack, sizeof(dhcp_ack)); in START_TEST() 559 send_pkt(&net_test, arpreply, sizeof(arpreply)); in START_TEST() [all …]
|
/third_party/toybox/toys/pending/ |
D | dhcpd.c | 281 dhcp_msg_t send_pkt; member 913 memcpy(&packet.dhcp, &gstate.send.send_pkt, sizeof(dhcp_msg_t)); in send_packet() 931 padding = 308 - 1 - dhcp_opt_size(gstate.send.send_pkt.options); in send_packet() 1015 memset((void*)&gstate.send.send_pkt, 0, sizeof(gstate.send.send_pkt)); in prepare_send_pkt() 1016 gstate.send.send_pkt.op = 2; //BOOTPREPLY in prepare_send_pkt() 1017 gstate.send.send_pkt.htype = 1; in prepare_send_pkt() 1018 gstate.send.send_pkt.hlen = 6; in prepare_send_pkt() 1019 gstate.send.send_pkt.xid = gstate.rcvd.rcvd_pkt.xid; in prepare_send_pkt() 1020 gstate.send.send_pkt.cookie = htonl(DHCP_MAGIC); in prepare_send_pkt() 1021 gstate.send.send_pkt.nsiaddr = gconfig.server_nip; in prepare_send_pkt() [all …]
|