summaryrefslogtreecommitdiff
path: root/cesar/interface/sniffer/inc/context.h
blob: 5eeb883cc6896edd96a0c84b0285cab5dcedc836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef interface_sniffer_inc_context_h
#define interface_sniffer_inc_context_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    interface/sniffer/inc/context.h
 * \brief   Context of the sniffer.
 * \ingroup inteface_sniffer 
 *
 */

#include "interface/sniffer/defs.h"

struct interface_sniffer_t
{
    /** Sniff the beacon send. */
    bool sniff_beacon_tx;
    /** Sniff the beacon on reception. */
    bool sniff_beacon_rx;
    /** Sniff the MME on TX. */
    bool sniff_mme_tx;
    /** Sniff the MME on RX. */
    bool sniff_mme_rx;
    
    /** Call this function when it needs to post a message for the HLE. */
    interface_sniffer_send_message_cb_t send_func;
    /** data to provide on function callback. */
    void *send_user_data;
};

#endif /* interface_sniffer_inc_context_h */