代码拉取完成,页面将自动刷新
#ifndef CHANNEL_INFO_H
#define CHANNEL_INFO_H
struct channel_info;
#include <pcap.h>
#include "context.h"
#include "test_module.h"
#include "pcap_track.h"
#include "msgbuf.h"
typedef struct channel_info {
char * dev;
pcap_t * pcap_handle;
int pcap_fd; // fd for pcap filter
int raw_sock; // raw ethernet access fd
int sock; // UDP socket
int ifindex; // index of this device
int of_port;//the port on the switch side
int packet_len; // length of packet for equally chunked data transfer (0: don't chunk)
struct ptrack_list * timestamps;
struct msgbuf * outgoing;
struct traf_gen_det *det;
struct pcap_dump_t *dump;
oid inOID[MAX_OID_LEN];
size_t inOID_len;
oid outOID[MAX_OID_LEN];
size_t outOID_len;
} channel_info;
int channel_info_init(struct channel_info * channel, char * dev);
void setup_channel(struct oflops_context *ctx,
struct test_module *mod, enum oflops_channel_name ch);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。