Upgraded to 0.37.2 and prepared for FTSC code

This commit is contained in:
Michiel Broek
2003-02-23 21:00:12 +00:00
parent fcaddccfb4
commit 81aa0911a5
10 changed files with 73 additions and 17 deletions

View File

@@ -1,8 +1,8 @@
#define PRODCODE 0xfe /* product code for ifcico */
#ifndef EMSI_H
#define EMSI_H
/* $Id$ */
#define LCODE_PUA 0x0001
#define LCODE_PUP 0x0002
#define LCODE_NPU 0x0004

View File

@@ -487,13 +487,14 @@ void fillhello(unsigned short capabilities, char *password)
sscanf(VERSION,"%hd.%hd", &majver, &minver);
memset(&hello, 0, sizeof(hello));
hello.data[0] = 'o'; /* signal */
hello.data[2] = 1; /* hello-version */
hello.data[4] = PRODCODE; /* product */
hello.data[6] = majver&0xff; /* prod-ver-major */
hello.data[7] = majver>>8; /* prod-ver-major */
hello.data[8] = minver&0xff; /* prod-ver-minor */
hello.data[9] = minver>>8; /* prod-ver-minor */
hello.data[0] = 'o'; /* signal */
hello.data[2] = 1; /* hello-version */
hello.data[4] = (PRODCODE & 0x00ff); /* product code */
hello.data[5] = (PRODCODE & 0xff00) >> 8; /* product code */
hello.data[6] = (VERSION_MAJOR & 0x00ff); /* prod-ver-major */
hello.data[7] = (VERSION_MAJOR & 0xff00) >> 8; /* prod-ver-major */
hello.data[8] = (VERSION_MINOR & 0x00ff); /* prod-ver-minor */
hello.data[9] = (VERSION_MINOR & 0xff00) >> 8; /* prod-ver-minor */
strncpy((char*)hello.data+10, name?name:"Unavailable",59); /* name */
if (name) {
hello.data[10+strlen(name)] = '\0';