Lines Matching refs:rbp
210 struct bootp_t *rbp;
219 rbp = mtod(m, struct bootp_t *);
220 memset(rbp, 0, sizeof(struct bootp_t));
221 rbp->bp_op = BOOTP_REPLY;
222 rbp->bp_xid = bp->bp_xid; /* see table 3 of rfc2131*/
223 rbp->bp_flags = bp->bp_flags; /* figure 2 of rfc2131 */
224 rbp->bp_giaddr.s_addr = bp->bp_giaddr.s_addr;
229 rbp->bp_htype = 1;
230 rbp->bp_hlen = 6;
231 memcpy(rbp->bp_hwaddr, bp->bp_hwaddr, 6);
233 memcpy(rbp->bp_vend, rfc1533_cookie, 4); /* cookie */
234 q = rbp->bp_vend;
245 struct bootp_t *rbp = NULL;
257 rbp = mtod(m, struct bootp_t *);
258 q = &rbp->bp_vend[0];
266 RTStrPrintf((char*)rbp->bp_file, sizeof(rbp->bp_file), "%s", bootp_filename);
268 Log(("NAT: DHCP: bp_file:%s\n", &rbp->bp_file));
270 rbp->bp_yiaddr = bc->addr; /* Client IP address */
271 Log(("NAT: DHCP: bp_yiaddr:%RTnaipv4\n", rbp->bp_yiaddr));
272 rbp->bp_siaddr = pData->tftp_server; /* Next Server IP address, i.e. TFTP */
273 Log(("NAT: DHCP: bp_siaddr:%RTnaipv4\n", rbp->bp_siaddr));
276 rbp->bp_ciaddr.s_addr = bc->addr.s_addr; /* Client IP address */
348 //slirp_arp_cache_update_or_add(pData, rbp->bp_yiaddr.s_addr, bc->macaddr);
349 return q - rbp->bp_vend; /*return offset */
812 struct bootp_t *rbp = NULL;
815 rbp = mtod(m, struct bootp_t *);
817 Assert((rbp));
818 q = rbp->bp_vend;
838 daddr.sin_addr.s_addr = rbp->bp_yiaddr.s_addr; /*unicast requested by client*/