filter-bacnet.c File Reference

BACnet Monitoring Plugin - BACnet filter plugin. Masaryk University, Institute of Computer Science. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <netinet/if_ether.h>
#include <flowmonexp/plugin_filter.h>
#include "../input-plugins/protocols.h"

Go to the source code of this file.

Data Structures

struct  bacnet_filter_private_t
 Plugin's private structure with information passed from init to the calls of PLUGIN_FILTER_* functions. More...

Defines

#define VERSION   "1.0"
#define PRINT(format, args...)
#define PRINTERR(format, args...)   fprintf(stderr,format,##args)
#define PRINTWARN(format, args...)   fprintf(stderr,format,##args)

Functions

plugin_desc_t * plugin_filter_desc ()
 API for flowmonexp to get plugin description structure.
void * plugin_filter_init (char *params, flow_record_getter_t **getter_list)
 Initialize all needed structures/devices/files etc. The function is called once as the first part of the plugin.
int plugin_filter_filter (void *plugin_private, flow_record_t *record)
 Filtering function. By default (allow behavior), filter passes only BACnet, ARP, ISMP, LLDP and SLOW (802.3) protocols. Other traffic (like IP) is discarded. Deny parameter of the plugin inverts the behavior.

Variables

unsigned int plugin_type = (PLUGIN_TYPE_FILTER)


Detailed Description

BACnet Monitoring Plugin - BACnet filter plugin. 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
filter-bacnet.c 170 2012-01-02 13:36:20Z 98863

Definition in file filter-bacnet.c.


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