Lines Matching refs:opthdr
416 struct option_header *opthdr; in get_opthdr_from_block_data() local
418 opthdr = get_from_block_data(cursor, sizeof(*opthdr), errbuf); in get_opthdr_from_block_data()
419 if (opthdr == NULL) { in get_opthdr_from_block_data()
430 opthdr->option_code = SWAPSHORT(opthdr->option_code); in get_opthdr_from_block_data()
431 opthdr->option_length = SWAPSHORT(opthdr->option_length); in get_opthdr_from_block_data()
434 return (opthdr); in get_opthdr_from_block_data()
439 struct option_header *opthdr, char *errbuf) in get_optvalue_from_block_data() argument
445 padded_option_len = opthdr->option_length; in get_optvalue_from_block_data()
463 struct option_header *opthdr; in process_idb_options() local
475 opthdr = get_opthdr_from_block_data(p, cursor, errbuf); in process_idb_options()
476 if (opthdr == NULL) { in process_idb_options()
486 optvalue = get_optvalue_from_block_data(cursor, opthdr, in process_idb_options()
495 switch (opthdr->option_code) { in process_idb_options()
498 if (opthdr->option_length != 0) { in process_idb_options()
501 opthdr->option_length); in process_idb_options()
507 if (opthdr->option_length != 1) { in process_idb_options()
510 opthdr->option_length); in process_idb_options()
564 if (opthdr->option_length != 8) { in process_idb_options()
567 opthdr->option_length); in process_idb_options()