⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 packet-coseventcomm.c

📁 ethereal公司开发的aodv路由协议代码
💻 C
📖 第 1 页 / 共 2 页
字号:
/* packet-coseventcomm.c * Routines for IDL dissection * * Autogenerated from idl2eth * Copyright 2001 Frank Singleton <frank.singleton@ericsson.com> *//* * Ethereal - Network traffic analyzer * By Gerald Combs * Copyright 1999 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. * */#ifdef HAVE_CONFIG_H# include "config.h"#endif#include "plugins/plugin_api.h"#include <stdio.h>#include <stdlib.h>#include <gmodule.h>#ifdef HAVE_SYS_TYPES_H# include <sys/types.h>#endif#ifdef HAVE_NETINET_IN_H# include <netinet/in.h>#endif#ifdef NEED_SNPRINTF_H# ifdef HAVE_STDARG_H#  include <stdarg.h># else#  include <varargs.h># endif# include "snprintf.h"#endif#include <string.h>#include <glib.h>#include <epan/packet.h>#include <epan/proto.h>#include "packet-giop.h"#include "plugins/plugin_api_defs.h"#ifndef __ETHEREAL_STATIC__G_MODULE_EXPORT const gchar version[] = "0.0.1";#endif/* Struct prototype declaration Start */ /* Struct prototype declaration End */ /* Union prototype declaration Start */ /* Union prototype declaration End */ /* Initialise the protocol and subtree pointers */static int proto_coseventcomm = -1;static gint ett_coseventcomm = -1;/* Initialise the initial Alignment */static guint32  boundary = GIOP_HEADER_SIZE;  /* initial value *//* Initialise the Registered fields *//* TODO - Use registered fields *//* * IDL Operations Start */  static const char CosEventComm_PushConsumer_push_op[] = "push" ;static const char CosEventComm_PushConsumer_disconnect_push_consumer_op[] = "disconnect_push_consumer" ;static const char CosEventComm_PushSupplier_disconnect_push_supplier_op[] = "disconnect_push_supplier" ;static const char CosEventComm_PullSupplier_pull_op[] = "pull" ;static const char CosEventComm_PullSupplier_try_pull_op[] = "try_pull" ;static const char CosEventComm_PullSupplier_disconnect_pull_supplier_op[] = "disconnect_pull_supplier" ;static const char CosEventComm_PullConsumer_disconnect_pull_consumer_op[] = "disconnect_pull_consumer" ;/* * IDL Operations End */ /*  Begin Exception (containing members) String  Declare  */    /*  End Exception (containing members) String Declare  *//* * IDL Attributes Start */  /* * IDL Attributes End */ /* * IDL Enums Start */  /* * IDL Enums End */  /*  Begin Exception Helper Functions  */    /*  End Exception Helper Functions  *//* * Main delegator for exception handling * */ static gboolean decode_user_exception(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation ) {        gboolean be;                        /* big endianess */        return FALSE;    /* user exception not found */}    /*  Begin Attribute Helper Functions  */    /*  End Attribute Helper Functions  *//* * IDL:omg.org/CosEventComm/PushConsumer/push:1.0 */ static void decode_CosEventComm_PushConsumer_push(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {    gboolean stream_is_big_endian;          /* big endianess */        /* Operation specific Variable declarations Begin */            /* Operation specific Variable declarations End */            stream_is_big_endian = is_big_endian(header);        switch(header->message_type) {        case Request:            get_CDR_any(tvb,tree,offset,stream_is_big_endian, boundary, header);                        break;            case Reply:            switch(header->rep_status) {                case NO_EXCEPTION:                                /* Function returns void */                                    break;                    case USER_EXCEPTION:                    break;                    default:                    /* Unknown Exception */                    g_warning("Unknown Exception ");                                        break;                        }   /* switch(header->message_type) */                break;               default:            /* Unknown GIOP Message */            g_warning("Unknown GIOP Message");                    break;                } /* switch(header->message_type) */     }/* * IDL:omg.org/CosEventComm/PushConsumer/disconnect_push_consumer:1.0 */ static void decode_CosEventComm_PushConsumer_disconnect_push_consumer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {    gboolean stream_is_big_endian;          /* big endianess */        /* Operation specific Variable declarations Begin */            /* Operation specific Variable declarations End */            stream_is_big_endian = is_big_endian(header);        switch(header->message_type) {        case Request:            break;            case Reply:            switch(header->rep_status) {                case NO_EXCEPTION:                                /* Function returns void */                                    break;                    case USER_EXCEPTION:                    break;                    default:                    /* Unknown Exception */                    g_warning("Unknown Exception ");                                        break;                        }   /* switch(header->message_type) */                break;               default:            /* Unknown GIOP Message */            g_warning("Unknown GIOP Message");                    break;                } /* switch(header->message_type) */     }/* * IDL:omg.org/CosEventComm/PushSupplier/disconnect_push_supplier:1.0 */ static void decode_CosEventComm_PushSupplier_disconnect_push_supplier(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {    gboolean stream_is_big_endian;          /* big endianess */        /* Operation specific Variable declarations Begin */            /* Operation specific Variable declarations End */            stream_is_big_endian = is_big_endian(header);        switch(header->message_type) {        case Request:            break;            case Reply:            switch(header->rep_status) {                case NO_EXCEPTION:                                /* Function returns void */                                    break;                    case USER_EXCEPTION:                    break;                    default:                    /* Unknown Exception */                    g_warning("Unknown Exception ");                                        break;                        }   /* switch(header->message_type) */                break;               default:            /* Unknown GIOP Message */            g_warning("Unknown GIOP Message");                    break;                } /* switch(header->message_type) */     }/* * IDL:omg.org/CosEventComm/PullSupplier/pull:1.0 */ static void decode_CosEventComm_PullSupplier_pull(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {    gboolean stream_is_big_endian;          /* big endianess */        /* Operation specific Variable declarations Begin */            /* Operation specific Variable declarations End */            stream_is_big_endian = is_big_endian(header);        switch(header->message_type) {        case Request:            break;            case Reply:            switch(header->rep_status) {                case NO_EXCEPTION:                    get_CDR_any(tvb,tree,offset,stream_is_big_endian, boundary, header);                                    break;                    case USER_EXCEPTION:                    break;                    default:                    /* Unknown Exception */                    g_warning("Unknown Exception ");                            

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -