Skip to main content

2. The LPRT Command

The LPRT command allows users to specify a "long" address for the transport connection over which data are transferred. The LPRT command syntax is:

      LPRT <SP> <long-host-port> <CRLF>

The argument is the concatenation of the following fields;

  • an 8-bit argument (af)

  • an 8-bit argument (hal)

  • a of (h1, h2, ...)

  • an 8-bit (pal)

  • a of (p1, p2, ...)

The argument takes the value of the version number of IP (see Assigned Numbers, STD 2, RFC 1340), or generally speaking, an Internet layer protocol. Relevant assigned IPng version numbers are:

     Decimal         Keyword
------ -------
0 reserved
1-3 unassigned
4 Internet Protocol (IP)
5 ST Datagram Mode
6 SIP
7 TP/IX
8 PIP
9 TUBA
10-14 unassigned
15 reserved

The value of each field is broken into 8-bit fields and the value of each field is transmitted as an unsigned decimal number (in character string representation, note that negative numbers are explicitly not permitted). The fields are separated by commas.

A LPRT command is thus of the general form

      LPRT af,hal,h1,h2,h3,h4...,pal,p1,p2...

where h1 is the high order 8 bits of the internet host address, and p1 is the high order 8 bits of the port number (transport address).