(Page 11 of 26 in this chapter)


TxTpxIfPpp

Description

Sets up the packet as a PPP interface definition packet.

Prototype

short TxTpxIfPpp (TXMNGPKT *req,
char *ifname,
TXTPXIPADDR *ipaddr,
unsigned short port,
unsigned short dlltype,
unsigned long baud)

req Pointer to packet to be set.

ifname Pointer to TPX interface name.

ipaddr Pointer to IP address of interface (IP address, subnet mask, and broadcast address).

port Physical or logical port number to which the interface will attach (or with TPX_MVIPPORT to use logical MVIP port).

dlltype Data link layer type (TPX_PPPASYNC or TPX_PPPHDLC).

baud Baud rate to apply to port (in bits/sec).

Return Values

TX API completion code.

Details

All PPP-specific fields are set to their default values. All common interface definition fields are left unmodified.

Note: TxTpxIfPpp assumes that the packet is already a properly initialized define interface packet. Applications should call TxTpxIfDefault some time prior to calling TxTpxIfPpp to assure that the packet contains all the proper default values.

Applications should call TxTpxIfPpp when a packet is to be used to create a PPP interface for the first time or when returning to PPP interface defaults.

See Also

TxTpxIfDefault



(Page 11 of 26 in this chapter)


tech_support@nmss.com
Copyright © 1998, Natural MicroSystems, Inc. All rights reserved.