Lines Matching refs:bp_vend
91 bootp_fill_request(unsigned char *bp_vend) in bootp_fill_request() argument
98 bp_vend[0] = TAG_CLASSID; in bootp_fill_request()
99 bp_vend[1] = 9; in bootp_fill_request()
100 bcopy("PXEClient", &bp_vend[2], 9); in bootp_fill_request()
101 bp_vend[11] = TAG_USER_CLASS; in bootp_fill_request()
103 bp_vend[12] = 8; in bootp_fill_request()
105 bp_vend[13] = 7; in bootp_fill_request()
106 bcopy("FreeBSD", &bp_vend[14], 7); in bootp_fill_request()
107 bp_vend[21] = TAG_PARAM_REQ; in bootp_fill_request()
108 bp_vend[22] = 7; in bootp_fill_request()
109 bp_vend[23] = TAG_ROOTPATH; in bootp_fill_request()
110 bp_vend[24] = TAG_HOSTNAME; in bootp_fill_request()
111 bp_vend[25] = TAG_SWAPSERVER; in bootp_fill_request()
112 bp_vend[26] = TAG_GATEWAY; in bootp_fill_request()
113 bp_vend[27] = TAG_SUBNET_MASK; in bootp_fill_request()
114 bp_vend[28] = TAG_INTF_MTU; in bootp_fill_request()
115 bp_vend[29] = TAG_SERVERID; in bootp_fill_request()
116 bp_vend[30] = TAG_END; in bootp_fill_request()
151 bcopy(vm_rfc1048, bp->bp_vend, sizeof(vm_rfc1048)); in bootp()
153 bp->bp_vend[4] = TAG_DHCP_MSGTYPE; in bootp()
154 bp->bp_vend[5] = 1; in bootp()
155 bp->bp_vend[6] = DHCPDISCOVER; in bootp()
156 bootp_fill_request(&bp->bp_vend[7]); in bootp()
159 bp->bp_vend[4] = TAG_END; in bootp()
182 bp->bp_vend[6] = DHCPREQUEST; in bootp()
183 bp->bp_vend[7] = TAG_REQ_ADDR; in bootp()
184 bp->bp_vend[8] = 4; in bootp()
185 bcopy(&rbootp->bp_yiaddr, &bp->bp_vend[9], 4); in bootp()
186 bp->bp_vend[13] = TAG_SERVERID; in bootp()
187 bp->bp_vend[14] = 4; in bootp()
188 bcopy(&dhcp_serverip.s_addr, &bp->bp_vend[15], 4); in bootp()
189 bp->bp_vend[19] = TAG_LEASETIME; in bootp()
190 bp->bp_vend[20] = 4; in bootp()
192 bcopy(&leasetime, &bp->bp_vend[21], 4); in bootp()
193 bootp_fill_request(&bp->bp_vend[25]); in bootp()
284 if (bcmp(vm_rfc1048, bp->bp_vend, sizeof(vm_rfc1048)) == 0) { in bootprecv()
285 int vsize = n - offsetof(struct bootp, bp_vend); in bootprecv()
286 if (vend_rfc1048(bp->bp_vend, vsize) != 0) in bootprecv()
302 else if (bcmp(vm_cmu, bp->bp_vend, sizeof(vm_cmu)) == 0) in bootprecv()
303 vend_cmu(bp->bp_vend); in bootprecv()
306 printf("bootprecv: unknown vendor 0x%lx\n", (long)bp->bp_vend); in bootprecv()