Lines Matching refs:bp_vend
92 bootp_fill_request(unsigned char *bp_vend) in bootp_fill_request() argument
99 bp_vend[0] = TAG_CLASSID; in bootp_fill_request()
100 bp_vend[1] = 9; in bootp_fill_request()
101 bcopy("PXEClient", &bp_vend[2], 9); in bootp_fill_request()
102 bp_vend[11] = TAG_USER_CLASS; in bootp_fill_request()
104 bp_vend[12] = 8; in bootp_fill_request()
106 bp_vend[13] = 7; in bootp_fill_request()
107 bcopy("illumos", &bp_vend[14], 7); in bootp_fill_request()
108 bp_vend[21] = TAG_PARAM_REQ; in bootp_fill_request()
109 bp_vend[22] = 7; in bootp_fill_request()
110 bp_vend[23] = TAG_SUBNET_MASK; in bootp_fill_request()
111 bp_vend[24] = TAG_GATEWAY; in bootp_fill_request()
112 bp_vend[25] = TAG_HOSTNAME; in bootp_fill_request()
113 bp_vend[26] = TAG_SWAPSERVER; in bootp_fill_request()
114 bp_vend[27] = TAG_ROOTPATH; in bootp_fill_request()
115 bp_vend[28] = TAG_INTF_MTU; in bootp_fill_request()
116 bp_vend[29] = TAG_SERVERID; in bootp_fill_request()
117 bp_vend[30] = TAG_END; in bootp_fill_request()
158 bcopy(vm_rfc1048, bp->bp_vend, sizeof (vm_rfc1048)); in bootp()
160 bp->bp_vend[4] = TAG_DHCP_MSGTYPE; in bootp()
161 bp->bp_vend[5] = 1; in bootp()
162 bp->bp_vend[6] = DHCPDISCOVER; in bootp()
163 bootp_fill_request(&bp->bp_vend[7]); in bootp()
165 bp->bp_vend[4] = TAG_END; in bootp()
187 bp->bp_vend[6] = DHCPREQUEST; in bootp()
188 bp->bp_vend[7] = TAG_REQ_ADDR; in bootp()
189 bp->bp_vend[8] = 4; in bootp()
190 bcopy(&rbootp->bp_yiaddr, &bp->bp_vend[9], 4); in bootp()
191 bp->bp_vend[13] = TAG_SERVERID; in bootp()
192 bp->bp_vend[14] = 4; in bootp()
193 bcopy(&dhcp_serverip.s_addr, &bp->bp_vend[15], 4); in bootp()
194 bp->bp_vend[19] = TAG_LEASETIME; in bootp()
195 bp->bp_vend[20] = 4; in bootp()
197 bcopy(&leasetime, &bp->bp_vend[21], 4); in bootp()
198 bootp_fill_request(&bp->bp_vend[25]); in bootp()
318 if (bcmp(vm_rfc1048, bp->bp_vend, sizeof (vm_rfc1048)) == 0) { in bootprecv()
319 int vsize = n - offsetof(struct bootp, bp_vend); in bootprecv()
320 if (vend_rfc1048(bp->bp_vend, vsize) != 0) in bootprecv()
336 else if (bcmp(vm_cmu, bp->bp_vend, sizeof (vm_cmu)) == 0) in bootprecv()
337 vend_cmu(bp->bp_vend); in bootprecv()
340 printf("bootprecv: unknown vendor 0x%lx\n", (long)bp->bp_vend); in bootprecv()