/third_party/lwip/src/core/ipv4/ |
H A D | dhcp.c | 76 #include "lwip/dhcp.h" 80 #include "lwip/prot/dhcp.h" 89 #define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr) 92 #define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) do { LWIP_UNUSED_ARG(msg); } while(0) 119 #if 0 /* The following codes are moved to dhcp.h for fixing it's todo, kept here just for notice */ 132 * This might be moved into the struct dhcp (not necessarily since 156 @todo: move this into struct dhcp? */ 160 @todo: move this into struct dhcp? */ 186 #define dhcp_option_given(dhcp, idx) ((dhcp) 285 struct dhcp *dhcp = netif_dhcp_data(netif); dhcp_handle_nak() local 311 struct dhcp *dhcp = netif_dhcp_data(netif); dhcp_check() local 340 struct dhcp *dhcp = netif_dhcp_data(netif); dhcp_handle_offer() local 374 struct dhcp *dhcp; dhcp_select() local 447 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 486 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 518 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 546 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 574 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 621 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 648 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 674 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 763 dhcp_set_struct(struct netif *netif, struct dhcp *dhcp) global() argument 812 struct dhcp *dhcp; global() local 889 struct dhcp dhcp; global() local 933 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 978 struct dhcp *dhcp; global() local 1010 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 1056 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 1116 struct dhcp *dhcp; global() local 1218 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 1274 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 1328 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 1386 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 1484 dhcp_set_state(struct dhcp *dhcp, u8_t new_state) global() argument 1574 dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp) global() argument 1708 LWIP_HOOK_DHCP_PARSE_OPTION(ip_current_netif(), dhcp, dhcp->state, msg_in, global() local 1826 struct dhcp *dhcp = netif_dhcp_data(netif); global() local 1943 dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len) global() argument 2052 struct dhcp *dhcp = netif_dhcp_data(netif); global() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | fils_hlp.c | 13 #include "common/dhcp.h" 40 struct dhcp_data *dhcp; in fils_dhcp_request() local 55 dhcp = (struct dhcp_data *) pos; in fils_dhcp_request() 56 pos = (u8 *) (dhcp + 1); in fils_dhcp_request() 91 sta->hlp_dhcp_discover->used = pos - (u8 *) dhcp; in fils_dhcp_request() 155 struct dhcp_data *dhcp; in fils_dhcp_handler() local 178 if ((size_t) res < sizeof(*dhcp)) in fils_dhcp_handler() 180 dhcp = (struct dhcp_data *) buf; in fils_dhcp_handler() 181 if (dhcp->op != 2) in fils_dhcp_handler() 183 if (dhcp in fils_dhcp_handler() 329 const struct dhcp_data *dhcp; fils_process_hlp_dhcp() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | fils_hlp.c | 13 #include "common/dhcp.h" 40 struct dhcp_data *dhcp; in fils_dhcp_request() local 55 dhcp = (struct dhcp_data *) pos; in fils_dhcp_request() 56 pos = (u8 *) (dhcp + 1); in fils_dhcp_request() 91 sta->hlp_dhcp_discover->used = pos - (u8 *) dhcp; in fils_dhcp_request() 155 struct dhcp_data *dhcp; in fils_dhcp_handler() local 178 if ((size_t) res < sizeof(*dhcp)) in fils_dhcp_handler() 180 dhcp = (struct dhcp_data *) buf; in fils_dhcp_handler() 181 if (dhcp->op != 2) in fils_dhcp_handler() 183 if (dhcp in fils_dhcp_handler() 329 const struct dhcp_data *dhcp; fils_process_hlp_dhcp() local [all...] |
/third_party/ltp/testcases/network/dhcp/ |
H A D | dnsmasq_tests.sh | 11 --dhcp-range=10.1.1.100,10.1.1.100,255.255.255.0,2m \ 12 --dhcp-option=option:router --dhcp-option=option:dns-server 18 dnsmasq --dhcp-range=fd00::1,fd00::1 --test > /dev/null 2>&1 || \ 22 --dhcp-range=fd00:1:1:2::100,fd00:1:1:2::100 --enable-ra \ 23 --dhcp-option=option6:dns-server 46 common_opt="--no-hosts --no-resolv --dhcp-authoritative \ 48 --dhcp-leasefile=$lease_file --port=0 --conf-file= "
|
H A D | dhcpd_tests.sh | 26 elif [ -f /etc/dhcp/dhcpd.conf ]; then 27 DHCPD_CONF="/etc/dhcp/dhcpd.conf"
|
/third_party/lwip/src/include/lwip/ |
H A D | dhcp.h | 73 * This might be moved into the struct dhcp (not necessarily since 96 /* AutoIP cooperation flags (struct dhcp.autoip_coop_state) */ 102 struct dhcp struct 124 ip_addr_t server_ip_addr; /* dhcp server address that offered this lease (ip_addr_t because passed to UDP) */ 143 void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp); 144 /** Remove a struct dhcp previously set to the netif using dhcp_set_struct() */ 175 #define netif_dhcp_data(netif) ((struct dhcp*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP))
|
H A D | opt.h | 3078 * LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr): 3079 * Called from various dhcp functions when sending a DHCP message. 3083 * void my_hook(struct netif *netif, struct dhcp *dhcp, u8_t state, struct dhcp_msg *msg, 3088 * - dhcp: struct dhcp on that netif 3089 * - state: current dhcp state (dhcp_state_enum_t as an u8_t) 3091 * - msg_type: dhcp message type to be sent (u8_t) 3096 * LWIP_ASSERT("dhcp option overflow", *options_len_ptr + option_len + 2 <= DHCP_OPTIONS_LEN); 3103 #define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, stat [all...] |
/third_party/lwip/test/unit/dhcp/ |
H A D | test_dhcp.c | 4 #include "lwip/dhcp.h" 5 #include "lwip/prot/dhcp.h" 878 struct dhcp* dhcp; in START_TEST() local 895 dhcp = netif_dhcp_data(&net_test); in START_TEST() 898 xid = dhcp->xid; /* Write bad xid, not using htonl! */ in START_TEST() 908 xid = htonl(dhcp->xid); in START_TEST() 912 fail_unless(dhcp->state == DHCP_STATE_REQUESTING); in START_TEST() 915 xid = htonl(dhcp->xid); /* xid updated */ in START_TEST() 917 tries = dhcp in START_TEST() [all...] |
/third_party/lwip/test/unit/ |
H A D | Filelists.mk | 41 $(TESTDIR)/dhcp/test_dhcp.c \
|
/third_party/FreeBSD/sys/dev/usb/net/ |
H A D | usb_eth_drv.c | 34 #include <lwip/dhcp.h> 107 PRINT_ERR("%s, %d, dhcp start failed, ret:%d\n", __FUNCTION__, __LINE__, ret); in eth_drv_init()
|
H A D | if_axge.c | 36 #include <lwip/dhcp.h>
|
H A D | if_axe.c | 80 #include <lwip/dhcp.h>
|
H A D | if_urndis.c | 26 #include <lwip/dhcp.h>
|
/third_party/lwip/src/ |
H A D | Filelists.mk | 57 $(LWIPDIR)/core/ipv4/dhcp.c \
|
/third_party/toybox/toys/pending/ |
H A D | dhcp.c | 0 /* dhcp.c - DHCP client for dynamic network configuration. 7 USE_DHCP(NEWTOY(dhcp, "V:H:F:x*r:O*A#<0=20T#<0=3t#<0=3s:p:i:SBRCaovqnbf", TOYFLAG_SBIN|TOYFLAG_ROOTONLY)) 10 bool "dhcp" 13 usage: dhcp [-fbnqvoCRB] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE] 20 -s Run PROG at DHCP events (default /usr/share/dhcp/default.script) 171 dhcp_msg_t dhcp; member 262 // calculates checksum for dhcp messages. 386 // String to dhcp option conversion 534 : "/usr/share/dhcp/default.script"; in run_script() 694 memcpy(&state->pdhcp, &packet.dhcp, byte in read_raw() [all...] |
H A D | dhcpd.c | 165 dhcp_msg_t dhcp; member 340 // calculates checksum for dhcp messeges. 541 // String to dhcp option conversion 913 memcpy(&packet.dhcp, &gstate.send.send_pkt, sizeof(dhcp_msg_t)); in send_packet() 1012 // Preapres a dhcp packet with defaults and configs 1035 // Sets a option value in dhcp packet's option field 1056 // Gets a option value from dhcp packet's option field 1128 // Retrives Requested Parameter list from dhcp req packet. 1141 // Sets values of req param in dhcp offer packet.
|
/third_party/toybox/generated/ |
H A D | globals.h | 686 // toys/pending/dhcp.c 1686 struct dhcp_data dhcp; member
|
H A D | flags.h | 606 // dhcp V:H:F:x*r:O*A#<0=20T#<0=3t#<0=3s:p:i:SBRCaovqnbf 3989 #define TT this.dhcp
|
/third_party/FreeBSD/sys/dev/usb/serial/ |
H A D | usb_serial.c | 67 #include <lwip/dhcp.h> 1261 } else if (strcmp("dhcp", argv[0]) == 0) { in u3g_write_from_shell()
|