• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet/

Lines Matching defs:dhcp

69 #include <netinet/dhcp.h>
146 static __inline__ struct dhcp *
149 return ((struct dhcp *)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");
367 dprintf(("dhcp: timeout\n"));
379 * Return an integer point rating value for the given dhcp packet.
420 struct dhcp * reply;
435 if (n < (int)sizeof(struct dhcp)) {
436 dprintf(("dhcp: packet is too short %d < %d\n",
437 n, (int)sizeof(struct dhcp)));
469 printf("dhcp: received ACK: server " IP_FORMAT
525 make_dhcp_request(&request->dhcp, DHCP_PAYLOAD_MIN,
548 printf("dhcp: sending REQUEST: server " IP_FORMAT
553 request->dhcp.dp_secs
556 request->dhcp.dp_xid = htonl(context->xid);
564 printf("dhcp: send_packet failed with %d\n", error);
569 dprintf(("dhcp: waiting %d ticks\n", wait_ticks));
576 printf("dhcp: server " IP_FORMAT " send us a NAK\n",
582 dprintf(("dhcp: failed to receive packets: %d\n", error));
610 struct dhcp * reply;
624 if (n < (int)sizeof(struct dhcp)) {
625 dprintf(("dhcp: packet is too short %d < %d\n",
626 n, (int)sizeof(struct dhcp)));
650 printf("dhcp: received OFFER: server " IP_FORMAT
692 dprintf(("dhcp: gathering time has expired\n"));
733 make_dhcp_request(&request->dhcp, DHCP_PAYLOAD_MIN,
753 printf("dhcp: sending DISCOVER\n");
754 request->dhcp.dp_secs
757 request->dhcp.dp_xid = htonl(context->xid);
765 printf("dhcp: send_packet failed with %d\n", error);
769 dprintf(("dhcp: waiting %d ticks\n", wait_ticks));
780 dprintf(("dhcp: dhcp_select failed %d\n", error));
784 printf("dhcp: trying again in 10 seconds\n");
790 dprintf(("dhcp: failed to receive packets: %d\n", error));
822 printf("dhcp: SIOCAUTOADDR failed: %d\n", error);
844 printf("dhcp: can't get link address\n");
849 printf("dhcp: h/w addr ");
852 printf("dhcp: hardware type %d not supported\n",
860 printf("dhcp: failed to allocate context\n");
869 printf("dhcp: socreate failed %d\n", error);
878 printf("dhcp: assigning loopback address failed %d\n", error);
889 printf("dhcp: SIOCAUTOADDR failed: %d\n", error);
892 dprintf(("dhcp: SIOCAUTOADDR done\n"));
897 printf("dhcp: SIOCPROTOATTACH failed: %d\n", error);
900 dprintf(("dhcp: SIOCPROTOATTACH done\n"));
909 printf("dhcp: sobind failed, %d\n", error);
935 * Routine: dhcp
941 dhcp(struct ifnet * ifp, struct in_addr * iaddr_p, int max_try,