Subject: TN5250E negotiation problem

From: Peter Henricsson <[email-masked]>
Date: Fri, 10 Jul 1998 12:29:22 +0200

When I try to connect the client to the AS/400 the negotiation will be like
the following example.

Why does the AS400 send a TCP FIN after the last IAC DO BINARY and why does
it send IAC DO BINARY two times?
Were do the negotiation go wrong?

We have an AS/400 running V4R2. Is there any additional PTF's required?

I would be grateful if someone could help me with this problem.

AS400                    Telnet Client
-------------                 -------------
IAC DO NEW-ENVIRON      ->
FF FD 27

                        <- IAC WILL NEW-ENVIRON
                           FF FB 27

IAC DO TERMTYPE         ->
FF FD 18

                        <- IAC WILL TERMTYPE
                           FF FB 18

IAC SB NEW-ENVIRON SEND
USERVAR "IBMRSEEDxxxxxxxx"
VAR USERVAR IAC SE ->
FF FA 27 01 03 49 42 4D
52 53 45 45 44 7D 57 7A
BF D6 E7 80 04 00 03 FF
F0

                            IAC SB NEW-ENVIRON IS
                            USERVAR "DEVNAME" VALUE "PRINTER"
                            USERVAR "IBMMSGQNAME" VALUE "QSYSOPR"
                            USERVAR "IBMMSGQLIB" VALUE "*LIBL"
                            USERVAR "IBMTRANSFORM" VALUE "0"
                            USERVAR "IBMFONT" VALUE "11"
                        <- IAC SE
                            FF FA 27 00 03 44 45 56
                            4E 41 4D 45 01 50 52 49
                            4E 54 45 52 03 49 42 4D
                            4D 53 47 51 4E 41 4D 45
                            01 51 53 59 53 4F 50 52
                            03 49 42 4D 4D 53 47 51
                            4C 49 42 01 2A 4C 49 42
                            4C 03 49 42 4D 54 52 41
                            4E 53 46 4F 52 4D 01 30
                            03 49 42 4D 46 4F 4E 54
                            01 31 31 FF F0

IAC SB TERMTYPE SEND
IAC SE                  ->
FF FA 18 01 FF F0

                        <- IAC SB TERMTYPE IS "IBM-3812-1" IAC SE
                           FF FA 18 00 49 42 4D 2D
                           33 38 31 32 2D 31 FF F0

IAC DO EOR              ->
FF FD 19

                        <- IAC WILL EOR
                           FF FB 19

IAC WILL EOR
IAC DO BINARY
IAC WILL BINARY         ->
FF FB 19 FF FD 00 FF FB
00

                        <- IAC DO EOR
                           FF FD 19
                        <- IAC WILL BINARY
                           FF FB 00
                        <- IAC DO BINARY
                           FF FD 00

IAC DO BINARY ->
FF FD 00

[TCP FIN]           ->
                          <- [TCP FIN]
[TCP RESET]     ->

----------------------------------------------------------------------------
------------------------------
Peter Henricsson                           "Axis makes your NetWork
smarter!"
Hardware & Software Engineer

Axis Communications AB          Phone:   Int +46 4080722            (home)
Scheelev. 16                                          Int +46 462701944
       (work)
S-223 70 Lund, Sweden            Fax:        Int +46 46136130

Email: [email-masked]
WWW: http://www.axis.com
----------------------------------------------------------------------------
------------------------------