summaryrefslogtreecommitdiff
path: root/interface/sniffer/inc/context.h
blob: 254250881ec131318ad0d58832119650e8fa6ce9 (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
37
38
39
40
41
42
#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 
 *
 */

#define SNIFFER_REG__SNIFF_MME_TX 0, 0
#define SNIFFER_REG__SNIFF_MME_RX 1, 1
#define SNIFFER_REG__SNIFF_BEACON_TX 2, 2
#define SNIFFER_REG__SNIFF_BEACON_RX 3, 3

#define SNIFFER_MME 1
#define SNIFFER_BEACON 0

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 */