HPlogo X25/9000: X.25/9000 Programmer's Guide > Appendix A  X.25 Packet Formats

RESET CONFIRMATION Packet

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

A RESET CONFIRMATION packet is automatically generated by the subsystem when the application process reads the reset data (issues a recv(MSG_OOB) system call).

Figure A-8 RESET CONFIRMATION Packet

[RESET CONFIRMATION Packet]

The access to the fields in the RESET CONFIRMATION 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 logical channel identifier. It is controlled by the subsystem. It can be read with the ioctl(X25_RD_LCI) after the call has been estab lished.

Packet Type Identifier

Indicates the kind of packet. X.25/300 automatically transmits this packet in response to an RESET packet, and transmission cannot be controlled by the application.

To read this field on an incoming packet:In blocking mode, the ioctl(X25_RESET_VC)system call blocks until confirmation is received. In nonblocking mode, recv(MSG_OOB) returns a buffer the second byte of which (buf[1]) indicates that an RESET CONFIR MATION packet has arrived (OOB_VC_RESET_CONF).

To write this field on an outgoing packet:The X.25/800 subsystem transmits an RESET CONFIRMATION packet when the corresponding RESET packet's reset user data field is read with a recv(MSG_OOB) system call.