2 * Common functions for other PROFINET protocols like DCP, MRP, ...
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1999 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #define FRAME_ID_DCP_HELLO 0xfefc
26 #define FRAME_ID_DCP_GETORSET 0xfefd
27 #define FRAME_ID_DCP_IDENT_REQ 0xfefe
28 #define FRAME_ID_DCP_IDENT_RES 0xfeff
31 extern void init_pn(int proto
);
33 extern int dissect_pn_uint8(tvbuff_t
*tvb
, gint offset
, packet_info
*pinfo
,
34 proto_tree
*tree
, int hfindex
, guint8
*pdata
);
36 extern int dissect_pn_uint16(tvbuff_t
*tvb
, gint offset
, packet_info
*pinfo
,
37 proto_tree
*tree
, int hfindex
, guint16
*pdata
);
39 extern int dissect_pn_uint32(tvbuff_t
*tvb
, gint offset
, packet_info
*pinfo
,
40 proto_tree
*tree
, int hfindex
, guint32
*pdata
);
42 extern int dissect_pn_int16(tvbuff_t
*tvb
, gint offset
, packet_info
*pinfo
,
43 proto_tree
*tree
, int hfindex
, gint16
*pdata
);
45 extern int dissect_pn_int32(tvbuff_t
*tvb
, gint offset
, packet_info
*pinfo
,
46 proto_tree
*tree
, int hfindex
, gint32
*pdata
);
48 extern int dissect_pn_oid(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
,
49 proto_tree
*tree
, int hfindex
, guint32
*pdata
);
51 extern int dissect_pn_mac(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
,
52 proto_tree
*tree
, int hfindex
, guint8
*pdata
);
54 extern int dissect_pn_ipv4(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
,
55 proto_tree
*tree
, int hfindex
, guint32
*pdata
);
57 extern int dissect_pn_uuid(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
,
58 proto_tree
*tree
, int hfindex
, e_uuid_t
*uuid
);
60 extern int dissect_pn_undecoded(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
,
61 proto_tree
*tree
, guint32 length
);
63 extern int dissect_pn_user_data(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo _U_
,
64 proto_tree
*tree
, guint32 length
, const char *text
);
69 extern int dissect_pn_user_data_bytes(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo _U_
,
70 proto_tree
*tree
, guint32 length
, int iSelect
);
72 extern int dissect_pn_malformed(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
,
73 proto_tree
*tree
, guint32 length
);
75 extern int dissect_pn_padding(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
,
76 proto_tree
*tree
, int length
);
78 extern int dissect_pn_align4(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
, proto_tree
*tree
);
80 extern void pn_append_info(packet_info
*pinfo
, proto_item
*dcp_item
, const char *text
);
82 extern gboolean
dissect_CSF_SDU_heur(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, void *data
);