* $Header$
*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*
- * $Log$
- * Revision 1.2 1987-08-02 21:49:15 wesommer
- * Clean up error handling, memory handling.
- *
- * Revision 1.1 87/06/16 17:48:21 wesommer
- * Initial revision
- *
- * Revision 1.4 87/06/04 01:32:18 wesommer
- * Renamed gdb calls.
- *
- * Revision 1.3 87/06/01 03:33:54 wesommer
- * Added destroy_reply.
- *
- * Revision 1.2 87/05/31 22:03:37 wesommer
- * Fixed numerous bugs; still shaky.
- *
*/
#ifndef lint
static char *rcsid_sms_param_c = "$Header$";
#endif lint
+#include <mit-copyright.h>
#include <sys/types.h>
#include <netinet/in.h>
#include "sms_private.h"
*/
((long *)buf)[0] = htonl(sms_size);
- ((long *)buf)[1] = htonl((u_int)SMS_VERSION_1);
+ ((long *)buf)[1] = htonl(arg->sms_version_no);
((long *)buf)[2] = htonl(arg->sms_procno);
((long *)buf)[3] = htonl(arg->sms_argc);
ip = (int *) cp;
/* we already got the overall length.. */
for(i=1; i <4; i++) ip[i] = ntohl(ip[i]);
- if (ip[1] != SMS_VERSION_1)
+ arg->sms_version_no = ip[1];
+ if (arg->sms_version_no != SMS_VERSION_1 &&
+ arg->sms_version_no != SMS_VERSION_2)
arg->sms_status = SMS_VERSION_MISMATCH;
else arg->sms_status = ip[2];
arg->sms_argc = ip[3];