summaryrefslogtreecommitdiff
path: root/kiss.c
diff options
context:
space:
mode:
Diffstat (limited to 'kiss.c')
-rw-r--r--kiss.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kiss.c b/kiss.c
index b720485..dc8a8a6 100644
--- a/kiss.c
+++ b/kiss.c
@@ -299,6 +299,9 @@ int ASYINIT(int comport, int speed, struct PORTCONTROL * PortVector, char Channe
npKISSINFO->idComDev = fd;
+ npKISSINFO->Portvector = PortVector;
+
+
if (PortVector->KISSFLAGS & PITNC)
{
@@ -354,6 +357,9 @@ int ASYINIT(int comport, int speed, struct PORTCONTROL * PortVector, char Channe
npKISSINFO->destaddr.sin_addr.s_addr = PortVector->PORTIPADDR.s_addr;
npKISSINFO->destaddr.sin_port = htons(PortVector->IOBASE);
+ npKISSINFO->Portvector = PortVector;
+
+
if (PortVector->KISSTCP)
{
if (PortVector->KISSSLAVE)
@@ -435,11 +441,11 @@ int ASYINIT(int comport, int speed, struct PORTCONTROL * PortVector, char Channe
npKISSINFO->MSGREADY=FALSE;
npKISSINFO->RXBPTR=&npKISSINFO->RXBUFFER[0];
npKISSINFO->RXMPTR=&npKISSINFO->RXMSG[0];
+ npKISSINFO->Portvector = PortVector;
OpenConnection(PortVector);
}
- npKISSINFO->Portvector = PortVector;
WritetoConsoleLocal("\n");