41#ifndef LIBETHERCAT_VETH_H
42#define LIBETHERCAT_VETH_H
44#include "libosal/types.h"
45#include "libosal/task.h"
48#define EC_VETH_ETH_ALEN 6
53 osal_uint8_t mac[EC_VETH_ETH_ALEN];
59 osal_size_t frame_size;
60 osal_uint8_t frame_data[1518];
82 const char *tun_dev_name,
83 const uint8_t mac_addr[EC_VETH_ETH_ALEN],
84 const uint32_t ip_addr);
91void ec_veth_close_tun(
struct ec *pec);
100void ec_veth_process_frame(
struct ec *pec, uint8_t *buf,
size_t len);
109int ec_veth_send_frame(
struct ec *pec, uint8_t *buf,
size_t len);
void ec_mbx_gateway_enqueue(struct ec *pec, struct pool_entry *p_entry)
Enqueue MBX Gateway message received from slave.
Data pool implementation.
osal_uint32_t ip
tun device ip addres
Definition veth.h:52
osal_task_t tid
tun device handler thread id.
Definition veth.h:54
osal_bool_t running
tun device handler run flag.
Definition veth.h:55
int fd
tun device file descriptor
Definition veth.h:51
ethercat master structure
Definition ec.h:197
Pool queue entry.
Definition pool.h:67