Lines Matching refs:dhcpreply
625 struct dhcp_t *dhcpreply;
631 dhcpreply = (struct dhcp_t *)
640 if (dhcpreply->bp_op != BOOTP_REPLY)
642 if (dhcpreply->bp_xid != xid)
644 if (memcmp((char *)&dhcpreply->bp_siaddr, (char *)&zeroIP, sizeof(in_addr)) == 0)
646 if ((memcmp(broadcast, dhcpreply->bp_hwaddr, ETH_ALEN) != 0) &&
647 (memcmp(arptable[ARP_CLIENT].node, dhcpreply->bp_hwaddr, ETH_ALEN) != 0)) {
654 memcpy((char *)dhcpack_buf, (char *)dhcpreply, dhcpack_length);
656 arptable[ARP_CLIENT].ipaddr.s_addr = dhcpreply->bp_yiaddr.s_addr;
657 dhcp_addr.s_addr = dhcpreply->bp_yiaddr.s_addr;
659 arptable[ARP_SERVER].ipaddr.s_addr = dhcpreply->bp_siaddr.s_addr;
661 arptable[ARP_GATEWAY].ipaddr.s_addr = dhcpreply->bp_giaddr.s_addr;
663 bootfile = dhcpreply->bp_file;
664 memcpy((char *)rfc1533_venddata, (char *)(dhcpreply->bp_vend), len);
1328 dhcp_copy(struct dhcp_t *dhcpreply)
1335 memcpy((char *)dhcpack_buf, (char *)dhcpreply, dhcpack_length);
1337 memcpy(arptable[ARP_CLIENT].node, dhcpreply->bp_hwaddr, ETH_ALEN);
1338 arptable[ARP_CLIENT].ipaddr.s_addr = dhcpreply->bp_yiaddr.s_addr;
1339 dhcp_addr.s_addr = dhcpreply->bp_yiaddr.s_addr;
1341 arptable[ARP_SERVER].ipaddr.s_addr = dhcpreply->bp_siaddr.s_addr;
1343 arptable[ARP_GATEWAY].ipaddr.s_addr = dhcpreply->bp_giaddr.s_addr;
1345 bootfile = dhcpreply->bp_file;
1346 memcpy((char *)rfc1533_venddata, (char *)(dhcpreply->bp_vend), len);
1352 struct dhcp_t *dhcpreply;
1354 if (!undi_bios_pxe((void **)&dhcpreply))
1357 dhcp_copy(dhcpreply);