Searched refs:dhcp (Results 1 - 6 of 6) sorted by relevance

/xnu-2422.115.4/bsd/netinet/
H A Ddhcp.h34 * dhcp.h
43 struct dhcp { struct
64 struct dhcp dhcp; member in struct:dhcp_packet
69 #define DHCP_PAYLOAD_MIN (sizeof(struct dhcp) + DHCP_OPTIONS_MIN)
71 /* dhcp message types */
H A Din_dhcp.h45 dhcp(struct ifnet * ifp, struct in_addr * iaddr_p, int max_try,
H A Ddhcp_options.h35 * - routines to parse and access dhcp options
45 #include <netinet/dhcp.h>
144 /* dhcp-specific extensions: 50..61, 66, 67 */
170 * Module: dhcpol (dhcp options list)
173 * Routines to parse and retrieve dhcp options.
201 const struct dhcp * pkt, int len);
204 * Module: dhcpoa (dhcp options area)
207 * Types and functions to create new dhcp option areas.
213 * To record information about a dhcp option data area.
228 * To record information about a dhcp optio
[all...]
H A Din_dhcp.c69 #include <netinet/dhcp.h>
146 static __inline__ struct dhcp *
149 return ((struct dhcp *)(void *)context->reply);
206 make_dhcp_request(struct dhcp * request, int request_size,
215 printf("dhcp: hwlen is %d (> %d), truncating\n", hwlen,
226 request_size - sizeof(struct dhcp) - RFC_MAGIC_SIZE);
227 /* make the request a dhcp packet */
256 printf("dhcp: ip_pkt_to_mbuf: m_devget failed\n");
349 dprintf(("dhcp: timeout\n"));
361 * Return an integer point rating value for the given dhcp packe
914 dhcp(struct ifnet * ifp, struct in_addr * iaddr_p, int max_try, function
[all...]
H A Ddhcp_options.c30 * - routines to parse and access dhcp options
31 * and create new dhcp option areas
50 #include <netinet/dhcp.h>
374 dhcpol_parse_packet(dhcpol_t * options, const struct dhcp * pkt, int len)
427 * Types and functions to create new dhcp option areas.
534 * Add a dhcp message option to the option area.
634 struct dhcp * pkt = (struct dhcp *)buf;
/xnu-2422.115.4/bsd/kern/
H A Dnetboot.c87 #define DHCP_RESPONSE "dhcp-response"
282 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) {
288 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) {
296 const struct dhcp * reply;
298 reply = (const struct dhcp *)pkt;
495 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) {
500 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) {
508 const struct dhcp * reply;
510 reply = (const struct dhcp *)pkt;
646 error = dhcp(if
[all...]

Completed in 49 milliseconds