Lines Matching refs:ext

208 static void bootp_process_vendor_field(u8 *ext)  in bootp_process_vendor_field()  argument
210 int size = *(ext + 1); in bootp_process_vendor_field()
212 debug("[BOOTP] Processing extension %d... (%d bytes)\n", *ext, in bootp_process_vendor_field()
213 *(ext + 1)); in bootp_process_vendor_field()
217 switch (*ext) { in bootp_process_vendor_field()
221 net_copy_ip(&net_netmask, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
228 net_copy_ip(&net_gateway, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
237 (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
241 (struct in_addr *)(ext + 2 + 4)); in bootp_process_vendor_field()
258 memcpy(&net_hostname, ext + 2, size); in bootp_process_vendor_field()
265 ntohs(*(ushort *)(ext + 2)); in bootp_process_vendor_field()
268 ntohl(*(ulong *)(ext + 2)); in bootp_process_vendor_field()
280 memcpy(&net_root_path, ext + 2, size); in bootp_process_vendor_field()
296 memcpy(&net_nis_domain, ext + 2, size); in bootp_process_vendor_field()
302 net_copy_ip(&net_ntp_server, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
316 static void bootp_process_vendor(u8 *ext, int size) in bootp_process_vendor() argument
318 u8 *end = ext + size; in bootp_process_vendor()
322 while ((ext < end) && (*ext != 0xff)) { in bootp_process_vendor()
323 if (*ext == 0) { in bootp_process_vendor()
324 ext++; in bootp_process_vendor()
326 u8 *opt = ext; in bootp_process_vendor()
328 ext += ext[1] + 2; in bootp_process_vendor()
329 if (ext <= end) in bootp_process_vendor()