Lines Matching defs:size

95 		size_t size = sizeof(bootp_ids) - sizeof(id);
97 memmove(bootp_ids, &bootp_ids[1], size);
204 int size = *(ext + 1);
233 if ((net_dns_server2.s_addr == 0) && (size > 4))
250 size = truncate_sz("Host Name",
251 sizeof(net_hostname), size);
252 memcpy(&net_hostname, ext + 2, size);
253 net_hostname[size] = 0;
256 case 13: /* Boot file size */
257 if (size == 2)
260 else if (size == 4)
272 size = truncate_sz("Root Path",
273 sizeof(net_root_path), size);
274 memcpy(&net_root_path, ext + 2, size);
275 net_root_path[size] = 0;
288 size = truncate_sz("NIS Domain Name",
289 sizeof(net_nis_domain), size);
290 memcpy(&net_nis_domain, ext + 2, size);
291 net_nis_domain[size] = 0;
310 static void bootp_process_vendor(u8 *ext, int size)
312 u8 *end = ext + size;
314 debug("[BOOTP] Checking extension (%d bytes)...\n", size);
626 * Warning: no field size check - change CONFIG_BOOTP_* at your own risk!
675 *e++ = 13; /* Boot file size */
767 * Next line results in incorrect packet size being transmitted,
819 * variable size of the options field
839 int oplen, size;
871 size = truncate_sz("Host Name",
873 memcpy(&net_hostname, popt + 2, size);
874 net_hostname[size] = 0;
879 size = truncate_sz("Root Path",
881 memcpy(&net_root_path, popt + 2, size);
882 net_root_path[size] = 0;
888 size = truncate_sz("NIS Domain Name",
890 memcpy(&net_nis_domain, popt + 2, size);
891 net_nis_domain[size] = 0;
918 size = truncate_sz("Bootfile",
921 memcpy(&net_boot_file_name, popt + 2, size);
922 net_boot_file_name[size] = 0;
1020 iphdr = pkt; /* We'll need this later to set proper pkt size */