[471] in Zephyr_Bugs

home help back first fref pref prev next nref lref last post

sending zephyr packets which use the z_other_fields in the notice.

daemon@ATHENA.MIT.EDU (Scott Dawson)
Fri May 7 14:51:34 1993

To: zephyr-bugs@Athena.MIT.EDU
Cc: sdawson@Athena.MIT.EDU
Date: Fri, 07 May 93 14:51:14 -0400
From: Scott Dawson <sdawson@engin.umich.edu>


Hi-

I am running zephyr on a DEC5000 and using Kerberos for
authentication.  I am trying to write a zephyr application which will
use the z_other_fields in the notice structure for sending some
parameters.

My problem is that as soon as I set z_num_other_fields to > 0, when I
call ZSendNotice, it returns with the HM_DEAD error code.  (This is
even if I don't actually set any of the fields to anything).

Just toggling that back to 0 fixes things.

Any ideas what I might be doing wrong?  (A code excerpt is below)

-Scott

broken()
{
  ZNotice_t notice;

  bzero(&notice,sizeof(ZNotice_t));
  
  notice.z_kind = ACKED;
  notice.z_port = 0;
  notice.z_class = "MESSAGE";
  notice.z_class_inst = "PERSONAL";
  notice.z_opcode = "";
  notice.z_sender = 0;
  notice.z_recipient = ZGetSender();
  notice.z_message = "test\n";
  notice.z_message_len = strlen(notice.z_message)+1;
  notice.z_default_format = "";

  notice.z_num_other_fields = 1;

  if((retval = ZSendNotice(&notice,ZAUTH*//* auth *//*)) != ZERR_NONE){
    com_err(whoami,retval,"while sending challenge");
    return(-1);
  }
}

thanks for any info.  I couldn't seem to find any actual examples of
using z_other_fields in the programmer's manual.

home help back first fref pref prev next nref lref last post