|
|
BSD 4.3reno
-- VTPM: encode/decode BKQ/BKR PDU
-- $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/vt/bk_content.py,v 1.1.1.1 2018/04/24 16:12:56 root Exp $
--
--
-- $Log: bk_content.py,v $
-- Revision 1.1.1.1 2018/04/24 16:12:56 root
-- BSD 4.3reno
--
-- Revision 7.0 89/11/23 22:31:28 mrose
-- Release 6.0
--
--
-- NOTICE
--
-- Acquisition, use, and distribution of this module and related
-- materials are subject to the restrictions of a license agreement.
-- Consult the Preface in the User's Manual for the full terms of
-- this agreement.
--
--
VT DEFINITIONS ::=
%{
#include "vtpm.h"
#include "sector5.h"
#include <stdio.h>
#undef PEPYPARM
#define PEPYPARM int *
%}
BEGIN
SECTIONS build unbuild none
----------------------------------------------------------------------------
BKQ-pdu ::= CHOICE <<1>>
{
bkqpdu[8] IMPLICIT BKQcontent [[p (PEPYPARM)parm]]
}
BKR-pdu
::= CHOICE <<1>>
{
bkrpdu[9] IMPLICIT BKRcontent [[p (PEPYPARM)parm]]
}
ExplicitPointer
%{
EXPL_PTR *arg = (EXPL_PTR *)parm;
%}
::= SEQUENCE
{
x [0] IMPLICIT INTEGER
[[i arg->xval ]]
OPTIONAL <<arg->xval != NULLCOORD>>,
y [1] IMPLICIT INTEGER
[[i arg->yval ]]
OPTIONAL <<arg->yval != NULLCOORD>>,
z [2] IMPLICIT INTEGER
[[i arg->zval ]]
OPTIONAL <<arg->zval != NULLCOORD>>
}
--------------------------------------------------------------------------------
BKQcontent
%{
BRcnt *arg = (BRcnt *)parm;
%}
::= SEQUENCE
{
token INTEGER [[i arg->BKQcont.token_val]]
{
initiator(0),
acceptor (1),
accChoice(2)
}
OPTIONAL <<arg->BKQcont.token_val != NOBKTOK >>,
ExplicitPointer [[p (PEPYPARM)&(arg->BKQcont.ExplPtr)]]
}
--------------------------------------------------------------------------------
BKRcontent
%{
BRcnt *arg = (BRcnt *)parm;
%}
::= SEQUENCE
{
token INTEGER [[i arg->BKRcont.token_val]]
{
initiator(0),
acceptor (1)
}
OPTIONAL <<arg->BKRcont.token_val != NOBKTOK >>,
ExplicitPointer [[p (PEPYPARM)&(arg->BKRcont.ExplPtr)]]
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
END
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.