VSF Documented
vsf_netdrv_wpcap.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_NETDRV_WPCAP_H__
19#define __VSF_NETDRV_WPCAP_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../../vsf_tcpip_cfg.h"
24
25#if VSF_USE_TCPIP == ENABLED && VSF_NETDRV_USE_WPCAP == ENABLED
26
27#if defined(__VSF_NETDRV_WPCAP_CLASS_IMPLEMENT)
28# undef __VSF_NETDRV_WPCAP_CLASS_IMPLEMENT
29# define __VSF_CLASS_IMPLEMENT__
30#endif
31
32#include "utilities/ooc_class.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/*============================ MACROS ========================================*/
39/*============================ MACROFIED FUNCTIONS ===========================*/
40/*============================ TYPES =========================================*/
41
43 public_member(
44 implement(vk_netdrv_t)
45 char *name;
46 )
47 private_member(
48 vsf_arch_irq_thread_t irq_thread;
49 vsf_arch_irq_request_t irq_request;
50 vsf_eda_t *thread;
51 void *fp; // actually pcap_t *
52 uint8_t *cur_buffer;
53 uint32_t cur_size;
54 )
55};
56
57/*============================ GLOBAL VARIABLES ==============================*/
58
60
61/*============================ PROTOTYPES ====================================*/
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif // VSF_USE_TCPIP && VSF_NETDRV_USE_WPCAP
68#endif // __VSF_MEMFS_H__
Definition vsf_netdrv.h:99
Definition vsf_netdrv_wpcap.h:42
Definition linux_generic.h:104
Definition linux_generic.h:122
Definition vsf_eda.h:766
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
const struct vk_netlink_op_t vk_netdrv_wpcap_netlink_op
Definition vsf_netdrv_wpcap.c:54