Home | History | Annotate | Download | only in slirp-android

Lines Matching defs:bp

111 static void dhcp_decode(const struct bootp_t *bp, int *pmsg_type,
120 p = bp->bp_vend;
153 if (*pmsg_type == DHCPREQUEST && !*preq_addr && bp->bp_ciaddr) {
154 *preq_addr = (const ipaddr_t*)&bp->bp_ciaddr;
158 static void bootp_reply(const struct bootp_t *bp)
170 dhcp_decode(bp, &dhcp_msg_type, &preq_addr);
171 dprintf("bootp packet op=%d msgtype=%d", bp->bp_op, dhcp_msg_type);
184 memcpy(client_ethaddr, bp->bp_hwaddr, 6);
218 bc = find_addr(&daddr, bp->bp_hwaddr);
230 rbp->bp_xid = bp->bp_xid;
233 memcpy(rbp->bp_hwaddr, bp->bp_hwaddr, 6);
325 struct bootp_t *bp = mtod(m, struct bootp_t *);
327 if (bp->bp_op == BOOTP_REQUEST) {
328 bootp_reply(bp);