Lines Matching refs:ext
204 static void bootp_process_vendor_field(u8 *ext) in bootp_process_vendor_field() argument
206 int size = *(ext + 1); in bootp_process_vendor_field()
208 debug("[BOOTP] Processing extension %d... (%d bytes)\n", *ext, in bootp_process_vendor_field()
209 *(ext + 1)); in bootp_process_vendor_field()
213 switch (*ext) { in bootp_process_vendor_field()
217 net_copy_ip(&net_netmask, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
224 net_copy_ip(&net_gateway, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
233 (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
237 (struct in_addr *)(ext + 2 + 4)); in bootp_process_vendor_field()
254 memcpy(&net_hostname, ext + 2, size); in bootp_process_vendor_field()
261 ntohs(*(ushort *)(ext + 2)); in bootp_process_vendor_field()
264 ntohl(*(ulong *)(ext + 2)); in bootp_process_vendor_field()
276 memcpy(&net_root_path, ext + 2, size); in bootp_process_vendor_field()
292 memcpy(&net_nis_domain, ext + 2, size); in bootp_process_vendor_field()
298 net_copy_ip(&net_ntp_server, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
312 static void bootp_process_vendor(u8 *ext, int size) in bootp_process_vendor() argument
314 u8 *end = ext + size; in bootp_process_vendor()
318 while ((ext < end) && (*ext != 0xff)) { in bootp_process_vendor()
319 if (*ext == 0) { in bootp_process_vendor()
320 ext++; in bootp_process_vendor()
322 u8 *opt = ext; in bootp_process_vendor()
324 ext += ext[1] + 2; in bootp_process_vendor()
325 if (ext <= end) in bootp_process_vendor()