padd(1)

Name

padd - Pad Daemon

Syntax

padd -v index -d device_name [-l logfile] [-O string] [-o parameter] [-s pktsize] [-c command] [-x par:val][...]

Description

This program is invoked by the x25daemon on an incoming call destined for login. padd accepts the incoming call and builds a streams pseudo-tty on top of the X.25 connection, then opens the pseudo-tty as stdin/stdout/stderr and invokes the login scheme.

Each incoming call is logged to the log file as

     padd started on VC NN
where NN is the call index number. This number increases by one for each incoming call to a maximum of 65,535. It has no meaning in X.25 terms; it is merely an index to allow the internal interfaces to track incoming calls and the applications associated with them.

padd can also be used to execute an administrator-defined application on the pseudo-tty instead of the default login scheme.

The default destination for logging information is /usr/spool/x25/paddlog. Packet size, if not specified, is determined dynamically.

These command line options are recognized.

Option Argument Description
-l logfile By default, padd writes to /usr/spool/x25/paddlog. You can change this by using this option.
-O override string Override string is a hexadecimal number between 000004 and FFFFFC. This number contains 24 bits; the last two are ignored. The first twenty-two bits represent X.3 parameter numbers. If a bit is set, the corresponding X.3 parameter number is NOT manipulated by the pseudo-tty. For example, -O 8C1028 sets bits:
1   (800000)
5,6 (0C0000)
12  (001000)
19  (000020)
21  (000008)
So the pseudo-tty will never manipulate those X.3 parameters.
-o override parameter This option overrides a specific parameter. It may be repeated as many times as necessary. The following command:
/etc/padd -d $dev -v $vc -o 1 -o 5 -o 6 
-o 12 -o 19 -o 21
is exactly equivalent to:
/etc/padd -d $dev -v $vc -O 8C1028
-s pktsize Negotiate X.25 packet size down to pktsize if possible.
-c command Do not invoke(3I) the login scheme. Instead, execute the command given instead. If found, the $tty variable in the command string is replaced with the psuedo-tty device name. In all cases, the psuedo-tty will already be open as stdin/stdout/stderr. For example:
/etc/padd -d $dev -v $vc -c /usr/bin/
application $tty
After accepting the call and building the pseudo-tty, the tty is opened as stdin/stdout/stderr and padd will exec(3) the program:
/usr/bin/application
The program will have one argument: the tty name as /dev/xpt/NN where NN is a number.
-x par:val This option instructs padd to set the remote pad parameter par to the value val before executing the application specified or invoking the login scheme. -x options may be repeated. This option works well in conjunction with -o to set parameters once to a known state. For example:
/etc/padd -d $dev -v $vc -o 21 -x 21:0
will instruct the pseudo-tty to never change parameter 21 then set parameter 21 to 0.

See Also

xpad(1)
Revision 6.1.0 (February 2003)

Copyright © 1997-2003 The Software Group Limited. All Rights Reserved.
® Netcom is a registered trademark of The Software Group Limited.