Lines Matching refs:s_addr
117 paddr->s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | (bc->number + START_ADDR));
118 bc->addr.s_addr = paddr->s_addr;
119 LogFlowFunc(("LEAVE: paddr:%RTnaipv4, bc:%d\n", paddr->s_addr, bc->number));
128 if (paddr->s_addr == bootp_clients[i].addr.s_addr)
199 paddr->s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | (i + START_ADDR));
200 LogFlowFunc(("LEAVE: paddr:%RTnaipv4 bc:%d\n", paddr->s_addr, bc->number));
224 rbp->bp_giaddr.s_addr = bp->bp_giaddr.s_addr;
276 rbp->bp_ciaddr.s_addr = bc->addr.s_addr; /* Client IP address */
278 saddr.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_ALIAS);
279 Log(("NAT: DHCP: s_addr:%RTnaipv4\n", saddr));
305 uint32_t addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_DNS);
312 FILL_BOOTP_EXT(q, RFC1533_DNS, 4, &de->de_addr.s_addr);
318 FILL_BOOTP_APP(q_dns_header, q, RFC1533_DNS, 4, &de->de_addr.s_addr);
348 //slirp_arp_cache_update_or_add(pData, rbp->bp_yiaddr.s_addr, bc->macaddr);
426 || bp->bp_ciaddr.s_addr != INADDR_ANY)
432 Assert((bp->bp_ciaddr.s_addr == INADDR_ANY));
470 Assert((server_ip == NULL && req_ip == NULL && bp->bp_ciaddr.s_addr != INADDR_ANY));
473 || bp->bp_ciaddr.s_addr == INADDR_ANY)
480 Assert((bc->addr.s_addr == bp->bp_ciaddr.s_addr));
485 if ((bp->bp_ciaddr.s_addr & RT_H2N_U32(pData->netmask)) != pData->special_addr.s_addr)
501 bc->addr.s_addr = bp->bp_ciaddr.s_addr;
522 || bp->bp_ciaddr.s_addr != INADDR_ANY)
528 if ((ui32 & RT_H2N_U32(pData->netmask)) != pData->special_addr.s_addr)
547 bc->addr.s_addr = ui32;
778 req_ip.s_addr = *(uint32_t *)(pu8RawDhcpObject + 2);
779 rc = bootp_cache_lookup_ether_by_ip(pData, req_ip.s_addr, NULL);
791 bc->addr.s_addr = req_ip.s_addr;
792 slirp_arp_who_has(pData, bc->addr.s_addr);
822 saddr.sin_addr.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_ALIAS);
836 daddr.sin_addr.s_addr = INADDR_BROADCAST;
838 daddr.sin_addr.s_addr = rbp->bp_yiaddr.s_addr; /*unicast requested by client*/
864 *pip = bootp_clients[i].addr.s_addr;
879 && ip == bootp_clients[i].addr.s_addr)