Home | History | Annotate | Download | only in slirp

Lines Matching defs:bp

106 static void dhcp_decode(const struct bootp_t *bp, int *pmsg_type,
115 p = bp->bp_vend;
148 if (*pmsg_type == DHCPREQUEST && !*preq_addr && bp->bp_ciaddr.s_addr) {
149 *preq_addr = &bp->bp_ciaddr;
153 static void bootp_reply(const struct bootp_t *bp)
165 dhcp_decode(bp, &dhcp_msg_type, &preq_addr);
166 dprintf("bootp packet op=%d msgtype=%d", bp->bp_op, dhcp_msg_type);
179 memcpy(client_ethaddr, bp->bp_hwaddr, 6);
213 bc = find_addr(&daddr.sin_addr, bp->bp_hwaddr);
227 rbp->bp_xid = bp->bp_xid;
230 memcpy(rbp->bp_hwaddr, bp->bp_hwaddr, 6);
321 struct bootp_t *bp = mtod(m, struct bootp_t *);
323 if (bp->bp_op == BOOTP_REQUEST) {
324 bootp_reply(bp);