Home | History | Annotate | Download | only in libpcap

Lines Matching full:opthdr

359 	struct option_header *opthdr;
361 opthdr = get_from_block_data(cursor, sizeof(*opthdr), errbuf);
362 if (opthdr == NULL) {
373 opthdr->option_code = SWAPSHORT(opthdr->option_code);
374 opthdr->option_length = SWAPSHORT(opthdr->option_length);
377 return (opthdr);
382 struct option_header *opthdr, char *errbuf)
388 padded_option_len = opthdr->option_length;
406 struct option_header *opthdr;
418 opthdr = get_opthdr_from_block_data(p, cursor, errbuf);
419 if (opthdr == NULL) {
429 optvalue = get_optvalue_from_block_data(cursor, opthdr,
438 switch (opthdr->option_code) {
441 if (opthdr->option_length != 0) {
444 opthdr->option_length);
450 if (opthdr->option_length != 1) {
453 opthdr->option_length);
494 if (opthdr->option_length != 8) {
497 opthdr->option_length);