void descriptorMHP_AIT_delegated_application (u_char *b)
{
  int  len;


  // descriptor_tag	= b[0];
  len		        = b[1];
  b += 2;

  // indent(+1);
  while (len > 0) {
	out_NL (4);
  	outBit64_Sx_NL (4,"application_identifier: ",	b,  0,  48);
	b += 6;
	len -= 6;
  }
  // indent(-1);
}
Exemple #2
0
static u_long  body_FileMessage (int v, u_char *b)
{
  u_char   *b_org = b;
  u_long   nx,n2,n5;


   n2 = outBit_Sx_NL   (v,"objectInfo_length: ",	b,   0,  16);
   b += 2;
   if (n2) {	// has to be >= 8
  	outBit64_Sx_NL (v,"DSM::File::ContentSize: ",	b,   0,  64);
	b  += 8;
	n2 -= 8;
	if (n2 > 0) {
	   	out_nl (v, "Descriptor_loop:");
   		indent (+1);
   		while (n2 > 0) {
			int    x;

			x   = descriptor (b,  DSMCC_CAROUSEL);
			b  += x;
			n2 -= x;
   			out_NL (v);
   		}
	} // if n2 > 0
	   indent (-1);
   } // if n2
   out_NL (v);


   nx = do_ServiceContentList (v, b);
   b += nx;


        outBit_Sx_NL   (v,"messageBody_length: ",	b,   0,   32);


   n5 = outBit_Sx_NL   (v,"content_length: ",		b,  32,   32);
 	print_databytes(v,"content__byte:", 		b+8, n5);
   b += 8 + n5;


   return (u_long)  (b - b_org);
}
Exemple #3
0
static u_long  body_DirectoryMessage (int v, u_char *b)
{
  u_char   *b_org = b;
  int      i;
  u_int    nx,n2,n5,n7,n9;


   n2 = outBit_Sx_NL   (v,"objectInfo_length: ",	b,   0,  16);
 	print_databytes(v,"objectInfo_data:", 		b+2, n2);
   b += 2 + n2;
   out_NL (v);


   nx = do_ServiceContentList (v, b);
   b += nx;


        outBit_Sx_NL   (v,"messageBody_length: ",	b,   0,   32);
   n5 = outBit_Sx_NL   (v,"bindings_count: ",		b,  32,   16);
   b += 6;

   indent (+1);
   for (i=0; i < n5; i++) {
	int    n6;
	u_long kinddata;

	n6 = BIOP_Name (v, b, &kinddata);
	b += n6;


	outBit_S2x_NL  (v,"BindingType: ",		b,   0,    8,
			(char *(*)(u_long)) dsmccStrBIOP_BindingType);
	b += 1;


	n7 = IOP_IOR (v, b);
	b += n7;


	n9 = outBit_Sx_NL   (v,"objectInfo_length: ",	b,   0,  16);
	b += 2;

	if (n9) {
		if (kinddata == 0x66696c00) {		// "fil"
	  		outBit64_Sx_NL (v,"DSM::File::ContentSize: ",	b,  16,  64);
			b  += 8;
			n9 -= 8;
		}


		if (n9 > 0) {
			print_databytes  (v,"descriptor_bytes (PLEASE REPORT!!!):", 	b, n9);
			b += n9;

// 			$$$ TODO: to be checked...!!! (instead of print_databytes)
//
// 			out_nl (v, "Descriptor_loop:");
// 			indent (+1);
//			while (n9 > 0) {
//				int    x;
//
//				x   = descriptor (b,  DSMCC_CAROUSEL);
//				b  += x;
//				n9 -= x;
//				out_NL (v);
//			}
//	 		indent (-1);

 		}  // if n9 > 0

	} // if n9

   } // loop n5
   indent (-1);


   return (u_long)  (b - b_org);
}