[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

3339.0. "My DNS translation doesn't work anymore." by NSDC::CAILLE () Fri Jul 10 1992 16:38

   I wrote, few months ago, a routine that returns the entity primary identifier
   given an alternate one. The DECmcc Version, on which this routine works
   fine is the following: -DECmcc V1.2-4 on VMS platform

   Now, I'm using the same routine with DECmcc V1.2 SSB version on ULTRIX/RISC. 
   My problem is that I cannot retrieve the primary identifier of both NODE4 
   and SNMP class instance when given an ADDRESS alternate identifier data type.
   The status returned by 'mcc_dns_translate_ident' is the following
   'MCC_S_NOENTITY' while the dns_status is MCC_S_NORMAL (of course, I've
   checked that the entity has been registered before).

   I guess my descriptor definition is wrong somewhere when using ADDRESS
   data type, but I've tried every way without success.

   Can somebody help me, thanks in advance,
   Jean-Mary.

   attached is an extract of my descriptor definition and the mcc calls.

   --------------------------------------------------------------------------

   MCC_T_Unsigned32	class = MCC_K_CLASS_DECNET_NODE; 
   MCC_T_UNSLONG	type = MCC_K_AES_NOT_WILD; 
   MCC_T_UNSLONG	node4_address = 63728;

    /* load up descriptor */
    instance.mcc_w_maxstrlen =          5;
    instance.mcc_b_dtype =              DSC_K_DTYPE_T;
    instance.mcc_b_class =              DSC_K_CLASS_S;
    instance.mcc_w_curlen =             5;
    instance.mcc_b_flags =              0;
    instance.mcc_b_ver =                MCC_K_VER_DESCRIPTOR;
    instance.mcc_l_id =                 MCC_K_DN4_NI_NODE_ADDR;
    instance.mcc_l_dt =                 MCC_K_DT_PHASE4ADDRESS;
    instance.mcc_a_pointer =            &node4_address;
    instance.mcc_a_link =               MCC_K_NULL_PTR;

    /*create aes */
    status = mcc_aes_create (&p_alt_entity, &class, &instance, &type);
 
   /*get primary id */
    status = mcc_dns_translate_ident(p_alt_entity, &p_ident_dsc, &dns_status);
 
T.RTitleUserPersonal
Name
DateLines
3339.1TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Fri Jul 10 1992 17:162
    A phase4address is 2 bytes long, not 5.  Use a sizeof(type) construct.
    
3339.2DNS translation is okNSDC::CAILLETue Jul 14 1992 11:243
Thanks, every thing is all right now.

JmC.