Home | History | Annotate | Download | only in dhcpcd

Lines Matching defs:from

314 	struct in_addr from, to;
342 * This could happen if our IP was pulled out from underneath us.
343 * Also, we should not unicast from a BOOTP lease. */
353 from.s_addr = dhcp->ciaddr;
354 if (from.s_addr)
365 len = make_udp_packet(&udp, (uint8_t *)dhcp, len, from, to);
371 * As such we remove it from consideration without actually
444 const struct in_addr *from)
459 tfrom = "from";
467 addr = *from;
504 handle_dhcp(struct interface *iface, struct dhcp_message **dhcpp, const struct in_addr *from)
526 log_dhcp(LOG_WARNING, "reject NAK", iface, dhcp, from);
530 log_dhcp(LOG_WARNING, "NAK:", iface, dhcp, from);
553 log_dhcp(LOG_WARNING, "reject DHCP", iface, dhcp, from);
564 iface, dhcp, from);
580 log_dhcp(LOG_INFO, "offered", iface, dhcp, from);
610 iface, dhcp, from);
617 iface, dhcp, from);
622 log_dhcp(LOG_INFO, "acknowledged", iface, dhcp, from);
668 struct in_addr from;
680 if (valid_udp_packet(packet, bytes, &from, partialcsum) == -1) {
681 syslog(LOG_ERR, "%s: invalid UDP packet from %s",
682 iface->name, inet_ntoa(from));
685 i = whitelisted_ip(iface->state->options, from.s_addr);
688 "%s: non whitelisted DHCP packet from %s",
689 iface->name, inet_ntoa(from));
692 blacklisted_ip(iface->state->options, from.s_addr) == 1)
695 "%s: blacklisted DHCP packet from %s",
696 iface->name, inet_ntoa(from));
700 iface->dst.s_addr != from.s_addr)
704 iface->name, inet_ntoa(from));
709 "%s: packet greater than DHCP size from %s",
710 iface->name, inet_ntoa(from));
717 syslog(LOG_DEBUG, "%s: bogus cookie from %s",
718 iface->name, inet_ntoa(from));
724 "%s: wrong xid 0x%x (expecting 0x%x) from %s",
726 inet_ntoa(from));
738 handle_dhcp(iface, &dhcp, &from);