The Assimilation Project  based on Assimilation version
switchdiscovery.c File Reference

functions for handling standard client incoming packet dispatch. More...

#include <projectcommon.h>
#include <memory.h>
#include <switchdiscovery.h>
#include <lldp.h>
#include <cdp.h>
#include <fsprotocol.h>
Include dependency graph for switchdiscovery.c:

Go to the source code of this file.

Data Structures

struct  _SwitchDiscoveryType




typedef struct _SwitchDiscoveryType SwitchDiscoveryType


FSTATIC gboolean _switchdiscovery_discover (Discovery *self)
 Discover member function for timed discovery – not applicable – return FALSE. More...
FSTATIC void _switchdiscovery_finalize (AssimObj *dself)
 finalize a SwitchDiscovery object More...
FSTATIC gboolean _switchdiscovery_cache_info (SwitchDiscovery *self,gconstpointer pkt,gconstpointer pktend)
FSTATIC gboolean _switchdiscovery_dispatch (GSource_pcap_t *gsource,pcap_t *capstruct,gconstpointer pkt,gconstpointer pend,const struct pcap_pkthdr *pkthdr,const char *capturedev,gpointer selfptr)
 Internal pcap gsource dispatch routine - called when we get a packet. More...
FSTATIC guint _switchdiscovery_setprotocols (ConfigContext *cfg)
FSTATIC void _dumphex (const char *id, gconstpointer idstart, gssize len)
 Dump stuff out in hex with a label... More...
SwitchDiscoveryswitchdiscovery_new (ConfigContext *swconfig, gint priority, GMainContext *mcontext, NetGSource *iosrc, ConfigContext *config, gsize objsize)
 SwitchDiscovery constructor. More...

Detailed Description

functions for handling standard client incoming packet dispatch.

It passes off incoming packets to the appropriate functions.

This file is part of the Assimilation Project.

Copyright © 2011, 2012 - Alan Robertson
The Assimilation software 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 3 of the License, or (at your option) any later version.

The Assimilation software 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 the Assimilation Project software. If not, see

Definition in file switchdiscovery.c.