protocols.h File Reference

BACnet Monitoring Plugin - addon for standard network headers. Masaryk University, Institute of Computer Science. More...

#include <netinet/if_ether.h>

Go to the source code of this file.

Data Structures

struct  bacnet_npdu
 BACnet NPDU structure. More...

Defines

#define ETH_P_8021Q   0x8100
#define ETH_P_ISMP   0x81FD
#define ETH_P_MPLS_UC   0x8847
#define ETH_P_MPLS_MC   0x8848
#define ETH_P_LLDP   0x88CC
#define _ETH_P_8021AD   0x88A8
#define _ETH_P_8021QINQ   0x9100
#define _ETH_P_8021QINQ_DOUBLE   0x9200
#define _ETH_P_8021QINQ_TRIPPLE   0x9300
#define LLC_SAP_MASK   0xFE
#define LLC_SAP_BACNET   0x82
#define VLAN_HLEN   4
#define VLAN_ID_MASK   0xFF0F
#define MPLS_HLEN   4
#define MPLS_LABEL_MASK   0xfffff000
#define MPLS_LABEL_SHIFT   12
#define MPLS_EXP_MASK   0x00000e00
#define MPLS_EXP_SHIFT   9
#define MPLS_STACK_MASK   0x00000100
#define MPLS_STACK_SHIFT   8
#define MPLS_TTL_MASK   0x000000ff
#define MPLS_TTL_SHIFT   0
#define UDP_HDR_SIZE   8
#define BACNET_CTRL_MSGTYPE_MASK   0x80
#define BACNET_CTRL_DST_MASK   0x20
#define BACNET_CTRL_SRC_MASK   0x08
#define BACNET_UDP_PORT   0xbac0
#define BACNET_IP_TYPE   0x81
#define BACNET_ETH_TYPE   LLC_SAP_BACNET


Detailed Description

BACnet Monitoring Plugin - addon for standard network headers. Masaryk University, Institute of Computer Science.

Date:
2011
Author:
Pavel CELEDA <celeda@ics.muni.cz>

Radek KREJCI <radek.krejci@mail.muni.cz>

Copyright (C) 2011 Masaryk University, Institute of Computer Science

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the Masaryk University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided ``as is'', and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the company or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Id
protocols.h 166 2011-12-07 13:31:04Z 206086

Definition in file protocols.h.


Define Documentation

#define _ETH_P_8021AD   0x88A8

802.1ad (obsoletes QinQ)

Definition at line 64 of file protocols.h.

#define _ETH_P_8021QINQ   0x9100

802.1QinQ (VLAN in VLAN) - CISCO

Definition at line 65 of file protocols.h.

#define _ETH_P_8021QINQ_DOUBLE   0x9200

802.1QinQ (2 VLANs in VLAN)

Definition at line 66 of file protocols.h.

#define _ETH_P_8021QINQ_TRIPPLE   0x9300

802.1QinQ (3 VLANs in VLAN)

Definition at line 67 of file protocols.h.

#define BACNET_CTRL_DST_MASK   0x20

Mask for Destination enable bit of Control value in BACnet NPDU

Definition at line 120 of file protocols.h.

#define BACNET_CTRL_MSGTYPE_MASK   0x80

Mask for MessageType enable bit of Control value in BACnet NPDU

Definition at line 119 of file protocols.h.

#define BACNET_CTRL_SRC_MASK   0x08

Mask for Source enable bit of Control value in BACnet NPDU

Definition at line 121 of file protocols.h.

#define BACNET_ETH_TYPE   LLC_SAP_BACNET

BACnet over Ethernet mapping into the EtherType value (This value of EtherType is actually invalid because it means a size of the packet in real traffic)

Definition at line 125 of file protocols.h.

#define BACNET_IP_TYPE   0x81

BACnet over IP mapping into the EtherType value (This value of EtherType is actually invalid because it means a size of the packet in real traffic)

Definition at line 124 of file protocols.h.

#define BACNET_UDP_PORT   0xbac0

BACnet's standard UDP port

Definition at line 122 of file protocols.h.

#define ETH_P_8021Q   0x8100

802.1Q VLAN Extended Header

Definition at line 49 of file protocols.h.

#define ETH_P_ISMP   0x81FD

InterSwitch Message Protocol

Definition at line 52 of file protocols.h.

#define ETH_P_LLDP   0x88CC

Link Layer Discovery Protocol

Definition at line 62 of file protocols.h.

#define ETH_P_MPLS_MC   0x8848

MPLS Multicast traffic

Definition at line 59 of file protocols.h.

#define ETH_P_MPLS_UC   0x8847

MPLS Unicast traffic

Definition at line 55 of file protocols.h.

#define LLC_SAP_BACNET   0x82

LLC's Service Access Point value for BACnet protocol

Definition at line 73 of file protocols.h.

#define LLC_SAP_MASK   0xFE

Mask of the LLC's Service Access Point value in LLC header

Definition at line 72 of file protocols.h.

#define MPLS_EXP_MASK   0x00000e00

Mask of the EXP (experimental functions) value in the MPLS header

Definition at line 88 of file protocols.h.

#define MPLS_EXP_SHIFT   9

Number of bits to shift EXP value

Definition at line 89 of file protocols.h.

#define MPLS_HLEN   4

Length of the MPLS header

Definition at line 84 of file protocols.h.

#define MPLS_LABEL_MASK   0xfffff000

Mask of the label value in the MPLS header

Definition at line 86 of file protocols.h.

#define MPLS_LABEL_SHIFT   12

Number of bits to shift label value

Definition at line 87 of file protocols.h.

#define MPLS_STACK_MASK   0x00000100

Mask of the STACK (stack functions) value in the MPLS header

Definition at line 90 of file protocols.h.

#define MPLS_STACK_SHIFT   8

Number of bits to shift STACK value

Definition at line 91 of file protocols.h.

#define MPLS_TTL_MASK   0x000000ff

Mask of the TTL (Time-to-Live) value in the MPLS header

Definition at line 92 of file protocols.h.

#define MPLS_TTL_SHIFT   0

Number of bits to shift TTL value

Definition at line 93 of file protocols.h.

#define UDP_HDR_SIZE   8

Length of the UDP header

Definition at line 98 of file protocols.h.

#define VLAN_HLEN   4

Length of the VLAN header

Definition at line 78 of file protocols.h.

#define VLAN_ID_MASK   0xFF0F

Mask (LE) of the VLAN ID in the header

Definition at line 79 of file protocols.h.


© 2011 Masaryk University - Institute of Computer Science - visit http://www.muni.cz/ics/