This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar-2022/src/packet_io/pcap_file_mode/pio_pcap_file.cpp

53 lines
1.2 KiB
C++
Raw Normal View History

2022-07-26 15:05:14 +08:00
/*
**********************************************************************************************
* File: pcap_file.cpp
* Description: pcap file runmode api
* Authors: Liu WenTan <liuwentan@geedgenetworks.com>
* Date: 2022-07-15
* Copyright: (c) 2018-2022 Geedge Networks, Inc. All rights reserved.
***********************************************************************************************
*/
#include <stdio.h>
#include "pio_pcap_file.h"
2022-07-26 15:05:14 +08:00
int pio_pcap_file_device_open(struct packet_io_device *pdev, const char *path, uint32_t nr_rxq, uint32_t nr_txq)
{
2022-07-26 15:05:14 +08:00
return 0;
}
int pio_pcap_file_device_close(const struct packet_io_device *pdev)
{
2022-07-26 15:05:14 +08:00
return 0;
}
int pio_pcap_file_device_receive(struct packet_io_device *pdev, uint32_t rxq_id, struct packet **pkts, int nr_pkts)
{
2022-07-26 15:05:14 +08:00
return 0;
}
int pio_pcap_file_device_send(struct packet_io_device *pdev, uint32_t txq_id, struct packet **pkts, int nr_pkts)
{
2022-07-26 15:05:14 +08:00
return 0;
}
void pio_pcap_file_device_pkt_free(struct packet_io_device *pdev, uint32_t qid, struct packet **pkts, int nr_pkts)
{
2022-07-26 15:05:14 +08:00
}
int pio_pcap_file_instance_create(struct packet_io_instance *pinst, int wrk_thread_num)
{
2022-07-26 15:05:14 +08:00
return 0;
}
void pio_pcap_file_instance_destroy(struct packet_io_instance *pinst)
{
2022-07-26 15:05:14 +08:00
}