![Anders Broman](/assets/img/avatar_default.png)
I attach my RTSE dissector (in tar file) which requires the included ROS dissector, as well as a patch to the latest pres.{cnf,asn}. The ROS dissector uses a new field in the SESSION_DATA_STRUCTURE to pass the ROS operation to the sub-dissector, though this is also set by other dissectors (RTSE uses it in X.410 mode). Note that X.400 P1 in X.410 mode doesn't use ROS, so it is useful not to explicitly include ROS in my X411 dissector. However, the inclusion of a ROS dissector won't effect any dissectors that currently implement their own ROS. I also include dissectors for: X.411 (P1) X.400 OSI Message Transfer Service X.420 (P22) X.400 OSI Information Object STANAG 4406 (P772) STANAG 4406 Military Message Extensions (to P22) These rely on the RTSE and ROS dissectors. Withs some changes to remove various warnings and errors. svn path=/trunk/; revision=15680
69 lines
2.4 KiB
C
69 lines
2.4 KiB
C
/* Do not modify this file. */
|
|
/* It is created automatically by the ASN.1 to Ethereal dissector compiler */
|
|
/* .\packet-ros.h */
|
|
/* ../../tools/asn2eth.py -X -b -e -p ros -c ros.cnf -s packet-ros-template ros.asn */
|
|
|
|
/* Input file: packet-ros-template.h */
|
|
|
|
/* packet-ros.h
|
|
* Routines for ROS packet dissection
|
|
* Graeme Lunt 2005
|
|
*
|
|
* $Id$
|
|
*
|
|
* Ethereal - Network traffic analyzer
|
|
* By Gerald Combs <gerald@ethereal.com>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef PACKET_ROS_H
|
|
#define PACKET_ROS_H
|
|
|
|
|
|
/*--- Included file: packet-ros-exp.h ---*/
|
|
|
|
extern const value_string ros_InvokeId_vals[];
|
|
extern const value_string ros_Code_vals[];
|
|
int dissect_ros_InvokeId(gboolean implicit_tag, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int hf_index);
|
|
int dissect_ros_Code(gboolean implicit_tag, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int hf_index);
|
|
|
|
/*--- End of included file: packet-ros-exp.h ---*/
|
|
|
|
|
|
# include "packet-ses.h"
|
|
|
|
/* for use in the SESSION_DATA_STRUCTURE ros_op argument
|
|
top byte indicates ROS invocation
|
|
bottom three bytes indicate operation code */
|
|
|
|
# define ROS_OP_MASK 0xff000000
|
|
|
|
# define ROS_OP_ARGUMENT 0x10000000
|
|
# define ROS_OP_RESULT 0x20000000
|
|
# define ROS_OP_ERROR 0x30000000
|
|
# define ROS_OP_REJECT 0x40000000
|
|
|
|
# define ROS_OP_BIND 0x01000000
|
|
# define ROS_OP_UNBIND 0x02000000
|
|
# define ROS_OP_INVOKE 0x03000000
|
|
|
|
# define ROS_OP_OPCODE_MASK (~ROS_OP_MASK)
|
|
|
|
void register_ros_oid_dissector_handle(const char *oid, dissector_handle_t dissector, int proto _U_, const char *name);
|
|
|
|
#endif /* PACKET_ROS_H */
|