Lines Matching refs:ext

190 static void bootp_process_vendor_field(u8 *ext)  in bootp_process_vendor_field()  argument
192 int size = *(ext + 1); in bootp_process_vendor_field()
194 debug("[BOOTP] Processing extension %d... (%d bytes)\n", *ext, in bootp_process_vendor_field()
195 *(ext + 1)); in bootp_process_vendor_field()
199 switch (*ext) { in bootp_process_vendor_field()
203 net_copy_ip(&net_netmask, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
210 net_copy_ip(&net_gateway, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
219 (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
223 (struct in_addr *)(ext + 2 + 4)); in bootp_process_vendor_field()
240 memcpy(&net_hostname, ext + 2, size); in bootp_process_vendor_field()
247 ntohs(*(ushort *)(ext + 2)); in bootp_process_vendor_field()
250 ntohl(*(ulong *)(ext + 2)); in bootp_process_vendor_field()
262 memcpy(&net_root_path, ext + 2, size); in bootp_process_vendor_field()
278 memcpy(&net_nis_domain, ext + 2, size); in bootp_process_vendor_field()
284 net_copy_ip(&net_ntp_server, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
298 static void bootp_process_vendor(u8 *ext, int size) in bootp_process_vendor() argument
300 u8 *end = ext + size; in bootp_process_vendor()
304 while ((ext < end) && (*ext != 0xff)) { in bootp_process_vendor()
305 if (*ext == 0) { in bootp_process_vendor()
306 ext++; in bootp_process_vendor()
308 u8 *opt = ext; in bootp_process_vendor()
310 ext += ext[1] + 2; in bootp_process_vendor()
311 if (ext <= end) in bootp_process_vendor()