Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:data

417      { "ARAP Security Data",              NULL, 0, 0, print_attr_string },
442 /* value pointed by 'data' */
448 print_attr_string(register u_char *data, u_int length, u_short attr_code )
452 TCHECK2(data[0],length);
462 if (*data && (*data <=0x1F) )
463 printf("Tag %u, ",*data);
464 data++;
466 printf("Salt %u ",EXTRACT_16BITS(data) );
467 data+=2;
476 if (*data <= 0x1F)
483 printf("Tag %u",*data);
484 data++;
490 for (i=0; *data && i < length ; i++, data++)
491 printf("%c",(*data < 32 || *data > 128) ? '.' : *data );
504 print_vendor_attr(register u_char *data, u_int length, u_short attr_code _U_)
513 TCHECK2(*data, 4);
514 vendor_id = EXTRACT_32BITS(data);
515 data+=4;
523 TCHECK2(*data, 2);
525 vendor_type = *(data);
526 vendor_length = *(data+1);
542 data+=2;
545 TCHECK2(*data, vendor_length);
550 for (idx = 0; idx < vendor_length ; idx++, data++)
551 printf("%c",(*data < 32 || *data > 128) ? '.' : *data );
564 /* value pointed by 'data' */
570 print_attr_num(register u_char *data, u_int length, u_short attr_code )
581 TCHECK2(data[0],4);
591 if (!*data)
594 printf("Tag[%d]", *data);
595 data++;
596 data_value = EXTRACT_24BITS(data);
600 data_value = EXTRACT_32BITS(data);
614 if (EXTRACT_32BITS( data) == 0xFFFFFFFE )
617 printf("%d",EXTRACT_32BITS( data) );
625 timeout = EXTRACT_32BITS( data);
641 if (EXTRACT_32BITS(data) )
642 printf("%d",EXTRACT_32BITS(data) );
648 if (EXTRACT_32BITS(data) )
649 printf("%d",EXTRACT_32BITS(data) );
655 tag = *data;
656 data++;
658 printf("Tag (Unused) %d",EXTRACT_24BITS(data) );
660 printf("Tag (%d) %d", tag, EXTRACT_24BITS(data) );
664 printf("%d",EXTRACT_32BITS( data) );
681 /* 'data' and 'length' size. */
686 print_attr_address(register u_char *data, u_int length, u_short attr_code )
694 TCHECK2(data[0],4);
700 if (EXTRACT_32BITS(data) == 0xFFFFFFFF )
703 if (EXTRACT_32BITS(data) == 0xFFFFFFFE )
706 printf("%s",ipaddr_string(data));
710 printf("%s",ipaddr_string(data) );
724 /* pointed by 'data' and 'length' */
729 static void print_attr_time(register u_char *data, u_int length, u_short attr_code _U_)
740 TCHECK2(data[0],4);
742 attr_time = EXTRACT_32BITS(data);
756 /* data format pointed by 'data' */
761 static void print_attr_strange(register u_char *data, u_int length, u_short attr_code)
774 TCHECK2(data[0],8);
776 PRINT_HEX(len_data, data);
778 TCHECK2(data[0],8);
780 PRINT_HEX(len_data, data);
790 TCHECK2(data[0],1);
791 if (*data)
795 data++;
796 TCHECK2(data[0],1);
797 printf(", Min password length: %d",*data);
798 data++;
800 TCHECK2(data[0],4);
802 PRINT_HEX(len_data, data);
804 TCHECK2(data[0],4);
806 PRINT_HEX(len_data, data);
808 TCHECK2(data[0],4);
810 PRINT_HEX(len_data, data);
819 TCHECK2(data[0],8);
821 PRINT_HEX(len_data, data);