2 * Routines for DVB-CI (Common Interface) dissection
3 * Copyright 2013, Martin Kaiser <martin@kaiser.cx>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __PACKET_DVBCI_H__
27 #define __PACKET_DVBCI_H__
30 #include <epan/packet_info.h>
31 #include <epan/value_string.h>
33 /* event byte in the PCAP DVB-CI pseudo-header */
34 #define DVBCI_EVT_DATA_CAM_TO_HOST 0xFF
35 #define DVBCI_EVT_DATA_HOST_TO_CAM 0xFE
36 #define DVBCI_EVT_CIS_READ 0xFD
37 #define DVBCI_EVT_COR_WRITE 0xFC
38 #define DVBCI_EVT_HW_EVT 0xFB
39 /* this value is not really part of the PCAP DVB-CI specification
40 it's used as return value for dvbci_get_evt_from_addrs() when the
41 event can't be determined by looking at source and destination addresses */
42 #define DVBCI_EVT_INVALID_EVT 0x00
44 static const value_string dvbci_event
[] = {
45 { DVBCI_EVT_DATA_HOST_TO_CAM
, "data transfer Host -> CAM" },
46 { DVBCI_EVT_DATA_CAM_TO_HOST
, "data transfer CAM -> Host" },
47 { DVBCI_EVT_CIS_READ
, "read the Card Information Structure (CIS)" },
48 { DVBCI_EVT_COR_WRITE
,
49 "write into the Configuration Option Register (COR)" },
50 { DVBCI_EVT_HW_EVT
, "hardware event" },
54 gint
dvbci_set_addrs(guint8 event
, packet_info
*pinfo
);
55 guint8
dvbci_get_evt_from_addrs(packet_info
*pinfo
);
60 * Editor modelines - http://www.wireshark.org/tools/modelines.html
65 * indent-tabs-mode: nil
68 * vi: set shiftwidth=4 tabstop=8 expandtab:
69 * :indentSize=4:tabSize=8:noTabs=true: