HP X.25/9000 Programmer's Guide

128 AppendixA
X.25 Packet Formats
RESET REQUEST/INDICATION Packet
RESET REQUEST/INDICATION Packet
A process sends a RESET REQUEST packet to reset a VC. The
subsystem sends a RESET REQUEST when a close() or shutdown()
system call is issued on a PVC.
Figure A-7 RESET REQUEST packet
Access to the fields in the RESET REQUEST/INDICATION packet is
described below:
General Format
Identifier
Indicates the packet sequence count (modulo 8 or modulo 128). This field
cannot be read or written by an X.25 application.
Logical Channel
Identifier
Contains the logicalchannel identifier. This field is controlled by the X.25
subsystem and can be read with an ioctl(X25_RD_LCI) call after the
connection has been established.
Packet Type
Identifier
Indicates the kind of packet. This field cannot be read or written directly,
but through system calls RESET REQUEST/INDICATION packets can
be transmitted or detected.
To read this field on an incoming packet:
recv(MSG_OOB) returns a buffer the second byte of which (
buf[1]
)
contains an indication that a RESET INDICATION packet has arrived
(
OOB_VC_RESET
).
To write this field on an outgoing packet:
Use ioctl(X25_RESET_VC) to transmit a reset packet.
Resetting Cause
Code
Indicates the cause code for the RESET REQUEST/INDICATION
packet.
Logical Channel Identifier
87654321
1
2
3
Bits
Packet Type Identifier
General Format Identifier
Octets
36960-90061.bk Page 128 Friday, November 10, 2000 3:42 PM