Lines Matching defs:bp
161 struct bootp *bp;
192 bp = (struct bootp *) pktbuf;
478 switch (bp->bp_op) {
523 struct bootp *bp = (struct bootp *) pktbuf;
534 secs = ntohs(bp->bp_secs);
539 hops = bp->bp_hops;
545 bp->bp_hops = hops;
554 if (bp->bp_giaddr.s_addr == 0) {
571 bp->bp_giaddr = sip->sin_addr;
584 bp->bp_giaddr = my_ip_addr;
615 struct bootp *bp = (struct bootp *) pktbuf;
623 inet_ntoa(bp->bp_yiaddr));
626 ifr = getif(s, &(bp->bp_yiaddr));
629 inet_ntoa(bp->bp_yiaddr));
641 bp->bp_giaddr = sip->sin_addr;
646 send_addr.sin_addr = bp->bp_yiaddr;
650 ha = bp->bp_chaddr;
651 len = bp->bp_hlen;
654 haf = (int) bp->bp_htype;
660 inet_ntoa(bp->bp_yiaddr), haddrtoa(ha, len));
661 setarp(s, &bp->bp_yiaddr, haf, ha, len);